mirror of
https://github.com/lldap/lldap.git
synced 2026-04-25 16:25:55 +03:00
[GH-ISSUE #451] Healthcheck? #170
Labels
No labels
backend
blocked
bug
cleanup
dependencies
docker
documentation
duplicate
enhancement
enhancement
frontend
github_actions
good first issue
help wanted
help wanted
integration
invalid
ldap
pull-request
question
rust
rust
tests
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/lldap-lldap#170
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @JaneJeon on GitHub (Feb 14, 2023).
Original GitHub issue: https://github.com/lldap/lldap/issues/451
Hello, I was wondering what is the best way to go about adding a Docker healthcheck for LLDAP.
Just wget/curl the admin site endpoint? Or is there a /healthz endpoint that I should be hitting instead?
Thank you.
@nitnelave commented on GitHub (Feb 14, 2023):
The CI docker image comes with a health check. Since there are several services to check, and the address depends on the config, it was simpler to implement in the app itself:
@JaneJeon commented on GitHub (Feb 14, 2023):
Ok, I'll just patiently wait for the next release :)
(I'll leave this open until an official release w/ the healthcheck is released)
@JaneJeon commented on GitHub (Feb 14, 2023):
Wait a minute. Am I reading this correctly?
https://github.com/nitnelave/lldap/blob/main/Dockerfile#L95-L97
It seems to me that you are running the exact same /app/lldap as the entrypoint, with no difference in command (i.e. both are
lldap run --config-file /data/lldap_config.toml).So.. is the healthcheck literally just spinning up the app server? Does that not create countless instances of the same app server??
Just trying to understand what is going on here, because from a quick glance, it seems very wrong?
@JaneJeon commented on GitHub (Feb 14, 2023):
And given the existing health endpoint, it seems the correct health cmd should really be:
I think?
@martadinata666 commented on GitHub (Feb 15, 2023):
the latest docker image had
lldap healthcheckcommand and return code 200 on success. is it sufficient? or if it work as intended? 🤔And taking on compose sample, override the healthcheck parameters.
@nitnelave commented on GitHub (Feb 15, 2023):
You're right, the healthcheck command should be
lldap healthcheck:D I'll fix that right away.