From 25f7c4e750bd3d53568fc0bd5ee6933427441f50 Mon Sep 17 00:00:00 2001 From: Alexey <247128645+axkurcom@users.noreply.github.com> Date: Mon, 26 Oct 2026 20:12:37 +0300 Subject: [PATCH] Max Conns in Highload --- docs/Advanced_settings/HIGH_LOAD.en.md | 3 +++ docs/Advanced_settings/HIGH_LOAD.ru.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/Advanced_settings/HIGH_LOAD.en.md b/docs/Advanced_settings/HIGH_LOAD.en.md index d034635..0459f2a 100644 --- a/docs/Advanced_settings/HIGH_LOAD.en.md +++ b/docs/Advanced_settings/HIGH_LOAD.en.md @@ -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`: diff --git a/docs/Advanced_settings/HIGH_LOAD.ru.md b/docs/Advanced_settings/HIGH_LOAD.ru.md index fa278bf..f5af8af 100644 --- a/docs/Advanced_settings/HIGH_LOAD.ru.md +++ b/docs/Advanced_settings/HIGH_LOAD.ru.md @@ -3,6 +3,9 @@ --- ## 1. Системные лимиты и файловые дескрипторы + +Также учитывайте [`server.max_connections`](../Config_params/CONFIG_PARAMS.ru.md#max_connections) при расчёте клиентской нагрузки, в том числе через ME. `0` снимает этот общий клиентский лимит и не ограничивает ME 128 клиентами. Ограничения дескрипторов ОС, пользовательские лимиты, очереди, бюджеты памяти и политики writer-ов продолжают действовать. Для изменения параметра нужен перезапуск процесса. + Каждое TCP-сосоединение требует файлового дескриптора. При 100 тысячах соединений стандартные лимиты Linux (зачастую 1024 или 65535) будут исчерпаны немедленно. ### Общесистемные лимиты (`sysctl`) Увеличьте глобальный лимит файловых дескрипторов в `/etc/sysctl.conf`: