lua-resty-upstream-healthcheck
lua-resty-upstream-healthcheck copied to clipboard
Register callback functions when peers are marked down or up
Call an optional user-defined function when peer_fail or peer_ok change the status of a peer object via set_peer_down_globally. This allows arbitrarily extending the response to upstream health changes.
Wrong PR?
accidentally ran into this PR while browsing the lib.
I think it is worth noting that the library will only have a single worker do the healthchecks. Hence the callbacks will also only be executed in a single worker. Any code depending on this should be aware of that.