Compare commits
1
Commits
9ffee8b952
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e99113ae91 |
+3
-3
@@ -9,7 +9,7 @@ services:
|
|||||||
limits:
|
limits:
|
||||||
cpus: "${WEBSITE_CPUS:-0.25}"
|
cpus: "${WEBSITE_CPUS:-0.25}"
|
||||||
memory: ${WEBSITE_MEMORY:-64M}
|
memory: ${WEBSITE_MEMORY:-64M}
|
||||||
pids_limit: 64
|
pids: 64
|
||||||
networks:
|
networks:
|
||||||
- wizard_website
|
- wizard_website
|
||||||
|
|
||||||
@@ -29,7 +29,7 @@ services:
|
|||||||
limits:
|
limits:
|
||||||
cpus: "${SERVER_CPUS:-1.0}"
|
cpus: "${SERVER_CPUS:-1.0}"
|
||||||
memory: ${SERVER_MEMORY:-512M}
|
memory: ${SERVER_MEMORY:-512M}
|
||||||
pids_limit: 256
|
pids: 256
|
||||||
networks:
|
networks:
|
||||||
- wizard_api
|
- wizard_api
|
||||||
- wizard_internal
|
- wizard_internal
|
||||||
@@ -58,7 +58,7 @@ services:
|
|||||||
limits:
|
limits:
|
||||||
cpus: "${AI_CPUS:-1.0}"
|
cpus: "${AI_CPUS:-1.0}"
|
||||||
memory: ${AI_MEMORY:-1G}
|
memory: ${AI_MEMORY:-1G}
|
||||||
pids_limit: 256
|
pids: 256
|
||||||
volumes:
|
volumes:
|
||||||
# Trained checkpoints; replace without rebuilding the image.
|
# Trained checkpoints; replace without rebuilding the image.
|
||||||
- ./wizard_ai/models:/srv/models:ro
|
- ./wizard_ai/models:/srv/models:ro
|
||||||
|
|||||||
@@ -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:
|
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
|
the server uses ~80 MB idle and ~100 MB with 100 games (see
|
||||||
[measurements](#measurements)).
|
[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`,
|
- 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
|
so numeric libraries (numpy, torch) don't start one thread per *host* core
|
||||||
inside a 1-CPU container.
|
inside a 1-CPU container.
|
||||||
|
|||||||
Reference in New Issue
Block a user