Skip to content

Commit

Permalink
Add startup probe to tw setup
Browse files Browse the repository at this point in the history
  • Loading branch information
TakGN committed May 22, 2024
1 parent 66012d5 commit 64c93d1
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install-bundler/bundler/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ for array_name in $array_names; do
helm upgrade --install "${HELM_RELEASE}-${CHAIN_ID}" "$DIR/." \
--wait \
--timeout 600s \
--values "$DIR/values.yaml" \
--values "$DIR/values.$environment.yaml" \
--namespace "$NAMESPACE" \
--set nameOverride="$NAME" \
--set env="$ENV" \
Expand Down
8 changes: 8 additions & 0 deletions install-bundler/bundler/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ spec:
failureThreshold: 40
periodSeconds: 10

startupProbe:
httpGet:
path: /admin/startup
port: {{ .Values.port }}
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
successThreshold: 1
periodSeconds: 10

livenessProbe:
httpGet:
path: /health
Expand Down
57 changes: 57 additions & 0 deletions install-bundler/bundler/values.production.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
namespace: ""
env: "test"
hpa:
minReplicas: 2
maxReplicas: 3
average_http_requests_hpa: 20
average_cpu_hpa: 80

port: "3000"
targetPort: "3000"
replicaCount: 2
resources:
requests:
memory: "2500Mi"
cpu: "2500m"
limits:
memory: "2500Mi"
cpu: "2500m"

# wait for 120 * 10s to fail
startupProbe:
failureThreshold: 120

# secret:
# projectID: biconomy-test
# key: bundlers
# config:
# name: config.json.enc

# passphrase:
# key: passphrase
# name: CONFIG_PASSPHRASE
# version: latest

# datadog configs
affinity_tolerations:
enable: false

datadog:
enable: true
# gke_cluster_type: standard OR autopilot
gke_cluster_type: autopilot
# https://github.com/DataDog/dd-trace-js/releases
dd_js_lib_version: v4.18.0
env: "testing2"
service: "sdk-relayer-service"
version: "v3.15.0"
configs:
DD_TRACE_DEBUG: "true"
DD_TRACE_STARTUP_LOGS: "false"
DD_PROFILING_ENABLED: "true"
DD_LOGS_INJECTION: "false"
DD_RUNTIME_METRICS_ENABLED: "true"

logs:
enabled: false
containerCollectAll: false
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ resources:
memory: "2500Mi"
cpu: "2500m"

# wait for 60 * 10s to fail
startupProbe:
failureThreshold: 60

# secret:
# projectID: biconomy-test
# key: bundlers
Expand Down

0 comments on commit 64c93d1

Please sign in to comment.