fix(k8s/reitti): raise memory limit and relax probe timeouts for large imports
This commit is contained in:
@@ -93,22 +93,27 @@ spec:
|
|||||||
initialDelaySeconds: 20
|
initialDelaySeconds: 20
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
failureThreshold: 30 # DB migrations on first start / upgrades
|
failureThreshold: 30 # DB migrations on first start / upgrades
|
||||||
|
# Generous timeouts: large imports (Google Timeline, ~500k points) keep the JVM busy
|
||||||
|
# for minutes and /actuator/health answers slowly; a 1s timeout got the pod killed.
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
port: 8080
|
port: 8080
|
||||||
path: /actuator/health
|
path: /actuator/health
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
|
timeoutSeconds: 10
|
||||||
|
failureThreshold: 6
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
port: 8080
|
port: 8080
|
||||||
path: /actuator/health
|
path: /actuator/health
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
memory: 512Mi
|
memory: 1Gi
|
||||||
limits:
|
limits:
|
||||||
memory: 1536Mi
|
memory: 3Gi # heap = 75%; 1.5Gi ran out of heap processing a large import
|
||||||
volumes:
|
volumes:
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
|||||||
Reference in New Issue
Block a user