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
loadbalancer-experimental: Thread through the EWMA half life in XdsHealthTracker (#2824)
Motivation:
We currently set the ewma lifetime to 1 nanosecond in the
XdsHealthTracker and it's not configurable.
Modifications:
- Add a lifetime field to the OutlierDetectorConfig type
- Give it a default of 10 seconds in the Builder
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/DefaultRequestTracker.java
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/main/java/io/servicetalk/loadbalancer/OutlierDetectorConfig.java
+32-2
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@
31
31
*/
32
32
finalclassOutlierDetectorConfig {
33
33
34
+
privatefinalDurationewmaHalfLife;
34
35
privatefinalintconsecutive5xx;
35
36
privatefinalDurationinterval;
36
37
privatefinalDurationbaseEjectionTime;
@@ -55,7 +56,8 @@ final class OutlierDetectorConfig {
Copy file name to clipboardexpand all lines: servicetalk-loadbalancer-experimental/src/test/java/io/servicetalk/loadbalancer/XdsHealthIndicatorTest.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -212,7 +212,7 @@ private class TestIndicator extends XdsHealthIndicator<String> {
0 commit comments