Max Conns in FAQ

This commit is contained in:
Alexey
2026-10-24 21:12:31 +03:00
parent 8f488b254d
commit 96765f9f4b
2 changed files with 14 additions and 1 deletions
+7 -1
View File
@@ -282,7 +282,7 @@ To display a domain instead of an IP address in native `tg://proxy` links, add t
public_host = "proxy.example.com"
```
This setting, together with `public_port`, affects only native links. WEB `tg://webproxy` links always use `[[web.vhosts]].host` and external port `443`.
This setting, together with `public_port`, affects only native links. WEB `tg://webproxy` links always use the concrete hostname from `[[web.vhosts]].host` or `hosts` and external port `443`.
### Total server connection limit
This parameter limits the total number of active connections to the server:
@@ -292,6 +292,12 @@ This parameter limits the total number of active connections to the server:
max_connections = 10000
```
The limit includes client sessions routed through ME. With `max_connections = 0`,
there is no separate ME session cap; operating-system resources and other configured
limits still apply. This parameter does not set the number of upstream ME TCP
writers. Changing it requires a process restart; a configuration reload is not
sufficient. See the [parameter reference](Config_params/CONFIG_PARAMS.en.md#max_connections).
### Upstream Manager
To configure outbound connections (upstreams), add the corresponding parameters to the `[[upstreams]]` section of the configuration file:
+7
View File
@@ -295,6 +295,13 @@ public_host = "proxy.example.com"
max_connections = 10000
```
Лимит распространяется и на клиентские сессии, работающие через ME. При
`max_connections = 0` отдельного ограничения числа сессий ME нет; ограничения
ресурсов ОС и остальные настроенные лимиты продолжают действовать. Этот параметр
не задаёт количество исходящих TCP-соединений пула ME. Для изменения нужен
перезапуск процесса: перечитывания конфигурации недостаточно. Подробнее — в
[справочнике параметров](Config_params/CONFIG_PARAMS.ru.md#max_connections).
### Upstream Manager
Для настройки исходящих подключений (Upstreams) добавьте соответствующие параметры в секцию `[[upstreams]]` файла конфигурации: