Fix compose: move pids limits into deploy.resources.limits
Newer docker compose treats pids_limit and deploy.resources.limits.pids
as the same setting and rejects the project when both are present
("can't set distinct values on 'pids_limit' and
'deploy.resources.limits.pids'"). The limits are now only set as
deploy.resources.limits.pids (same values).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,7 @@ Set in `compose.yaml` from `.env` (defaults shown):
|
||||
would end all games (state is in memory), so the limit has lots of headroom:
|
||||
the server uses ~80 MB idle and ~100 MB with 100 games (see
|
||||
[measurements](#measurements)).
|
||||
- **Processes** (`pids_limit`) stop fork bombs / thread explosions.
|
||||
- **Processes** (`deploy.resources.limits.pids`) stop fork bombs / thread explosions.
|
||||
- The AI container sets `OMP_NUM_THREADS` / `MKL_NUM_THREADS` to `AI_WORKERS`,
|
||||
so numeric libraries (numpy, torch) don't start one thread per *host* core
|
||||
inside a 1-CPU container.
|
||||
|
||||
Reference in New Issue
Block a user