From 35cd76adf5c36079873731c2ad21bff52e272edd Mon Sep 17 00:00:00 2001 From: raydds Date: Mon, 20 Jan 2020 14:07:08 -0500 Subject: [PATCH] Try to fit two web processes per node --- deploy/azure/autoscaling.yml | 4 ++-- deploy/azure/azure.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/deploy/azure/autoscaling.yml b/deploy/azure/autoscaling.yml index 8bab90f4..e208d943 100644 --- a/deploy/azure/autoscaling.yml +++ b/deploy/azure/autoscaling.yml @@ -17,7 +17,7 @@ spec: - type: Resource resource: name: cpu - targetAverageUtilization: 70 + targetAverageUtilization: 60 --- apiVersion: autoscaling/v2beta1 kind: HorizontalPodAutoscaler @@ -37,4 +37,4 @@ spec: - type: Resource resource: name: cpu - targetAverageUtilization: 70 + targetAverageUtilization: 60 diff --git a/deploy/azure/azure.yml b/deploy/azure/azure.yml index 7feb0823..f988d5fc 100644 --- a/deploy/azure/azure.yml +++ b/deploy/azure/azure.yml @@ -31,7 +31,7 @@ spec: image: $CONTAINER_IMAGE env: - name: UWSGI_PROCESSES - value: "4" + value: "2" - name: UWSGI_THREADS value: "2" - name: UWSGI_ENABLE_THREADS @@ -58,10 +58,10 @@ spec: resources: requests: memory: 400Mi - cpu: 1200m + cpu: 940m limits: memory: 400Mi - cpu: 1200m + cpu: 940m - name: nginx image: nginx:alpine ports: @@ -93,10 +93,10 @@ spec: resources: requests: memory: 20Mi - cpu: 100m + cpu: 25m limits: memory: 20Mi - cpu: 100m + cpu: 25m volumes: - name: nginx-client-ca-bundle configMap: