Skip to content

Commit

Permalink
Lower cpu/memory requests and limits for dispatcher workers
Browse files Browse the repository at this point in the history
Mem:
512Mi/1536Mi -> 256Mi/320Mi

Cpu:
250m/500m -> 200m/350m
  • Loading branch information
msrb committed Mar 18, 2018
1 parent 846c8d3 commit 16833cf
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions bay-services/worker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 16833cf

Please sign in to comment.