Bound warm workers' host memory and account local RAM
Docs / docs (push) Successful in 19s
Playwright Tests / test-playwright (1, 2) (push) Failing after 12s
Playwright Tests / test-playwright (2, 2) (push) Failing after 9s
pre-commit / pre-commit (push) Failing after 1m56s
Test Backend / test-backend (push) Failing after 2m50s
Compose Smoke Test / test-compose (push) Failing after 9s
Playwright Tests / merge-reports (push) Failing after 2m16s
Docs / docs (push) Successful in 19s
Playwright Tests / test-playwright (1, 2) (push) Failing after 12s
Playwright Tests / test-playwright (2, 2) (push) Failing after 9s
pre-commit / pre-commit (push) Failing after 1m56s
Test Backend / test-backend (push) Failing after 2m50s
Compose Smoke Test / test-compose (push) Failing after 9s
Playwright Tests / merge-reports (push) Failing after 2m16s
A worker over FLOW_WORKER_MAX_RSS_MB (--worker-max-rss) when its node returns is retired instead of kept warm, in the shared pool and in every declared one; 0, the default, keeps them all. The engine now accounts its own memory (FLOW_RAM / --ram, else the box or the cgroup limit less 1 GB), so a node's `ram` declaration holds locally. A declared environment the shared pool already has is that pool rather than a duplicate set of warm workers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -142,6 +142,16 @@ class Settings(BaseSettings):
|
||||
# NVIDIA device nodes, the way 0 cores works the core count out; anything
|
||||
# else — another vendor, or keeping a card back — is said outright.
|
||||
FLOW_GPUS: int = 0
|
||||
# Megabytes nodes that declare `ram` may be given. 0 works it out: the
|
||||
# machine's memory, or the container's limit where that is lower, less a
|
||||
# gigabyte for the engine. Like cores, a node declaring nothing is not
|
||||
# counted against it.
|
||||
FLOW_RAM: int = 0
|
||||
# A warm worker is retired rather than kept when its node returns with the
|
||||
# process holding more than this many megabytes resident. A library that
|
||||
# grew it then gives the memory back, and the next call pays its imports
|
||||
# again. 0, the default, keeps every worker warm.
|
||||
FLOW_WORKER_MAX_RSS_MB: int = 0
|
||||
# How long the engine's own metrics, events and run records are kept.
|
||||
#: The largest body `PUT /artifacts` will take, in bytes. A checkpoint or a
|
||||
#: video segment is a legitimate artifact, so this is generous rather than
|
||||
|
||||
Reference in New Issue
Block a user