From: tierno Date: Mon, 22 Jul 2019 13:23:56 +0000 (+0000) Subject: bug 801 increase healthcheck timeout for NBI/POL/MON X-Git-Tag: v7.0.0rc1~87^2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F7784%2F1;p=osm%2Fdevops.git bug 801 increase healthcheck timeout for NBI/POL/MON Change-Id: I36a4b5ec36367ed3863dae2193e598a7f276322e Signed-off-by: tierno --- diff --git a/docker/MON/Dockerfile b/docker/MON/Dockerfile index 2fb08006..71b6bbbd 100644 --- a/docker/MON/Dockerfile +++ b/docker/MON/Dockerfile @@ -82,7 +82,7 @@ ENV OSMMON_PROMETHEUS_URL http://prometheus:9090 EXPOSE 8000 -HEALTHCHECK --interval=5s --timeout=2s --retries=12 \ +HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 \ CMD osm-mon-healthcheck || exit 1 CMD /bin/bash scripts/start.sh diff --git a/docker/NBI/Dockerfile b/docker/NBI/Dockerfile index 87fa0ac3..0771c74f 100644 --- a/docker/NBI/Dockerfile +++ b/docker/NBI/Dockerfile @@ -81,7 +81,7 @@ ENV OSMNBI_AUTHENTICATION_BACKEND internal ENV OSMNBI_PROMETHEUS_HOST prometheus ENV OSMNBI_PROMETHEUS_PORT 9090 -HEALTHCHECK --interval=5s --timeout=2s --retries=12 \ +HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 \ CMD curl -k https://localhost:9999/osm/ | grep Welcome || exit 1 # Run app.py when the container launches diff --git a/docker/POL/Dockerfile b/docker/POL/Dockerfile index 6de7c717..2dd1382b 100644 --- a/docker/POL/Dockerfile +++ b/docker/POL/Dockerfile @@ -55,7 +55,7 @@ ENV OSMPOL_SQL_DATABASE_URI sqlite:///mon_sqlite.db ENV OSMPOL_GLOBAL_LOG_LEVEL INFO -HEALTHCHECK --interval=5s --timeout=2s --retries=12 \ +HEALTHCHECK --start-period=120s --interval=10s --timeout=5s --retries=5 \ CMD osm-pol-healthcheck || exit 1 CMD /bin/bash scripts/start.sh