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

Support for High-Availability mode based on Backends #5

Merged
merged 11 commits into from
Apr 14, 2015
Merged

Support for High-Availability mode based on Backends #5

merged 11 commits into from
Apr 14, 2015

Conversation

armon
Copy link
Member

@armon armon commented Apr 14, 2015

This PR adds support for running Vault in a highly-available mode. In addition to a sealed/unsealed state, there is now an active/standby state. Once unsealed, if HA is enabled, the Core goes into a standby state. It waits until it can acquire the global mutex, and then enters the active state allowing operations to be processed. Sealing the core causes an immediate step-down, but otherwise once unsealed, the core will go between standby and active automatically based on lock acquisition.

armon added a commit that referenced this pull request Apr 14, 2015
Support for High-Availability mode based on Backends
@armon armon merged commit 310e1c5 into master Apr 14, 2015
@armon armon deleted the f-ha branch April 14, 2015 23:59
@pearkes
Copy link
Contributor

pearkes commented Apr 15, 2015

Just my curiosity here...in order to setup HA, I need to unseal all servers? Essentially then you'd have all servers unsealed ready to step up.

My question would be, in a lockdown / seal scenario, that'd then mean you'd need to seal all of them separately, correct?

@armon
Copy link
Member Author

armon commented Apr 15, 2015

@pearkes Correct on both counts!

@mitchellh
Copy link
Contributor

Looks great! I'll add some more info the CLI output to relay this information. I think maybe changing vault seal-status to vault status might be a way to go...

@armon
Copy link
Member Author

armon commented Apr 15, 2015

Yeah that might be useful, since then we can provide standby and leader info. Also we may need configuration flags for that advertise address. We can detect a default if consul if being used by asking the agent for the local address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants