Commit ed6b5a77 authored by David Eads's avatar David Eads

tighten maximum retry loop for aggregate api availability

parent c04fe8c2
...@@ -88,7 +88,12 @@ func NewAvailableConditionController( ...@@ -88,7 +88,12 @@ func NewAvailableConditionController(
endpointsLister: endpointsInformer.Lister(), endpointsLister: endpointsInformer.Lister(),
endpointsSynced: endpointsInformer.Informer().HasSynced, endpointsSynced: endpointsInformer.Informer().HasSynced,
serviceResolver: serviceResolver, serviceResolver: serviceResolver,
queue: workqueue.NewNamedRateLimitingQueue(workqueue.DefaultControllerRateLimiter(), "AvailableConditionController"), queue: workqueue.NewNamedRateLimitingQueue(
// We want a fairly tight requeue time. The controller listens to the API, but because it relies on the routability of the
// service network, it is possible for an external, non-watchable factor to affect availability. This keeps
// the maximum disruption time to a minimum, but it does prevent hot loops.
workqueue.NewItemExponentialFailureRateLimiter(5*time.Millisecond, 30*time.Second),
"AvailableConditionController"),
} }
// construct an http client that will ignore TLS verification (if someone owns the network and messes with your status // construct an http client that will ignore TLS verification (if someone owns the network and messes with your status
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment