Changed api container settings in order to reduce the startup time (#1199)
* Changed api-deployment container settings in order to reduce the startup time * Set staging-mainnet CPU/MEMORY requests/limits * Upgrade production-mainnet CPU requests/limits
This commit is contained in:
parent
67d0e970f0
commit
605b883b1e
|
@ -35,23 +35,25 @@ spec:
|
|||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
successThreshold: 1
|
||||
httpGet:
|
||||
path: /api/v1/ready
|
||||
port: {{ .PORT }}
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 4
|
||||
successThreshold: 1
|
||||
httpGet:
|
||||
path: /api/v1/health
|
||||
port: {{ .PORT }}
|
||||
|
|
|
@ -5,9 +5,9 @@ PORT=8000
|
|||
REPLICAS=4
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_LIMITS_CPU=750m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
RESOURCES_REQUESTS_CPU=500m
|
||||
WORMSCAN_RUNMODE=PRODUCTION
|
||||
WORMSCAN_LOGLEVEL=INFO
|
||||
WORMSCAN_P2PNETWORK=mainnet
|
||||
|
|
|
@ -4,10 +4,10 @@ NAME=wormscan-api
|
|||
PORT=8000
|
||||
REPLICAS=2
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=64Mi
|
||||
RESOURCES_LIMITS_CPU=20m
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=10m
|
||||
RESOURCES_LIMITS_MEMORY=128Mi
|
||||
RESOURCES_LIMITS_CPU=250m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=125m
|
||||
WORMSCAN_RUNMODE=DEVELOPMENT
|
||||
WORMSCAN_LOGLEVEL=INFO
|
||||
WORMSCAN_P2PNETWORK=mainnet
|
||||
|
|
Loading…
Reference in New Issue