diff --git a/services/registry/docker-compose.yml.j2 b/services/registry/docker-compose.yml.j2 index 6fa856304..e5816933d 100644 --- a/services/registry/docker-compose.yml.j2 +++ b/services/registry/docker-compose.yml.j2 @@ -45,12 +45,12 @@ services: failure_action: rollback parallelism: 1 placement: - constraints: + constraints: ${OPS_REGISTRY_PLACEMENT_CONSTRAINTS} - node.labels.ops==true resources: limits: memory: 1G - cpus: '6' + cpus: ${OPS_REGISTRY_CPU_LIMIT} reservations: memory: 128M cpus: '0.1' @@ -125,7 +125,7 @@ services: resources: limits: memory: 1G - cpus: '2' + cpus: '6' reservations: memory: 128M cpus: '0.1' diff --git a/services/registry/template.env b/services/registry/template.env index 6ba8661eb..1b852180b 100644 --- a/services/registry/template.env +++ b/services/registry/template.env @@ -1,6 +1,8 @@ STACK_NAME=${STACK_NAME} OPS_REGISTRY_REPLICAS=${OPS_REGISTRY_REPLICAS} +OPS_REGISTRY_PLACEMENT_CONSTRAINTS=${OPS_REGISTRY_PLACEMENT_CONSTRAINTS} +OPS_REGISTRY_CPU_LIMIT=${OPS_REGISTRY_CPU_LIMIT} REGISTRY_DOMAIN=${REGISTRY_DOMAIN}