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.
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.