Skip to content

🏗️ Distributed Deployment Overview

9 min readUpdated: Nov 29, 2026
View as Markdown

Enterprise-grade multi-server deployment for maximum scalability and high availability


For enterprise environments, Ring2All PBX can be deployed across multiple servers to achieve:

Goal Solution
High Availability No single point of failure
Horizontal Scaling Add servers as capacity grows
Performance Isolation Separate workloads across servers
Disaster Recovery Data replication across nodes

flowchart TD
    subgraph Clients["Clients & Edge Network"]
        SIP[SIP Endpoints / Hardphones]
        WebRTC[WebRTC / Softphones]
        Trunks[Carrier SIP Trunks]
    end

    subgraph Perimeter["Perimeter & Load Balancing"]
        SBC["Ring2All SBC Cluster<br/>(SBC Engine 6.1 + Media Relay Engine)"]
    end

    subgraph TelephonyCore["Telephony Application Core (N+1)"]
        FS1["Ring2All PBX Node 01<br/>(10,000 Ext / 1,500 Calls)"]
        FS2["Ring2All PBX Node 02<br/>(10,000 Ext / 1,500 Calls)"]
        FSN["Ring2All PBX Node N<br/>(Horizontal Scale)"]
    end

    subgraph StorageData["Distributed Storage & Database Layer"]
        DB[("PostgreSQL 17 HA Cluster<br/>(Patroni + Raft Consensus)")]
        Gluster[("GlusterFS / S3 Cluster<br/>(Voicemail & Call Recordings)")]
    end

    subgraph Management["Application & Ecosystem Subsystems"]
        Admin["Ring2All Web Admin"]
        Portal["Ring2All Connect App Servers (N+1)"]
        Switchboard["Ring2All Switchboard Servers (N+1)"]
        NCX["Ring2All NCX Contact Center (N+1)"]
        BSS["Ring2All BSS HA Pair + DMZ Store"]
        DMS["Ring2All DMS (Device Catalog)"]
        NMS["Ring2All NMS (Neural Monitoring)"]
    end

    SIP --> SBC
    WebRTC --> SBC
    Trunks --> SBC

    SBC --> FS1
    SBC --> FS2
    SBC --> FSN
    SBC --> DB

    FS1 --> DB
    FS2 --> DB
    FSN --> DB

    FS1 --> Gluster
    FS2 --> Gluster
    FSN --> Gluster

    Admin --> DB
    Portal --> DB
    Switchboard --> DB
    NCX --> DB
    BSS --> DB
    DMS --> DB
    NMS --> DB

🗄️ Centralized PostgreSQL 17 Database Cluster Architecture

Section titled “🗄️ Centralized PostgreSQL 17 Database Cluster Architecture”

In a distributed Ring2All topology, all platform subsystems and multiple Application Servers—including Ring2All Connect Application Servers, Ring2All Switchboard Servers, Telephony Core Nodes, Ring2All NCX Workers, Ring2All SBC Cluster Nodes, Ring2All BSS HA Nodes, Ring2All DMS, and Ring2All NMS—connect to the Centralized PostgreSQL 17 HA Cluster:

Mechanism Subsystems Operational Purpose
Credential Synchronization (/etc/softswitch/*-db-credentials) All Subsystems (pbx, sbc, bss, dms, nms) Generated on the database cluster node (--all-db or dedicated DB nodes) and securely replicated to /etc/softswitch/ across every application, signaling, and billing server so all nodes authenticate against the shared PostgreSQL 17 cluster (127.0.0.1:5000 via local HAProxy/Patroni write leader or 5432).
PostgreSQL LISTEN / NOTIFY Real-Time Event Bus Ring2All Connect App Servers (softswitch-pbx-portal + softswitch-pbx-api) Multiple stateless Ring2All Connect Application Servers subscribe to PostgreSQL LISTEN/NOTIFY channels to broadcast chat messages, extension presence changes, omnichannel first-to-claim queue alerts, and WebRTC signaling across all active Connect nodes in real time without external message brokers.
PostgreSQL Advisory Locks (pg_try_advisory_lock) Ring2All Switchboard (softswitch-pbx-monitoring-api) & Ring2All BSS (softswitch-bss-api) When multiple Switchboard Monitoring API servers or Active-Active BSS HA nodes run concurrently against the centralized database, non-blocking session and transaction advisory locks (pg_try_advisory_lock) coordinate leader-only tasks—such as ESL event aggregation, scheduled CDR synchronization, recurring subscription billing, and automated invoice generation—preventing duplicate execution while guaranteeing instant failover if a node goes offline.
Shared ODBC Registration & Live Channel Tables Telephony Core (softswitch-pbx-telephony) & Ring2All SBC (softswitch-sbc) FreeSWITCH 1.11+ nodes share SIP registrations via mod_sofia odbc-dsn and UNLOGGED live channel tables in ss_telephony, while Ring2All SBC nodes dynamically read domain routing, dispatchers, and in-memory digest authentication credentials from the centralized database cluster.

Role Hostname IP (Example) vCPU RAM Storage Packages
Database Node 1 pg-node-01 10.10.10.31 4 16GB 500GB SSD PostgreSQL 17 + Patroni + Etcd
Database Node 2 pg-node-02 10.10.10.32 4 16GB 500GB SSD PostgreSQL 17 + Patroni + Etcd
Database Node 3 pg-node-03 10.10.10.33 4 16GB 500GB SSD PostgreSQL 17 + Patroni + Etcd
File Server 1 fs-node-01 10.10.10.34 2 4GB 1TB+ HDD/SSD GlusterFS Server
File Server 2 fs-node-02 10.10.10.35 2 4GB 1TB+ HDD/SSD GlusterFS Server
File Server 3 fs-node-03 10.10.10.36 2 4GB 1TB+ HDD/SSD GlusterFS Server
Role Hostname IP (Example) vCPU RAM Storage Packages
Admin admin-node-01 10.10.10.10 4 8GB 50GB softswitch-pbx-admin, softswitch-pbx-api
Connect App Servers (N+1) connect-node-01..N 10.10.10.20..29 4 8GB 40GB softswitch-pbx-portal, softswitch-pbx-api
Switchboard Servers (N+1) switch-node-01..N 10.10.10.30..39 4 8GB 40GB softswitch-pbx-switchboard, softswitch-pbx-monitoring-api
NCX Workers (N+1) ncx-node-01..N 10.10.10.45..49 4 8GB 50GB softswitch-ncx-api, softswitch-ncx-web, softswitch-ncx-worker
SBC Cluster Nodes (N+1) sbc-node-01..N 10.10.10.70..75 4-8 8-16GB 60GB softswitch-sbc-all
BSS HA Pair + DMZ Store bss-node-01..02 10.10.10.80..82 4 8GB 80GB softswitch-bss-api, softswitch-bss-web, softswitch-bss-client
DMS dms-node-01 10.10.10.60 2 4GB 40GB softswitch-dms-all
NMS nms-node-01 10.10.10.65 4 8GB 80GB softswitch-nms-all
Video SFU Cluster video-node-01..N 10.10.10.90..95 8-16 16-32GB 100GB softswitch-video-all
Role Hostname IP (Example) vCPU RAM Storage Capacity
Telephony 1 tele-node-01 10.10.10.51 4-16 8-32GB 100GB 10,000 ext / 1,500 calls
Telephony 2 tele-node-02 10.10.10.52 4-16 8-32GB 100GB 10,000 ext / 1,500 calls
Telephony N tele-node-N 10.10.10.5N 4-16 8-32GB 100GB 10,000 ext / 1,500 calls

Servers Total Extensions Concurrent Calls Use Case
1 10,000 1,500 Medium Enterprise
2 20,000 3,000 Large Enterprise
3 30,000 4,500 Enterprise+
5 50,000 7,500 Service Provider
10 100,000 15,000 Carrier Grade
20+ 200,000+ 30,000+ Large Carrier

💡 Key Insight: Each telephony server is independent and connects to the shared database cluster. Add servers as capacity grows without reconfiguration.


Feature Description
Automatic Failover If primary fails, replica promotes in <30 seconds
Streaming Replication Real-time data sync (RPO ≈ 0)
Consensus (Etcd) Distributed leader election
Self-Healing Automatic replica recovery
Feature Description
Replica 3 Every file stored on 3 nodes
Self-Healing Automatic sync after node recovery
Active-Active All nodes serve traffic
Client Failover Automatic redirection if node fails
Feature Description
Stateless Design Any API server can handle any request
Load Balancing HAProxy distributes traffic
Health Checks Automatic removal of failed nodes

Follow these comprehensive guides for each phase of your distributed infrastructure:

Guide Description
📖 Distributed Cluster Step-by-Step Guide Complete walkthrough: Patroni PostgreSQL 17, GlusterFS, Web/API, and Telephony Engine N+1 telephony cluster
📖 Web Cluster & Load Balancing Guide Multi-server Web GUI and API high availability behind Cloudflare and HAProxy
📖 Ring2All SBC Deployment Guide Perimeter SIP gateway (SBC Engine 6.1 + Media Relay Engine) with WireGuard mesh to PBX nodes
📖 Ring2All BSS Deployment Guide Carrier billing engine, real-time OCS rating, and public customer self-care store

Internal Network (Private LAN / WireGuard Subnet)

Section titled “Internal Network (Private LAN / WireGuard Subnet)”
Port Protocol Service Between
5432 TCP PostgreSQL 17 DB nodes ↔ App/Telephony servers
8008 TCP Patroni REST API DB nodes ↔ HAProxy leader check
2379/2380 TCP Etcd Raft Consensus DB nodes (peer sync)
5000 TCP HAProxy Local Write Proxy Local apps/Telephony Engine ↔ Patroni Leader
5001 TCP HAProxy Local Read Proxy Local apps ↔ Patroni Standby Replicas
6432 TCP PgBouncer Connection Pooler Telephony Engine/ODBC ↔ Local HAProxy
24007-24008 TCP GlusterFS Daemon Storage nodes
49152-49251 TCP GlusterFS Bricks Storage nodes ↔ Clients (Recordings/Music)
51820 UDP WireGuard VPN Mesh Core PBX Nodes ↔ Ring2All SBC
Port Protocol Service
80/443 TCP HTTP/HTTPS (Web UI & APIs)
5060 UDP/TCP SIP Signaling (Ring2All SBC Engine)
5061 TCP SIP TLS (Ring2All SBC Engine)
16384-49152 UDP RTP Media Relay (FreeSWITCH / RTPEngine)

  • Network: Private network configured between all servers (10.10.10.0/24)
  • DNS/Hosts: All servers can resolve each other by hostname
  • Firewall: Required ports open between servers in nftables
  • Storage: Dedicated NVMe/SSD disks for databases and distributed recordings
  • OS: Debian 13 (Trixie) installed on all servers

Next: 📖 Distributed Multi-Server Cluster Step-by-Step Guide