lua-resty-upstream-healthcheck
lua-resty-upstream-healthcheck copied to clipboard
How about to add a function for getting specified peer status
trafficstars
-
my scenario: when the upstream is unhealthy, i need to get the specified peer status(eg: DOWN) and do some suspend work, but not to show the peer status with function
status_page(). -
workaround: so i have added a function
get_peer_status()to get specified peer status. and i'd like to share with everybody who come across the same scenario.