Skip to content

Commit 64c93d1

Browse files
committed
Add startup probe to tw setup
1 parent 66012d5 commit 64c93d1

4 files changed

Lines changed: 70 additions & 1 deletion

File tree

install-bundler/bundler/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ for array_name in $array_names; do
169169
helm upgrade --install "${HELM_RELEASE}-${CHAIN_ID}" "$DIR/." \
170170
--wait \
171171
--timeout 600s \
172-
--values "$DIR/values.yaml" \
172+
--values "$DIR/values.$environment.yaml" \
173173
--namespace "$NAMESPACE" \
174174
--set nameOverride="$NAME" \
175175
--set env="$ENV" \

install-bundler/bundler/templates/statefulset.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,14 @@ spec:
134134
failureThreshold: 40
135135
periodSeconds: 10
136136

137+
startupProbe:
138+
httpGet:
139+
path: /admin/startup
140+
port: {{ .Values.port }}
141+
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
142+
successThreshold: 1
143+
periodSeconds: 10
144+
137145
livenessProbe:
138146
httpGet:
139147
path: /health
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
namespace: ""
2+
env: "test"
3+
hpa:
4+
minReplicas: 2
5+
maxReplicas: 3
6+
average_http_requests_hpa: 20
7+
average_cpu_hpa: 80
8+
9+
port: "3000"
10+
targetPort: "3000"
11+
replicaCount: 2
12+
resources:
13+
requests:
14+
memory: "2500Mi"
15+
cpu: "2500m"
16+
limits:
17+
memory: "2500Mi"
18+
cpu: "2500m"
19+
20+
# wait for 120 * 10s to fail
21+
startupProbe:
22+
failureThreshold: 120
23+
24+
# secret:
25+
# projectID: biconomy-test
26+
# key: bundlers
27+
# config:
28+
# name: config.json.enc
29+
30+
# passphrase:
31+
# key: passphrase
32+
# name: CONFIG_PASSPHRASE
33+
# version: latest
34+
35+
# datadog configs
36+
affinity_tolerations:
37+
enable: false
38+
39+
datadog:
40+
enable: true
41+
# gke_cluster_type: standard OR autopilot
42+
gke_cluster_type: autopilot
43+
# https://github.com/DataDog/dd-trace-js/releases
44+
dd_js_lib_version: v4.18.0
45+
env: "testing2"
46+
service: "sdk-relayer-service"
47+
version: "v3.15.0"
48+
configs:
49+
DD_TRACE_DEBUG: "true"
50+
DD_TRACE_STARTUP_LOGS: "false"
51+
DD_PROFILING_ENABLED: "true"
52+
DD_LOGS_INJECTION: "false"
53+
DD_RUNTIME_METRICS_ENABLED: "true"
54+
55+
logs:
56+
enabled: false
57+
containerCollectAll: false

install-bundler/bundler/values.yaml renamed to install-bundler/bundler/values.staging.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ resources:
1717
memory: "2500Mi"
1818
cpu: "2500m"
1919

20+
# wait for 60 * 10s to fail
21+
startupProbe:
22+
failureThreshold: 60
23+
2024
# secret:
2125
# projectID: biconomy-test
2226
# key: bundlers

0 commit comments

Comments
 (0)