Commit Graph
2 Commits
Author SHA1 Message Date
lukaszraczylo ebe38e7527 fix(shared-state): count discovery failures per instance
With redis.sharedState on, every route instance added each failed
discovery refresh to one fleet count. One failed round across the
fleet could then open the discovery breaker.

Each instance now counts its own consecutive failures. Only the
instance whose own count reaches breaker.failureThreshold shares a
trip, and the fleet breaker opens on the first trip.
2026-11-26 06:21:10 +00:00
lukaszraczylo 0c2445cb1a feat(registry): share the discovery breaker through Redis
A provider whose discovery fails often enough now reads as unhealthy on every pod when redis.sharedState is on. The shared breaker uses the same threshold and open times as the local one. The discovered model sets stay local. With the switch off, the provider state runs its local code only and makes no store call.
2026-11-26 03:29:09 +00:00