fix(docker-dev): mem_limit 1g->2g (1g OOM-killed central nodes under materialise load)
This commit is contained in:
@@ -123,14 +123,16 @@ services:
|
|||||||
image: otopcua-host:dev
|
image: otopcua-host:dev
|
||||||
# Per-node memory bounds. The full single-mesh stack (6 host nodes) OOM-killed
|
# Per-node memory bounds. The full single-mesh stack (6 host nodes) OOM-killed
|
||||||
# central-1 on a loaded host. Each host node measured ~357 MiB idle-solo and
|
# central-1 on a loaded host. Each host node measured ~357 MiB idle-solo and
|
||||||
# climbs under the full mesh + deploy/UI load, so cap at 1g (≈peak + headroom)
|
# climbs sharply under deploy/materialise load: a node materialising its full
|
||||||
# with a 512m reservation. These top-level keys are inherited by every service
|
# cluster slice (e.g. central → MAIN's galaxy mirror + UNS overlay, ~1400 OPC UA
|
||||||
# that uses `<<: *otopcua-host` (YAML merge keeps the anchor's scalar keys; only
|
# nodes) peaks well above 1g during a deploy — a 1g cap OOM-kills it (exit 137).
|
||||||
# the `environment` block is re-declared per service). Compose v2 honors
|
# Cap at 2g (≈peak + headroom) with a 1g reservation. These top-level keys are
|
||||||
# `mem_limit`/`mem_reservation`. The full mesh needs ~6g of Docker Desktop VM
|
# inherited by every service that uses `<<: *otopcua-host` (YAML merge keeps the
|
||||||
# memory — on a constrained host raise the VM memory or run fewer host services.
|
# anchor's scalar keys; only the `environment` block is re-declared per service).
|
||||||
mem_limit: 1g
|
# The full 6-node mesh needs ~12g of Docker Desktop VM memory — on a constrained
|
||||||
mem_reservation: 512m
|
# host raise the VM memory or run fewer host services.
|
||||||
|
mem_limit: 2g
|
||||||
|
mem_reservation: 1g
|
||||||
depends_on:
|
depends_on:
|
||||||
sql: { condition: service_healthy }
|
sql: { condition: service_healthy }
|
||||||
migrator: { condition: service_completed_successfully }
|
migrator: { condition: service_completed_successfully }
|
||||||
|
|||||||
Reference in New Issue
Block a user