Managing Cluster
After successfully deploying the PortSIP PBX cluster, you can manage and maintain the system efficiently using the built-in control scripts. These scripts allow you to start, stop, restart, monitor, remove, and upgrade individual cluster services without impacting the core PBX server.
Managing Cluster Servers
The commands in this article apply to cluster servers only (for example, Media, Queue, Meeting, or IVR servers). They must not be executed on the main PBX server.
Supported Service Types
When running cluster management commands, use the -s parameter to specify the service type. The following service names are supported:
media-server-onlyqueue-server-onlymeeting-server-onlyvr-server-only
Starting a Cluster Server
cd /opt/portsip
sudo /bin/sh cluster_ctl.sh start -s media-server-onlyReplace media-server-only with the appropriate service name as required.
Restarting a Cluster Server
Checking Cluster Server Status
Stopping a Cluster Server
Removing a Cluster Server
Managing the Instant Messaging (IM) Server
The IM server is managed independently using a dedicated control script.
Start the IM Server
Restart the IM Server
Stop the IM Server
Check IM Server Status
Remove the IM Server
Managing the Data Flow Server
The Data Flow server is managed independently using a dedicated control script.
Start the Data Flow Server
Restart the Data Flow Server
Stop the Data Flow Server
Check Data Flow Server Status
Remove the Data Flow Server
Adding Servers to the Cluster
As your business grows, you may need to scale your deployment by adding additional cluster servers.
To add new servers:
Follow the guides Preparing Cluster Servers and Configuring Cluster Servers to provision and configure the new nodes.
Restart the resource load balancer and all cluster servers.
Note: The main PBX server does not need to be restarted when adding new cluster servers.
IM Server Scalability Considerations
The IM server does not currently support clustered deployment.
It is designed to run as a standalone service.
With sufficient resources (recommended 16 CPU cores and 16 GB RAM), a single IM server can support up to 50,000 concurrent online users.
As a result, adding multiple IM servers is not supported at this time.
Maintenance Window Recommendation
Restarting the resource load balancer and cluster servers will temporarily impact call processing. To minimize service disruption, it is strongly recommended to perform these operations during off-peak hours, such as late night or scheduled maintenance windows.
Upgrading Cluster Servers
Keeping all cluster components aligned with the latest PortSIP PBX release is essential for system stability, performance, and security.
Whenever a new PortSIP PBX version is released, all deployed cluster servers must be upgraded accordingly.
Upgrading the Main PBX Server
First, follow the guide Upgrade to the Latest Version Within v22.x to upgrade the following components:
Main PBX server
SBC server
IM server
Data Flow server
Upgrading Cluster Servers
Step 1: Download the Latest Initialization Script
❗ Important This step is mandatory, don't skip this step!
Step 2: Upgrade Individual Cluster Services
Use the -s parameter to specify the service type and the -i parameter to define the target image version.
Media Server
Queue Server
IVR Server
Meeting Server
Last updated