You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add jitter and initial health check wait support to upstreams
Add two features:
- Support for health check jitter: if we start many loadbalancers at once, they might do all of their healthchecks at the same time. Jitter helps us avoid this issue. The initial health check is always done immediately.
- Ability to wait for the initial health check to complete: when we create an upstream list and immediately try to pick a healthy upstream from it, it, based on the initial scores, might return either no upstream or one of the down ones. This is because the health checks, which are done in a separate goroutine, didn't get the chance to complete yet. We can avoid this issue by waiting for the initial health check to be done before calling `.Pick()` + with using correct initial scores.
Signed-off-by: Utku Ozdemir <[email protected]>
0 commit comments