mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 00:50:46 +08:00
Adopt production-safe runtime defaults and forwarder retry limits.
Lower CLI/WebCRT/audit caps, log startup capacity warnings, and bound oclaw requeues so reconnect storms cannot thrash memory. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d56020d84c
commit
fa577aa3bd
22 changed files with 238 additions and 69 deletions
|
|
@ -32,7 +32,7 @@ def _executor_pool() -> ThreadPoolExecutor:
|
|||
if _executor is None:
|
||||
from .cli_budget import clamp_cli_workers
|
||||
|
||||
workers = clamp_cli_workers(int(settings.ne_connect_max_workers or 5), hard_cap=32)
|
||||
workers = clamp_cli_workers(int(settings.ne_connect_max_workers or 4))
|
||||
_executor = ThreadPoolExecutor(max_workers=workers, thread_name_prefix="ne-connect")
|
||||
return _executor
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue