Try to fit two web processes per node
This commit is contained in:
@@ -17,7 +17,7 @@ spec:
|
|||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
targetAverageUtilization: 70
|
targetAverageUtilization: 60
|
||||||
---
|
---
|
||||||
apiVersion: autoscaling/v2beta1
|
apiVersion: autoscaling/v2beta1
|
||||||
kind: HorizontalPodAutoscaler
|
kind: HorizontalPodAutoscaler
|
||||||
@@ -37,4 +37,4 @@ spec:
|
|||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
targetAverageUtilization: 70
|
targetAverageUtilization: 60
|
||||||
|
@@ -31,7 +31,7 @@ spec:
|
|||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
env:
|
env:
|
||||||
- name: UWSGI_PROCESSES
|
- name: UWSGI_PROCESSES
|
||||||
value: "4"
|
value: "2"
|
||||||
- name: UWSGI_THREADS
|
- name: UWSGI_THREADS
|
||||||
value: "2"
|
value: "2"
|
||||||
- name: UWSGI_ENABLE_THREADS
|
- name: UWSGI_ENABLE_THREADS
|
||||||
@@ -58,10 +58,10 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 400Mi
|
memory: 400Mi
|
||||||
cpu: 1200m
|
cpu: 940m
|
||||||
limits:
|
limits:
|
||||||
memory: 400Mi
|
memory: 400Mi
|
||||||
cpu: 1200m
|
cpu: 940m
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
ports:
|
ports:
|
||||||
@@ -93,10 +93,10 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
cpu: 100m
|
cpu: 25m
|
||||||
limits:
|
limits:
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
cpu: 100m
|
cpu: 25m
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-client-ca-bundle
|
- name: nginx-client-ca-bundle
|
||||||
configMap:
|
configMap:
|
||||||
|
Reference in New Issue
Block a user