mirror of
https://github.com/hansjone/netx.git
synced 2026-10-11 04:13:21 +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
|
|
@ -33,8 +33,7 @@ def _dispatch_pool_get() -> ThreadPoolExecutor:
|
|||
with _pool_lock:
|
||||
if _dispatch_pool is None:
|
||||
workers = clamp_cli_workers(
|
||||
int(getattr(settings, "port_traffic_dispatch_workers", 4) or 4),
|
||||
hard_cap=16,
|
||||
int(getattr(settings, "port_traffic_dispatch_workers", 3) or 3),
|
||||
)
|
||||
_dispatch_pool = ThreadPoolExecutor(
|
||||
max_workers=workers, thread_name_prefix="pt-dispatch"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue