bitflicker64 commented on code in PR #3056: URL: https://github.com/apache/hugegraph/pull/3056#discussion_r3379523955
########## hugegraph-server/hugegraph-dist/docker/README.md: ########## @@ -130,3 +130,20 @@ HUGEGRAPH_VERSION=1.7.0 docker compose -f docker-compose-3pd-3store-3server.yml See [docker/README.md](../../../docker/README.md) for the full setup guide, environment variable reference, and troubleshooting. + +## 6. Process Supervision & Health Checks + +All four HugeGraph Docker images (PD, Store, Server, Server-hstore) include +native `HEALTHCHECK` instructions. `docker ps` shows real health status: + +| Image | Health endpoint | +|---|---| +| `hugegraph/hugegraph` | `GET /versions` on port 8080 | +| `hugegraph/hugegraph-hstore` | `GET /versions` on port 8080 | +| `hugegraph/hugegraph-pd` | `GET /v1/health` on port 8620 | +| `hugegraph/hugegraph-store` | `GET /v1/health` on port 8520 | + +The entrypoints supervise the Java process directly — when Java exits, the +container exits and Docker's `restart: unless-stopped` policy brings it back +automatically. The old cron-based monitor (`-m true`) is for VM/bare-metal Review Comment: Fixed qualified the restart-policy statement: "If started with a restart policy (the provided compose files use restart: unless-stopped), Docker will bring it back automatically." Direct docker run users need to pass --restart unless-stopped explicitly. Pushed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
