High availability
For high availability (HA) in a production deployment, it is recommended to set up at least three TPOSS replicas to handle all incoming requests and maintain session status during the upgrade procedure. You can configure TPOSS replicas using this configuration option:
The additional configuration options to maintain TPOSS for high availability are:
- podIP enables special naming for TPOSS nodes so that each TPOSS node knows how to do service discovery for other TPOSS nodes and all of the deployed TPOSS instances know how to build a cluster.
- probes enables liveness and readiness probes, which can be useful for graceful termination during TPOSS cluster upgrade. For more information about probes, see the official Kubernetes documentationOpens in a new tab.
- terminationGracePeriodSeconds specifies the number of seconds for a termination grace period. As a TPOSS node receives the
SIGTERMsignal, the TPOSS node is marked asnot readyand it waits the specified period of time to finish handling of all requests.
Note
The value must be at least cluster's DNS TTLOpens in a new tab + 10 seconds, and no less than 10 seconds in general.
After all TPOSS instances are up and running, run the Tposs.Utils.get_nodes command to make sure that each TPOSS instance is connected to the cluster. This command returns the list of all known nodes:
In the case of three replicas, the output looks like this:
For more information on how to execute commands within TPOSS and get into TPOSS remote console, read the Troubleshooting guide.
The upgrade procedure is executed using the helm upgrade command. For more information, see the Installation guide.
Note
It is worth upgrading the TPOSS cluster only when there is a minimal number of active users.