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:
Sebastian Cavedale 2024-03-13 14:54:23 -03:00 committed by GitHub
parent 67d0e970f0
commit 605b883b1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 16 deletions

View File

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

View File

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

View File

@ -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
@ -21,4 +21,4 @@ WORMSCAN_VAAPAYLOADPARSER_URL=
WORMSCAN_VAAPAYLOADPARSER_TIMEOUT=10
WORMSCAN_VAAPAYLOADPARSER_ENABLED=true
WORMSCAN_PROTOCOLS=allbridge,mayan
WORMSCAN_CACHE_PROTOCOLSSTATSEXPIRATION=60
WORMSCAN_CACHE_PROTOCOLSSTATSEXPIRATION=60