Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a configurable timer for minion return retries #27286

Merged
merged 2 commits into from Sep 22, 2015

Conversation

terminalmage
Copy link
Contributor

When a minion return cannot be processed in a timely manner, a
SaltReqTimeoutError is raised. However, the default wait time before the
minion will retry sending the return data was not being passed, so it
would wait a full 60 seconds.

This reduces that timeout to (by default) a maximum of 4 seconds, and
randomizes it to prevent a retry flood as you scale up the number of
minions.

When a minion return cannot be processed in a timely manner, a
SaltReqTimeoutError is raised. However, the default wait time before the
minion will retry sending the return data was not being passed, so it
would wait a full 60 seconds.

This reduces that timeout to (by default) a maximum of 4 seconds, and
randomizes it to prevent a retry flood as you scale up the number of
minions.
@jfindlay jfindlay added Core relates to code central or existential to Salt Medium Change Release-Notes labels Sep 21, 2015
cachedout pushed a commit that referenced this pull request Sep 22, 2015
Add a configurable timer for minion return retries
@cachedout cachedout merged commit 775a4f9 into saltstack:2015.5 Sep 22, 2015
@terminalmage terminalmage deleted the return_retry_timer branch September 25, 2015 14:11
jacksontj added a commit to jacksontj/salt that referenced this pull request Nov 7, 2015
This feature originally would randomize between 1 -> return_retry_timer, which meant you could always had the possibility of haing a return retry with a timeout of 1s. This change maxes both ends of the range configurable (similar to how acceptance_wait_time is configured). In addition I've added coverage in the minion configuration documentation.

Cleanup of saltstack#27286
Fixes saltstack#28577
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core relates to code central or existential to Salt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants