Managing Cluster
After successfully setting up the PortSIP PBX cluster, you can manage it easily.
Managing Servers
On each cluster server (not the PBX server), you can use the following commands to manage it.
In the commands, use the parameter -s to specify the service name, PortSIP PBX supports these services:
media-server-only
queue-server-only
meeting-server-only
vr-server-only
Start Server
cd /opt/portsip
sudo /bin/sh cluster_ctl.sh start -s media-server-onlyYou can replace the media-server-only with another service name such as mentioned above.
Restart Server
cd /opt/portsip
sudo /bin/sh cluster_ctl.sh restart -s media-server-onlyCheck Status
cd /opt/portsip
sudo /bin/sh cluster_ctl.sh status -s media-server-onlyStop Server
cd /opt/portsip
sudo /bin/sh cluster_ctl.sh stop -s media-server-onlyRemove Server
cd /opt/portsip
sudo /bin/sh cluster_ctl.sh rm -s media-server-onlyManaging IM Server
Start Server
cd /opt/portsip
sudo /bin/sh im_ctl.sh startRestart Server
cd /opt/portsip
sudo /bin/sh im_ctl.sh restartStop Server
cd /opt/portsip
sudo /bin/sh im_ctl.sh stopCheck Status
cd /opt/portsip
sudo /bin/sh im_ctl.sh statusRemove Server
cd /opt/portsip
sudo /bin/sh im_ctl.sh rmAdding Servers
As the scale of your business expands, you may need to add more servers to the existing cluster.
To do this, simply follow the topics on Preparing Cluster Servers and Configuring Cluster Servers to add servers. Then, restart the resource load balancer and all cluster servers - there is no need to restart the PBX server.
Please note that restarting the resource load balancer and servers will affect the calling service, so it is recommended to do this in the middle night.
Upgrading Servers
It’s crucial to keep your cluster servers updated in line with the latest PortSIP PBX releases. This ensures that all features function as expected and that your system maintains optimal performance and security.
Whenever a new version of PortSIP PBX is released, it’s essential to upgrade your installed cluster servers as well. Follow the steps below to ensure a successful upgrade.
Upgrading the Main PBX Server
Please follow the guide Upgrade to the Latest Version Within v22.x on Linux to upgrade the main PBX server, SBC server, and IM server.
Upgrading Cluster Servers
Perform the below commands to download the latest scripts.
sudo curl \
https://raw.githubusercontent.com/portsip/portsip-pbx-sh/master/v22.x/init.sh \
-o init.shsudo /bin/sh init.shUse the below commands to upgrade the servers. We use the -s parameter to specify the server name.
Media Server
cd /opt/portsip && sudo /bin/sh cluster_ctl.sh upgrade \
-s media-server-only -i portsip/pbx:22Queue Server
cd /opt/portsip && sudo /bin/sh cluster_ctl.sh upgrade \
-s queue-server-only -i portsip/pbx:22IVR Server
cd /opt/portsip && sudo /bin/sh cluster_ctl.sh upgrade \
-s vr-server-only -i portsip/pbx:22Meeting Server
cd /opt/portsip && sudo /bin/sh cluster_ctl.sh upgrade \
-s meeting-server-only -i portsip/pbx:22Last updated