lua-resty-upstream-healthcheck icon indicating copy to clipboard operation
lua-resty-upstream-healthcheck copied to clipboard

Register callback functions when peers are marked down or up

Open p0pr0ck5 opened this issue 7 years ago • 2 comments

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.

p0pr0ck5 avatar Nov 30 '16 18:11 p0pr0ck5

Wrong PR?

p0pr0ck5 avatar Jan 10 '17 02:01 p0pr0ck5

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.

Tieske avatar Mar 20 '17 08:03 Tieske