Distribute load and improve fault tolerance:
Scale with additional Instances:
Configure an optimal cluster:
Reference documentation:
SCG instances utilizing OpenVPN have a default limitation of 1024 clients per instance (max-clients = 1024). This limit can be adjusted, but scaling beyond it strains hardware resources (CPU, RAM, HDD, bandwidth). If an instance goes down, all connected clients lose their connection to the management server.
Solution
To increase load capacity, availability, and fault tolerance, consider deploying SCG in a clustered configuration. Clustering SCG allows multiple instances to share the client load, ensuring continuous client management and a higher total capacity.
Example of clustered setup
max-clients is increased, ensure that corresponding resources (CPU/RAM/HDD) support the higher load.Benefits of SCG clustering
Recommendations
Deploy SCG in a clustered setup to ensure optimal performance and client capacity. Following these guidelines helps prevent downtime, improve fault tolerance, and support client scalability.