-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(pool): Reset endpoints gauge on drop (#2928)
The p2c pool tracks an endpoints gauge that is incremented and decremented as endpoints are added and removed from the balancer. When a balancer is dropped, the proxy does not reset this gauge to 0. If the balancer is recreated later, this causes endpoints to appear to be double-counted. This commit fixes this in two ways: 1. When the balancer is dropped, the endpoints gauge is reset to 0. 2. When the pool is reset (i.e., during initialization), we always reset the endpoints value rather than use individual inc/dec calls.
- Loading branch information
Showing
1 changed file
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters