For AI agents: this documentation is indexed for you in llms.txt, and all of it in /llms.txt. Every page is also available as markdown: append .md to its address.

Scaling TPOSS

This document describes how to change the number of TPOSS instances. For the placeholders used in the commands below, see the Placeholders section of the installation document.

Scale TPOSS

TPOSS runs as a Kubernetes StatefulSet. The replicaCount configuration option sets the number of the TPOSS instances. To change the number of TPOSS replicas, run the following command:

bash

Caution

Do not scale the TPOSS StatefulSet with the kubectl scale command. Besides the StatefulSet, the chart renders one Kubernetes Service per replica, which exposes the EPMDOpens in a new tab, the TPOSS HTTP API, and the Diameter ports of the given pod. A pod added with kubectl scale has no such Service, and the next helm upgrade resets the number of replicas back to the replicaCount value.

When you scale up, the new instances join the Erlang cluster automatically.

When you scale down, Kubernetes removes the pods with the highest ordinal number first. The removed instance stops accepting new requests, finishes the requests it already handles, and leaves the Erlang cluster.

Kubernetes keeps the PersistentVolumeClaim of a removed pod, for example tposs-data-{HELM_RELEASE_NAME}-tposs-2. A later scale up reuses this claim.

For the recommended number of replicas and the configuration options needed for the TPOSS cluster, see the High availability document. To check the result of the scaling, use the commands from the Verify the deployment section.