-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Health Check against an instance using CLI #1
Comments
Definitely good use-case to add. Should that command be top level command or belong under some new subcommand? Since most of tasks are there. e.g. with current main I guess just some more clarification about intended behavior and In general it should be fairly easy to implement . |
Sorry for the delay, I've updated the description (was originally just a place holder) - let me know if it makes sense , and if any additional clarifications would be needed |
ref #1 Signed-off-by: Marko Kungla <marko.kungla@gmail.com>
ref #1 Signed-off-by: Marko Kungla <marko.kungla@gmail.com>
Custom GET/POST/HEAD request are already possible: common options apply to all sub commands under api
|
opted right now for |
ref #1 Signed-off-by: Marko Kungla <marko.kungla@gmail.com>
ref #1 Signed-off-by: Marko Kungla <marko.kungla@gmail.com>
@rdlrt so you can test out v0.2.0 with preliminary implementation of healthcheck.
default output is something like this
for haproxy you probably would like to use for more detailed json output you can use
With this you should be able to healthcheck individual instances, so next step would be to discuss how the implementation of api compare and open api schema checksum checks should be performed and should these be in same check queue or as separate commands!? |
ref #1 Signed-off-by: Marko Kungla <marko.kungla@gmail.com>
It would be nice to have a a healthcheck ping from CLI against a specific instance (eg:
-b http://127.0.0.1:8053/api/v0
, that will check and report stats below behind the scenes (currently achieved via bash script grest-poll.sh ):tip
to check that the last block known to instance is within 600 seconds, use timeout of 2 seconds to establish connection to this endpoint (anything more being too slow to accept connection)<baseURL>/
endpoint) that each path from spec is available at the target instance (current implementation here)-d
), provide a summary of the endpoint results.If all of the above is achievable, this will help us use something like
koios-cli healthcheck [-d]
for actual healthcheck from haproxy itself, as an alternative to using bash script we currently use.The text was updated successfully, but these errors were encountered: