Liveness for TIBCO Cloud™ API Management - Local Edition Components
Scaling out or scaling down of pods/containers will be needed in burst and trickle down situations to ensure that the services are resilient.
It is a good practice to have odd number of nosql pods per zone and odd number of zones for tolerance and resilience. Cache, Log and TM pods can scale by setting HPA rules in Kubernetes and Openshift but has to be manually done in Docker swarm clusters
The kubelet uses liveness probes to know when to restart a container. For example, liveness probes could catch a deadlock, where an application is running, but unable to make progress. Restarting a container in such a state can help to make the application more available. In case of API Management - Local Edition, liveness can be defined for NoSQL, CM and SQL container. Liveness criteria for these containers is that services present inside these containers should be running.
Liveness can be defined only for k8s and openshift setup not for docker swarm setup
Container | Command | Initial Delay Seconds | Period Seconds | Failure Threshold | Success Threshold | Log File |
---|---|---|---|---|---|---|
CM | /usr/local/bin/cm-liveness-probe.sh | 800 | 30 | 12 | 1 | cm_liveness_probe.log |
NoSQL | /usr/local/bin/nosql-liveness-probe.sh | 500 | 30 | 10 | 1 | nosql_liveness_probe.log |
SQL | /usr/local/bin/sql-liveness-probe.sh | 300 | 30 | 10 | 1 | sql_liveness_probe.log |