Merge pull request #1338 from dod-ccpo/bump-available-memory

Configure processes, threads, and increase CPU/memory limits
This commit is contained in:
raydds 2020-01-20 16:44:41 -05:00 committed by GitHub
commit d2d63053c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 6 deletions

View File

@ -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:

View 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

View File

@ -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