From 36c161d2be8b6ad7b938ce5df489b642dbee19ba Mon Sep 17 00:00:00 2001 From: Revant Nandgaonkar Date: Thu, 2 Jul 2020 15:52:06 +0530 Subject: [PATCH] docs: health check [skip travis] --- docs/site-operations.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/site-operations.md b/docs/site-operations.md index 6211e928..1a05525f 100644 --- a/docs/site-operations.md +++ b/docs/site-operations.md @@ -196,8 +196,10 @@ For socketio and gunicorn service ping the hostname:port and that will be suffic ```shell docker exec -it _erpnext-worker-d \ - docker-entrypoint.sh doctor -p postgresql-master.pgsql.svc.cluster.local:5432 +docker-entrypoint.sh doctor -p postgresql:5432 --ping-service mongodb:27017 ``` +Additional services can be pinged as part of health check with option `-p` or `--ping-service`. + This check ensures that given service should be connected along with services in common_site_config.json. If connection to service(s) fails, the command fails with exit code 1.