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 }}"
|
prometheus.io/port: "{{ .PORT }}"
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
terminationGracePeriodSeconds: 40
|
terminationGracePeriodSeconds: 30
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .NAME }}
|
- name: {{ .NAME }}
|
||||||
image: {{ .IMAGE_NAME }}
|
image: {{ .IMAGE_NAME }}
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 20
|
periodSeconds: 10
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 2
|
||||||
|
successThreshold: 1
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v1/ready
|
path: /api/v1/ready
|
||||||
port: {{ .PORT }}
|
port: {{ .PORT }}
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 5
|
||||||
periodSeconds: 30
|
periodSeconds: 20
|
||||||
timeoutSeconds: 3
|
timeoutSeconds: 1
|
||||||
failureThreshold: 3
|
failureThreshold: 4
|
||||||
|
successThreshold: 1
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v1/health
|
path: /api/v1/health
|
||||||
port: {{ .PORT }}
|
port: {{ .PORT }}
|
||||||
|
|
|
@ -5,9 +5,9 @@ PORT=8000
|
||||||
REPLICAS=4
|
REPLICAS=4
|
||||||
IMAGE_NAME=
|
IMAGE_NAME=
|
||||||
RESOURCES_LIMITS_MEMORY=256Mi
|
RESOURCES_LIMITS_MEMORY=256Mi
|
||||||
RESOURCES_LIMITS_CPU=500m
|
RESOURCES_LIMITS_CPU=750m
|
||||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||||
RESOURCES_REQUESTS_CPU=250m
|
RESOURCES_REQUESTS_CPU=500m
|
||||||
WORMSCAN_RUNMODE=PRODUCTION
|
WORMSCAN_RUNMODE=PRODUCTION
|
||||||
WORMSCAN_LOGLEVEL=INFO
|
WORMSCAN_LOGLEVEL=INFO
|
||||||
WORMSCAN_P2PNETWORK=mainnet
|
WORMSCAN_P2PNETWORK=mainnet
|
||||||
|
|
|
@ -4,10 +4,10 @@ NAME=wormscan-api
|
||||||
PORT=8000
|
PORT=8000
|
||||||
REPLICAS=2
|
REPLICAS=2
|
||||||
IMAGE_NAME=
|
IMAGE_NAME=
|
||||||
RESOURCES_LIMITS_MEMORY=64Mi
|
RESOURCES_LIMITS_MEMORY=128Mi
|
||||||
RESOURCES_LIMITS_CPU=20m
|
RESOURCES_LIMITS_CPU=250m
|
||||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||||
RESOURCES_REQUESTS_CPU=10m
|
RESOURCES_REQUESTS_CPU=125m
|
||||||
WORMSCAN_RUNMODE=DEVELOPMENT
|
WORMSCAN_RUNMODE=DEVELOPMENT
|
||||||
WORMSCAN_LOGLEVEL=INFO
|
WORMSCAN_LOGLEVEL=INFO
|
||||||
WORMSCAN_P2PNETWORK=mainnet
|
WORMSCAN_P2PNETWORK=mainnet
|
||||||
|
|
Loading…
Reference in New Issue