Scale a High Availability Cluster¶
This guide walks through adding a node to an existing Ella SMSC high-availability cluster, and removing one.
Prerequisites¶
- A running HA cluster deployed (see Deploy a High Availability Cluster).
Add a node¶
- Prepare a host with Ella SMSC installed per the Install guide, with a
clusterblock in the configuration file. - Open the Cluster page on any node in the cluster.
- Click Add Node, click Create Token, and copy the token.
- Start Ella SMSC on the new host.
- Open the new node's UI in a browser. Click Join an existing cluster instead, paste the token, and click Join.
- Connect every Diameter peer to the new node, unless they connect through a Diameter routing agent.
- On the leader's Cluster page, verify the new node appears and is shown as Healthy.
- Add a Kubernetes node for the new pod.
-
Add a pod, with the chart version that is deployed, shown by
helm list -n ella:helm upgrade ella-smsc oci://ghcr.io/ellanetworks/charts/ella-smsc --namespace ella --version <version> --reuse-values --set replicas=4 -
Connect every Diameter peer to the new pod.
- On the leader's Cluster page, verify the new node appears and is shown as Healthy.
Remove a node¶
- Open the leader's Cluster page.
- In the node's Node actions menu, click Drain this node. Wait until its Drain column shows Drained.
- In the same menu, click Remove from cluster. For a node that is down for good, check Force remove (skip drain).
- Disconnect the Diameter peers from the removed node.
- Open the leader's Cluster page.
- In the Node actions menu of the node with the highest pod number, click Drain this node. Wait until its Drain column shows Drained.
- In the same menu, click Remove from cluster.
-
Remove its pod and volume:
helm upgrade ella-smsc oci://ghcr.io/ellanetworks/charts/ella-smsc --namespace ella --version <version> --reuse-values --set replicas=3 kubectl delete pvc data-ella-smsc-3 -n ella -
Disconnect the Diameter peers from the removed node.