From 24609298a9717667e9db077366ff38e27a59e61d Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 11 Dec 2024 15:25:19 -0500 Subject: [PATCH] adding limit-active-volumes container placement strategy --- operations/container-placement.yml | 12 +++++++++++- variables/development.yml | 1 + variables/production.yml | 1 + variables/staging.yml | 1 + 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/operations/container-placement.yml b/operations/container-placement.yml index 2cbf5ca..3e287ea 100644 --- a/operations/container-placement.yml +++ b/operations/container-placement.yml @@ -1,7 +1,17 @@ - type: replace path: /instance_groups/name=web/jobs/name=web/properties/container_placement_strategies? - value: [limit-active-containers,volume-locality,fewest-build-containers] + value: + [ + limit-active-containers, + limit-active-volumes, + volume-locality, + fewest-build-containers, + ] - type: replace path: /instance_groups/name=web/jobs/name=web/properties/max_active_containers_per_worker? value: ((max_active_containers_per_worker)) + +- type: replace + path: /instance_groups/name=web/jobs/name=web/properties/max_active_volumes_per_worker? + value: ((max_active_volumes_per_worker)) diff --git a/variables/development.yml b/variables/development.yml index fc4e8f4..0e52eb3 100644 --- a/variables/development.yml +++ b/variables/development.yml @@ -14,3 +14,4 @@ iaas_worker_instances: 1 build_logs_default: 25 build_logs_maximum: 0 max_active_containers_per_worker: 50 +max_active_volumes_per_worker: 100 diff --git a/variables/production.yml b/variables/production.yml index 9e47443..96bc38c 100644 --- a/variables/production.yml +++ b/variables/production.yml @@ -14,3 +14,4 @@ iaas_worker_instances: 2 build_logs_default: 25 build_logs_maximum: 0 max_active_containers_per_worker: 200 +max_active_volumes_per_worker: 400 diff --git a/variables/staging.yml b/variables/staging.yml index 9b11d87..7315a05 100644 --- a/variables/staging.yml +++ b/variables/staging.yml @@ -15,3 +15,4 @@ iaas_worker_instances: 1 build_logs_default: 25 build_logs_maximum: 0 max_active_containers_per_worker: 100 +max_active_volumes_per_worker: 200