mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-11-26 10:06:31 +00:00
docs(shared-state): state what the discovery threshold counts
With sharedState on, breaker.failureThreshold counts failed refreshes across all route instances and replicas. It no longer counts three in a row on one instance. The README and the wiring comment now say so.
This commit is contained in:
@@ -20,6 +20,8 @@ func (g *Gateway) wireSharedState(cfg *Config) {
|
||||
if err != nil {
|
||||
brk = breakerConfig{failureThreshold: defaultBreakerFailureThreshold, openBase: defaultBreakerOpenDuration, openMax: defaultBreakerMaxOpenDuration}
|
||||
}
|
||||
// With a shared breaker, brk.failureThreshold counts failed refreshes across all route instances and replicas
|
||||
// inside 2*openMax, not consecutive failures on one instance.
|
||||
g.registry.shareBreaker(newSharedBreaker(g.sharedState, sharedKindDiscovery, ids,
|
||||
brk.failureThreshold, brk.openBase, brk.openMax, 2*brk.openMax))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user