From 16833cfce8fb10a10859adeb989e380c05491947 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Sun, 18 Mar 2018 12:04:48 +0100 Subject: [PATCH] Lower cpu/memory requests and limits for dispatcher workers Mem: 512Mi/1536Mi -> 256Mi/320Mi Cpu: 250m/500m -> 200m/350m --- bay-services/worker.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/bay-services/worker.yaml b/bay-services/worker.yaml index e1dce0e9..7d4c2ac2 100644 --- a/bay-services/worker.yaml +++ b/bay-services/worker.yaml @@ -106,12 +106,21 @@ services: parameters: WORKER_ADMINISTRATION_REGION: api WORKER_INCLUDE_QUEUES: bayesianAnalysisFlow,bayesianApiFlow,bayesianApiPackageFlow,bayesianFlow,bayesianPackageAnalysisFlow,bayesianPackageFlow,bayesianPackageTaggingFlow,bayesianPriorityFlow,bayesianPriorityPackageFlow + REPLICAS: 0 WORKER_NAME_SUFFIX: '-dispatcher' + MEMORY_REQUEST: 256Mi + MEMORY_LIMIT: 320Mi + CPU_REQUEST: 200m + CPU_LIMIT: 350m - name: staging parameters: WORKER_ADMINISTRATION_REGION: api WORKER_INCLUDE_QUEUES: bayesianAnalysisFlow,bayesianApiFlow,bayesianApiPackageFlow,bayesianFlow,bayesianPackageAnalysisFlow,bayesianPackageFlow,bayesianPackageTaggingFlow,bayesianPriorityFlow,bayesianPriorityPackageFlow WORKER_NAME_SUFFIX: '-dispatcher' + MEMORY_REQUEST: 256Mi + MEMORY_LIMIT: 320Mi + CPU_REQUEST: 200m + CPU_LIMIT: 350m - <<: *worker_def name: worker-ingestion-dispatcher @@ -120,11 +129,20 @@ services: parameters: WORKER_ADMINISTRATION_REGION: ingestion WORKER_INCLUDE_QUEUES: bayesianAnalysisFlow,bayesianApiFlow,bayesianApiPackageFlow,bayesianFlow,bayesianPackageAnalysisFlow,bayesianPackageFlow,bayesianPackageTaggingFlow,bayesianPriorityFlow,bayesianPriorityPackageFlow + REPLICAS: 2 WORKER_NAME_SUFFIX: '-dispatcher' + MEMORY_REQUEST: 256Mi + MEMORY_LIMIT: 320Mi + CPU_REQUEST: 200m + CPU_LIMIT: 350m - name: staging parameters: WORKER_ADMINISTRATION_REGION: ingestion WORKER_NAME_SUFFIX: '-dispatcher' + MEMORY_LIMIT: 256Mi + MEMORY_LIMIT: 320Mi + CPU_REQUEST: 200m + CPU_LIMIT: 350m - <<: *worker_def name: worker-priority-dispatcher @@ -134,8 +152,16 @@ services: WORKER_ADMINISTRATION_REGION: priority WORKER_INCLUDE_QUEUES: bayesianAnalysisFlow,bayesianApiFlow,bayesianApiPackageFlow,bayesianFlow,bayesianPackageAnalysisFlow,bayesianPackageFlow,bayesianPackageTaggingFlow,bayesianPriorityFlow,bayesianPriorityPackageFlow WORKER_NAME_SUFFIX: '-dispatcher' + MEMORY_REQUEST: 256Mi + MEMORY_LIMIT: 320Mi + CPU_REQUEST: 200m + CPU_LIMIT: 350m - name: staging parameters: WORKER_ADMINISTRATION_REGION: priority WORKER_INCLUDE_QUEUES: bayesianAnalysisFlow,bayesianApiFlow,bayesianApiPackageFlow,bayesianFlow,bayesianPackageAnalysisFlow,bayesianPackageFlow,bayesianPackageTaggingFlow,bayesianPriorityFlow,bayesianPriorityPackageFlow WORKER_NAME_SUFFIX: '-dispatcher' + MEMORY_REQUEST: 256Mi + MEMORY_LIMIT: 320Mi + CPU_REQUEST: 200m + CPU_LIMIT: 350m