Commit a9dc6567 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #41175 from StudyNick/zte-20170209

Automatic merge from submit-queue (batch tested with PRs 39418, 41175, 40355, 41114, 32325) ResyncPeriod Comment ResyncPeriod Comment: // ResyncPeriod returns a function which generates a duration each time it is // invoked; this is so that multiple controllers don't get into lock-step and all // hammer the apiserver with list requests simultaneously.
parents 85882ade 4f19bcb3
...@@ -93,6 +93,9 @@ controller, and serviceaccounts controller.`, ...@@ -93,6 +93,9 @@ controller, and serviceaccounts controller.`,
return cmd return cmd
} }
// ResyncPeriod returns a function which generates a duration each time it is
// invoked; this is so that multiple controllers don't get into lock-step and all
// hammer the apiserver with list requests simultaneously.
func ResyncPeriod(s *options.CMServer) func() time.Duration { func ResyncPeriod(s *options.CMServer) func() time.Duration {
return func() time.Duration { return func() time.Duration {
factor := rand.Float64() + 1 factor := rand.Float64() + 1
......
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