Skip to content

Commit d0b8e77

Browse files
committed
uniformize
1 parent 8af97e4 commit d0b8e77

File tree

33 files changed

+79
-52
lines changed

33 files changed

+79
-52
lines changed

scripts/docker/healthcheck_curl_host.py

100644100755
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
COPY --chown=scu:scu docker/healthcheck.py docker/healthcheck.py
77
HEALTHCHECK --interval=30s \
88
--timeout=30s \
9-
--start-period=1s \
9+
--start-period=20s \
10+
--start-interval=1s \
1011
--retries=3 \
1112
CMD python3 docker/healthcheck.py http://localhost:8080/v0/
1213
```

services/agent/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ RUN chmod +x services/agent/docker/*.sh
150150

151151
HEALTHCHECK --interval=30s \
152152
--timeout=20s \
153-
--start-period=30s \
153+
--start-period=20s \
154+
--start-interval=1s \
154155
--retries=3 \
155156
CMD ["python3", "services/agent/docker/healthcheck.py", "http://localhost:8000/health"]
156157

services/agent/docker/healthcheck.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
COPY --chown=scu:scu docker/healthcheck.py docker/healthcheck.py
77
HEALTHCHECK --interval=30s \
88
--timeout=30s \
9-
--start-period=1s \
9+
--start-period=20s \
10+
--start-interval=1s \
1011
--retries=3 \
1112
CMD python3 docker/healthcheck.py http://localhost:8000/
1213
```
@@ -15,6 +16,7 @@
1516
1. why not to use curl instead of a python script?
1617
- SEE https://blog.sixeyed.com/docker-healthchecks-why-not-to-use-curl-or-iwr/
1718
"""
19+
1820
import os
1921
import sys
2022
from urllib.request import urlopen

services/api-server/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ RUN chmod +x services/api-server/docker/*.sh
143143

144144
HEALTHCHECK --interval=10s \
145145
--timeout=5s \
146-
--start-period=5s \
146+
--start-period=20s \
147+
--start-interval=1s \
147148
--retries=5 \
148149
CMD ["python3", "services/api-server/docker/healthcheck.py", "http://localhost:8000/"]
149150

services/api-server/docker/healthcheck.py

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
COPY --chown=scu:scu docker/healthcheck.py docker/healthcheck.py
77
HEALTHCHECK --interval=30s \
88
--timeout=30s \
9-
--start-period=1s \
9+
--start-period=20s \
10+
--start-interval=1s \
1011
--retries=3 \
11-
CMD python3 docker/healthcheck.py http://localhost:8000/
12+
CMD python3 docker/healthcheck.py http://localhost:8080/v0/
1213
```
1314
1415
Q&A:

services/autoscaling/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ RUN chmod +x services/autoscaling/docker/*.sh
158158

159159
HEALTHCHECK --interval=10s \
160160
--timeout=5s \
161-
--start-period=5s \
161+
--start-period=20s \
162+
--start-interval=1s \
162163
--retries=5 \
163164
CMD ["python3", "services/autoscaling/docker/healthcheck.py", "http://localhost:8000/"]
164165

services/autoscaling/docker/healthcheck.py

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
COPY --chown=scu:scu docker/healthcheck.py docker/healthcheck.py
77
HEALTHCHECK --interval=30s \
88
--timeout=30s \
9-
--start-period=1s \
9+
--start-period=20s \
10+
--start-interval=1s \
1011
--retries=3 \
11-
CMD python3 docker/healthcheck.py http://localhost:8000/
12+
CMD python3 docker/healthcheck.py http://localhost:8080/v0/
1213
```
1314
1415
Q&A:

services/catalog/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ RUN chmod +x services/catalog/docker/*.sh
142142

143143
HEALTHCHECK --interval=10s \
144144
--timeout=5s \
145-
--start-period=5s \
145+
--start-period=20s \
146+
--start-interval=1s \
146147
--retries=5 \
147148
CMD ["python3", "services/catalog/docker/healthcheck.py", "http://localhost:8000/"]
148149

services/catalog/docker/healthcheck.py

100644100755
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
COPY --chown=scu:scu docker/healthcheck.py docker/healthcheck.py
77
HEALTHCHECK --interval=30s \
88
--timeout=30s \
9-
--start-period=1s \
9+
--start-period=20s \
10+
--start-interval=1s \
1011
--retries=3 \
11-
CMD python3 docker/healthcheck.py http://localhost:8000/
12+
CMD python3 docker/healthcheck.py http://localhost:8080/v0/
1213
```
1314
1415
Q&A:

services/clusters-keeper/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ RUN chmod +x services/clusters-keeper/docker/*.sh
161161

162162
HEALTHCHECK --interval=10s \
163163
--timeout=5s \
164-
--start-period=5s \
164+
--start-period=20s \
165+
--start-interval=1s \
165166
--retries=5 \
166167
CMD ["python3", "services/clusters-keeper/docker/healthcheck.py", "http://localhost:8000/"]
167168

0 commit comments

Comments
 (0)