-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Teach Nomad servers how to fall back to Consul. #1276
Merged
Merged
Commits on Jun 15, 2016
-
Configuration menu - View commit details
-
Copy full SHA for ea89976 - Browse repository at this point
Copy the full SHA ea89976View commit details -
Configuration menu - View commit details
-
Copy full SHA for c8ac652 - Browse repository at this point
Copy the full SHA c8ac652View commit details -
Bump various Consul search limits
Client: Search limit increased from 4 random DCs to 8 random DCs, plus nearest. Server: Search factor increased from 3 to 5 times the bootstrap_expect. This should allow for faster convergence in large environments (e.g. sub-5min for 10K Consul DCs).
Configuration menu - View commit details
-
Copy full SHA for 972b4fb - Browse repository at this point
Copy the full SHA 972b4fbView commit details -
Shuffle all datacenters vs only the nearest N datacenters.
Per discussion, we want to be aggressive about fanning out vs possibly fixating on only local DCs. With RPC forwarding in place, a random walk may be less optimal from a network latency perspective, but it is guaranteed to eventually result in a converged state because all DCs are candidates during the bootstrapping process.
Configuration menu - View commit details
-
Copy full SHA for d7a0401 - Browse repository at this point
Copy the full SHA d7a0401View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecd13f8 - Browse repository at this point
Copy the full SHA ecd13f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3daf514 - Browse repository at this point
Copy the full SHA 3daf514View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa26e1f - Browse repository at this point
Copy the full SHA fa26e1fView commit details -
Configuration menu - View commit details
-
Copy full SHA for bd9fbd2 - Browse repository at this point
Copy the full SHA bd9fbd2View commit details
Commits on Jun 16, 2016
-
Configuration menu - View commit details
-
Copy full SHA for a915cdc - Browse repository at this point
Copy the full SHA a915cdcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4d14988 - Browse repository at this point
Copy the full SHA 4d14988View commit details -
Rework
server_auto_join
to use a timer instead of the peer count.It is perfectly viable for an admin to downsize a Nomad Server cluster down to 1, 2, or `num % 2 == 0` (however ill-advised such activities may be). And instead of using `bootstrap_expect`, use a timeout-based strategy. If the `bootstrapFn` hasn't observed a leader in 15s it will fall back to Consul and will poll every ~60s until it sees a leader.
Configuration menu - View commit details
-
Copy full SHA for a4cfb2b - Browse repository at this point
Copy the full SHA a4cfb2bView commit details -
Immediately query Consul upon initialization if we have no peers.
Also don't attempt to join the Server with itself.
Configuration menu - View commit details
-
Copy full SHA for 9cd44ce - Browse repository at this point
Copy the full SHA 9cd44ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for b82f872 - Browse repository at this point
Copy the full SHA b82f872View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.