mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
Merge pull request #2206 from murgatroid99/grpc-js_outlier_detection_ejection_percent_equal
grpc-js: Stop ejecting when current percent is equal to max
This commit is contained in:
commit
df07da3a02
@ -467,7 +467,7 @@ export class OutlierDetectionLoadBalancer implements LoadBalancer {
|
||||
// Step 3
|
||||
for (const [address, mapEntry] of this.addressMap.entries()) {
|
||||
// Step 3.i
|
||||
if (this.getCurrentEjectionPercent() > this.latestConfig.getMaxEjectionPercent()) {
|
||||
if (this.getCurrentEjectionPercent() >= this.latestConfig.getMaxEjectionPercent()) {
|
||||
break;
|
||||
}
|
||||
// Step 3.ii
|
||||
@ -515,7 +515,7 @@ export class OutlierDetectionLoadBalancer implements LoadBalancer {
|
||||
// Step 2
|
||||
for (const [address, mapEntry] of this.addressMap.entries()) {
|
||||
// Step 2.i
|
||||
if (this.getCurrentEjectionPercent() > this.latestConfig.getMaxEjectionPercent()) {
|
||||
if (this.getCurrentEjectionPercent() >= this.latestConfig.getMaxEjectionPercent()) {
|
||||
break;
|
||||
}
|
||||
// Step 2.ii
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user