bug 801 increase healthcheck timeout for NBI/POL/MON 84/7784/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 22 Jul 2019 13:23:56 +0000 (13:23 +0000)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Mon, 22 Jul 2019 13:23:56 +0000 (13:23 +0000)
Change-Id: I36a4b5ec36367ed3863dae2193e598a7f276322e
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
docker/MON/Dockerfile
docker/NBI/Dockerfile
docker/POL/Dockerfile

index 2fb0800..71b6bbb 100644 (file)
@@ -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
index 87fa0ac..0771c74 100644 (file)
@@ -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
index 6de7c71..2dd1382 100644 (file)
@@ -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