Merge pull request #1338 from dod-ccpo/bump-available-memory
Configure processes, threads, and increase CPU/memory limits
This commit is contained in:
commit
d2d63053c4
@ -29,6 +29,13 @@ spec:
|
|||||||
containers:
|
containers:
|
||||||
- name: atst
|
- name: atst
|
||||||
image: $CONTAINER_IMAGE
|
image: $CONTAINER_IMAGE
|
||||||
|
env:
|
||||||
|
- name: UWSGI_PROCESSES
|
||||||
|
value: "2"
|
||||||
|
- 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: 940m
|
||||||
limits:
|
limits:
|
||||||
memory: 200Mi
|
memory: 400Mi
|
||||||
cpu: 400m
|
cpu: 940m
|
||||||
- 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: 25m
|
||||||
limits:
|
limits:
|
||||||
memory: 20Mi
|
memory: 20Mi
|
||||||
cpu: 10m
|
cpu: 25m
|
||||||
volumes:
|
volumes:
|
||||||
- name: nginx-client-ca-bundle
|
- name: nginx-client-ca-bundle
|
||||||
configMap:
|
configMap:
|
||||||
|
16
deploy/overlays/staging/autoscaling.yml
Normal file
16
deploy/overlays/staging/autoscaling.yml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: atst
|
||||||
|
spec:
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 2
|
||||||
|
---
|
||||||
|
apiVersion: autoscaling/v2beta1
|
||||||
|
kind: HorizontalPodAutoscaler
|
||||||
|
metadata:
|
||||||
|
name: atst-worker
|
||||||
|
spec:
|
||||||
|
minReplicas: 1
|
||||||
|
maxReplicas: 2
|
@ -5,6 +5,7 @@ resources:
|
|||||||
- namespace.yml
|
- namespace.yml
|
||||||
- reset-cron-job.yml
|
- reset-cron-job.yml
|
||||||
patchesStrategicMerge:
|
patchesStrategicMerge:
|
||||||
|
- autoscaling.yml
|
||||||
- ports.yml
|
- ports.yml
|
||||||
- envvars.yml
|
- envvars.yml
|
||||||
- flex_vol.yml
|
- flex_vol.yml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user