Docker healthcheck timings - add startup delay and changed interval (#9913)

* Add healthcheck startup delay by 5secs and reduced interval check to 15s
to reduce waiting time for docker aware edge routers bringing an
instance online
This commit is contained in:
Christopher May-Townsend
2021-05-05 16:33:04 +01:00
committed by GitHub
parent e9eb3549d3
commit d5305000f1
3 changed files with 16 additions and 4 deletions

View File

@@ -88,5 +88,5 @@ EXPOSE 8008/tcp 8009/tcp 8448/tcp
ENTRYPOINT ["/start.py"]
HEALTHCHECK --interval=1m --timeout=5s \
HEALTHCHECK --start-period=5s --interval=15s --timeout=5s \
CMD curl -fSs http://localhost:8008/health || exit 1