aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-load-balancing/src/lib.rs
diff options
context:
space:
mode:
authorvicanso <[email protected]>2024-07-31 12:53:15 +0000
committerAndrew Hauck <[email protected]>2024-08-09 14:30:49 -0700
commit8a0c73f174a27a87c54426a748c4818b10de9425 (patch)
tree7ee86a583a585e88868bd4432b11ddaf729e7393 /pingora-load-balancing/src/lib.rs
parent24d722920a537d88e3259f026b232f2f09d1662d (diff)
downloadpingora-8a0c73f174a27a87c54426a748c4818b10de9425.tar.gz
pingora-8a0c73f174a27a87c54426a748c4818b10de9425.zip
Support observe backend health status #225
--- test: add test for upstream health observe --- renamed the function and added doc to make it intelligible --- fix clippy error --- Merge branch 'main' into main --- test: fix test for backend do update Co-authored-by: Tree Xie <[email protected]> Includes-commit: 1421c267563f0161624e7dcc00a8f8d7be86d8b8 Includes-commit: 695d5490142945e11effe6ab87f4785ee0c7e4ab Includes-commit: 6a09b52c5e8b710c9fa4e0ac75420edd73556897 Includes-commit: 72d6ee09ae7488a372180cbf2b57f19d76eb8697 Includes-commit: e6c2af0e77283f73c785e73a702d739f4d5a8da0 Includes-commit: fb62869583667a220fab019bec8d7a80ef3caba2 Replicated-from: https://github.com/cloudflare/pingora/pull/325
Diffstat (limited to 'pingora-load-balancing/src/lib.rs')
-rw-r--r--pingora-load-balancing/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/pingora-load-balancing/src/lib.rs b/pingora-load-balancing/src/lib.rs
index 4009dc1..4a7433e 100644
--- a/pingora-load-balancing/src/lib.rs
+++ b/pingora-load-balancing/src/lib.rs
@@ -266,6 +266,7 @@ impl Backends {
let flipped =
h.observe_health(errored.is_none(), check.health_threshold(errored.is_none()));
if flipped {
+ check.health_status_change(backend, errored.is_none()).await;
if let Some(e) = errored {
warn!("{backend:?} becomes unhealthy, {e}");
} else {