mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 02:00:46 +08:00
Raise runtime defaults for multi-user shared-server deployments.
Size DB pool, CLI budget, and WebCRT session caps for concurrent operators while keeping hard ceilings and env overrides. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
fa577aa3bd
commit
e0503df8a5
16 changed files with 87 additions and 85 deletions
|
|
@ -29,7 +29,7 @@ _executor: ThreadPoolExecutor | None = None
|
|||
def _executor_pool() -> ThreadPoolExecutor:
|
||||
global _executor
|
||||
if _executor is None:
|
||||
workers = clamp_cli_workers(int(settings.ne_collect_max_workers or 4))
|
||||
workers = clamp_cli_workers(int(settings.ne_collect_max_workers or 8))
|
||||
_executor = ThreadPoolExecutor(max_workers=workers, thread_name_prefix="ne-collect")
|
||||
return _executor
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue