Run UWSGI with 4 processes and 2 threads. Allocate more CPU/memory
This commit is contained in:
parent
454646bbb1
commit
2008b4e6e3
@ -17,7 +17,7 @@ spec:
|
|||||||
- type: Resource
|
- type: Resource
|
||||||
resource:
|
resource:
|
||||||
name: cpu
|
name: cpu
|
||||||
targetAverageUtilization: 60
|
targetAverageUtilization: 70
|
||||||
---
|
---
|
||||||
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: 60
|
targetAverageUtilization: 70
|
||||||
|
@ -29,6 +29,13 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: atst
|
- name: atst
|
||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
|
env:
|
||||||
|
- name: UWSGI_PROCESSES
|
||||||
|
value: "4"
|
||||||
|
- name: UWSGI_THREADS
|
||||||
|
value: "2"
|
||||||
|
- name: UWSGI_ENABLE_THREADS
|
||||||
|
value: "1"
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: atst-envvars
|
name: atst-envvars
|
||||||
@ -50,11 +57,11 @@ spec:
|
|||||||
mountPath: "/config"
|
mountPath: "/config"
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 200Mi
|
memory: 400Mi
|
||||||
cpu: 400m
|
cpu: 1200m
|
||||||
limits:
|
limits:
|
||||||
memory: 200Mi
|
memory: 400Mi
|
||||||
cpu: 400m
|
cpu: 1200m
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
ports:
|
ports:
|
||||||
@ -86,10 +93,10 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
cpu: 10m
|
cpu: 100m
|
||||||
limits:
|
limits:
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
cpu: 10m
|
cpu: 100m
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-client-ca-bundle
|
- name: nginx-client-ca-bundle
|
||||||
configMap:
|
configMap:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user