Ctrl K
ring2all.com

🏗️ Distributed Deployment Overview

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

---

📋 Introduction

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

GoalSolution
High AvailabilityNo single point of failure
Horizontal ScalingAdd servers as capacity grows
Performance IsolationSeparate workloads across servers
Disaster RecoveryData replication across nodes
---

🏛️ Architecture Diagram

Ring2All Distributed Architecture
Ring2All Distributed Architecture

---

📊 Server Roles & Requirements

Infrastructure Servers

RoleHostnameIP (Example)vCPURAMStoragePackages
Database Node 1pg-node-01192.168.10.31416GB500GB SSDPostgreSQL 17 + Patroni + Etcd
Database Node 2pg-node-02192.168.10.32416GB500GB SSDPostgreSQL 17 + Patroni + Etcd
Database Node 3pg-node-03192.168.10.33416GB500GB SSDPostgreSQL 17 + Patroni + Etcd
File Server 1fs-node-01192.168.10.3424GB1TB+ HDD/SSDGlusterFS Server
File Server 2fs-node-02192.168.10.3524GB1TB+ HDD/SSDGlusterFS Server
File Server 3fs-node-03192.168.10.3624GB1TB+ HDD/SSDGlusterFS Server

Application Servers

RoleHostnameIP (Example)vCPURAMStoragePackages
Adminadmin-node-01192.168.10.1048GB50GBsoftswitch-admin
Portalportal-node-01192.168.10.2022GB20GBsoftswitch-portal
Switchboardswitch-node-01192.168.10.3022GB20GBsoftswitch-switchboard
APIapi-node-01192.168.10.4048GB50GBsoftswitch-api

Telephony Servers (N+1)

RoleHostnameIP (Example)vCPURAMStorageCapacity
Telephony 1tele-node-01192.168.10.514-168-32GB100GB10,000 ext / 1,500 calls
Telephony 2tele-node-02192.168.10.524-168-32GB100GB10,000 ext / 1,500 calls
Telephony Ntele-node-N192.168.10.5N4-168-32GB100GB10,000 ext / 1,500 calls
---

📈 Scaling Reference

Telephony Horizontal Scaling

ServersTotal ExtensionsConcurrent CallsUse Case
110,0001,500Medium Enterprise
220,0003,000Large Enterprise
330,0004,500Enterprise+
550,0007,500Service Provider
10100,00015,000Carrier 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.

---

🔄 High Availability Features

Database Cluster (PostgreSQL + Patroni)

FeatureDescription
Automatic FailoverIf primary fails, replica promotes in <30 seconds
Streaming ReplicationReal-time data sync (RPO ≈ 0)
Consensus (Etcd)Distributed leader election
Self-HealingAutomatic replica recovery

File Server Cluster (GlusterFS)

FeatureDescription
Replica 3Every file stored on 3 nodes
Self-HealingAutomatic sync after node recovery
Active-ActiveAll nodes serve traffic
Client FailoverAutomatic redirection if node fails

Application Layer

FeatureDescription
Stateless DesignAny API server can handle any request
Load BalancingHAProxy distributes traffic
Health ChecksAutomatic removal of failed nodes
---

📖 Installation Order

Follow these guides in sequence:

StepGuideDescription
1📖 PostgreSQL HA ClusterDatabase with automatic failover
2📖 File Server ClusterDistributed storage (or NAS setup)
3📖 Admin ServerWeb dashboard and API
4📖 Portal ServerUser self-service portal
5📖 Switchboard ServerOperator console
6📖 Telephony Server(s)FreeSWITCH nodes (N+1)
7📖 HAProxy SetupLoad balancing configuration
---

🔗 Network Requirements

Internal Network

PortProtocolServiceBetween
5432TCPPostgreSQLDB ↔ App/Tele servers
8008TCPPatroni APIDB nodes ↔ HAProxy
2379/2380TCPEtcdDB nodes
24007-24008TCPGlusterFS DaemonFS nodes
49152-49251TCPGlusterFS BricksFS nodes ↔ Clients

External Network

PortProtocolService
80/443TCPHTTP/HTTPS (Web UI)
5060UDP/TCPSIP Signaling
5061TCPSIP TLS
16384-32768UDPRTP Media
---

🚀 Quick Start Checklist

  • [ ] Network: Private network configured between all servers
  • [ ] DNS/Hosts: All servers can resolve each other by hostname
  • [ ] Firewall: Required ports open between servers
  • [ ] Storage: Dedicated disks for databases and recordings
  • [ ] OS: Debian 13 installed on all servers

---

Next: 1. PostgreSQL HA Cluster Setup
AI Assistant

👋 Hello! I'm your Ring2All documentation assistant. I can help you find information about configuring and using the Ring2All PBX platform.

How can I help you today?