Skip to content

Commit 11fe266

Browse files
authored
[mock_uss] Increase start_period for healthchecks and add timeout for mock_uss healthchecks. (#1392)
1 parent bac22cb commit 11fe266

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

monitoring/mock_uss/docker-compose.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ services:
3434
- interop_ecosystem_network
3535
extra_hosts:
3636
- host.docker.internal:host-gateway
37+
healthcheck:
38+
start_period: 30s
3739
profiles:
3840
- '' # starts when no profile is provided
3941
- scd
@@ -63,6 +65,8 @@ services:
6365
- interop_ecosystem_network
6466
extra_hosts:
6567
- host.docker.internal:host-gateway
68+
healthcheck:
69+
start_period: 30s
6670
profiles:
6771
- '' # starts when no profile is provided
6872
- scd
@@ -89,6 +93,8 @@ services:
8993
- interop_ecosystem_network
9094
extra_hosts:
9195
- host.docker.internal:host-gateway
96+
healthcheck:
97+
start_period: 30s
9298
profiles:
9399
- '' # starts when no profile is provided
94100
- geoawareness
@@ -121,6 +127,8 @@ services:
121127
- interop_ecosystem_network
122128
extra_hosts:
123129
- host.docker.internal:host-gateway
130+
healthcheck:
131+
start_period: 30s
124132
profiles:
125133
- '' # starts when no profile is provided
126134
- rid
@@ -153,6 +161,8 @@ services:
153161
- interop_ecosystem_network
154162
extra_hosts:
155163
- host.docker.internal:host-gateway
164+
healthcheck:
165+
start_period: 30s
156166
profiles:
157167
- '' # starts when no profile is provided
158168
- rid
@@ -185,6 +195,8 @@ services:
185195
- interop_ecosystem_network
186196
extra_hosts:
187197
- host.docker.internal:host-gateway
198+
healthcheck:
199+
start_period: 30s
188200
profiles:
189201
- '' # starts when no profile is provided
190202
- rid_v19
@@ -217,6 +229,8 @@ services:
217229
- interop_ecosystem_network
218230
extra_hosts:
219231
- host.docker.internal:host-gateway
232+
healthcheck:
233+
start_period: 30s
220234
profiles:
221235
- '' # starts when no profile is provided
222236
- rid_v19
@@ -253,6 +267,8 @@ services:
253267
- interop_ecosystem_network
254268
extra_hosts:
255269
- host.docker.internal:host-gateway
270+
healthcheck:
271+
start_period: 30s
256272
profiles:
257273
- '' # starts when no profile is provided
258274
- scd
@@ -287,6 +303,8 @@ services:
287303
- interop_ecosystem_network
288304
extra_hosts:
289305
- host.docker.internal:host-gateway
306+
healthcheck:
307+
start_period: 30s
290308
profiles:
291309
- '' # starts when no profile is provided
292310
- scd
@@ -313,4 +331,3 @@ services:
313331
networks:
314332
interop_ecosystem_network:
315333
external: true
316-

monitoring/mock_uss/health_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# mock_uss via the interuss/monitoring image to determine the health status of
55
# the container.
66

7-
curl --fail "http://localhost:${MOCK_USS_PORT:-5000}/status" || exit 1
7+
curl --fail --max-time 1 "http://localhost:${MOCK_USS_PORT:-5000}/status" || exit 1

0 commit comments

Comments
 (0)