Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes(HMS-4439): resource limits (ADR-046) #805

Merged
merged 1 commit into from
Jul 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions deploy/clowdapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ objects:
value: ${WORKER_QUEUE}
resources:
limits:
cpu: ${{CPU_LIMIT}}
memory: ${MEMORY_LIMIT}
cpu: ${{CPU_LIMIT_ALL}}
memory: ${MEMORY_LIMIT_ALL}
requests:
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
cpu: ${CPU_REQUEST_ALL}
memory: ${MEMORY_REQUEST_ALL}
- name: statuser
replicas: ${{STATUSER_REPLICAS}}
metadata:
Expand Down Expand Up @@ -192,11 +192,11 @@ objects:
value: ${APP_CACHE_TYPE}
resources:
limits:
cpu: ${{CPU_LIMIT}}
memory: ${MEMORY_LIMIT}
cpu: ${{CPU_LIMIT_ALL}}
memory: ${MEMORY_LIMIT_ALL}
requests:
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
cpu: ${CPU_REQUEST_ALL}
memory: ${MEMORY_REQUEST_ALL}
- name: stats
replicas: ${{STATS_REPLICAS}}
metadata:
Expand Down Expand Up @@ -241,11 +241,11 @@ objects:
value: ${APP_CACHE_TYPE}
resources:
limits:
cpu: ${{CPU_LIMIT}}
memory: ${MEMORY_LIMIT}
cpu: ${{CPU_LIMIT_ALL}}
memory: ${MEMORY_LIMIT_ALL}
requests:
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
cpu: ${CPU_REQUEST_ALL}
memory: ${MEMORY_REQUEST_ALL}
- name: api
replicas: ${{API_REPLICAS}}
webServices:
Expand Down Expand Up @@ -367,11 +367,11 @@ objects:
value: ${WORKER_QUEUE}
resources:
limits:
cpu: ${{CPU_LIMIT}}
memory: ${MEMORY_LIMIT}
cpu: ${{CPU_LIMIT_ALL}}
memory: ${MEMORY_LIMIT_ALL}
requests:
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
cpu: ${CPU_REQUEST_ALL}
memory: ${MEMORY_REQUEST_ALL}
database:
name: provisioning
version: 15
Expand Down Expand Up @@ -509,17 +509,17 @@ parameters:
name: ENV_NAME
required: true
- description: CPU request for each pod (placement)
name: CPU_REQUESTS
value: 100m
name: CPU_REQUEST_ALL
value: 250m
- description: Memory request for each pod (placement)
name: MEMORY_REQUESTS
value: 100Mi
name: MEMORY_REQUEST_ALL
value: 256Mi
- description: CPU limit for each pod (throttling)
name: CPU_LIMIT
name: CPU_LIMIT_ALL
value: 500m
- description: Memory limit for each pod (pod restart)
name: MEMORY_LIMIT
value: 600Mi
name: MEMORY_LIMIT_ALL
value: 512Mi
- description: Amount of replicas for pod serving the API
name: API_REPLICAS
value: "3"
Expand Down
Loading