This guide outlines the infrastructure, software, and network requirements for deploying CometChat on-premise. Proper capacity planning ensures optimal performance, cost efficiency, and scalability as your user base grows.Planning Considerations:
Hardware Sizing: Select appropriate compute and storage resources based on expected monthly active users (MAU) and peak concurrent connections (PCC)
Operating System: Choose enterprise-grade Linux distributions with long-term support
Network Architecture: Plan for secure network segmentation and firewall configurations
Storage Strategy: Account for data retention policies, backup requirements, and growth projections
Production sizing is based on two key metrics: Monthly Active Users (MAU) and Peak Concurrent Connections (PCC). Choose the sizing model that matches your expected usage patterns.Important: The values below represent total cluster capacity and can be distributed across multiple nodes.
Configure firewall rules to allow traffic on these ports:
80 / 443: HTTP and HTTPS traffic to NGINX (public-facing). Port 80 should be used only for HTTP-to-HTTPS redirection.
Network security recommendations:
Restrict ports 80/443 to known IP ranges when possible
Use TLS/SSL certificates for all HTTPS traffic
Keep all backend services (databases, Kafka, Redis) on private networks without public exposure
Implement rate limiting and DDoS protection at the load balancer level
Additional ports for internal communication:
All inter-service communication occurs on Docker Swarm’s private overlay network and does not require external firewall rules. Services communicate securely within the cluster using Docker’s encrypted overlay networking.