bitflicker64 opened a new pull request, #3056:
URL: https://github.com/apache/hugegraph/pull/3056
## Purpose of the PR
- Part of #3043 (Chunk 10)
- Follow-up to #3047 (added `-d` flag to PD/Store startup scripts) and
#3051/#3052 (Docker entrypoint supervision + HEALTHCHECK)
Documents the new `-d true|false` daemon flag and the Docker-native process
supervision model introduced in the preceding PRs.
## Main Changes
**`hugegraph-pd/README.md`:**
- Add `-d DAEMON` to the startup options signature
- Document: daemon mode (`true` = daemon, `false` = foreground; default:
`true`); set to `false` under Docker or a process supervisor
**`hugegraph-store/README.md`:**
- Same additions as PD
**`hugegraph-server/hugegraph-dist/docker/README.md`:**
- Add section explaining HEALTHCHECK endpoints (`:8080/versions`,
`:8620/v1/health`, `:8520/v1/health`) and the Java process supervision model
- Note that the cron-based monitor (`-m true`) is for VM/bare-metal only,
not Docker
## Verifying these changes
- [x] Need tests and can be verified as follows:
- `docker inspect <image> | grep -A5 Healthcheck` — confirms HEALTHCHECK
is present
- `docker stop <container>` — container exits cleanly (SIGTERM forwarded
to Java)
- `kill -9 <java-pid>` inside container — container exits, restart policy
fires
## Does this PR potentially affect the following parts?
- [ ] Dependencies
- [ ] Modify configurations
- [ ] The public API
- [ ] Other affects
- [x] Nope
## Documentation Status
- [x] `Doc - Updated` (in-repo README files only; `hugegraph-doc` follow-up
is tracked separately)
--
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]