Max Conns in Highload

This commit is contained in:
Alexey
2026-10-26 20:12:37 +03:00
parent f108f0e6d2
commit 25f7c4e750
2 changed files with 6 additions and 0 deletions
+3
View File
@@ -3,6 +3,9 @@ When deploying Telemt under high-traffic load (tens or hundreds of thousands of
---
## 1. System Limits & File Descriptors
Also size [`server.max_connections`](../Config_params/CONFIG_PARAMS.en.md#max_connections) for the intended client load, including ME traffic. `0` removes this configured client ceiling and does not impose a 128-client ME limit. OS descriptors, per-user limits, queues, memory budgets, and writer policies still apply. Changing this setting requires a process restart.
Every TCP connection requires a file descriptor. At 100k connections, standard Linux limits (often 1024 or 65535) will be exhausted immediately.
### System-Wide Limits (`sysctl`)
Increase the global file descriptor limit in `/etc/sysctl.conf`: