-
Notifications
You must be signed in to change notification settings - Fork 377
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
HighAvailablity how to use the client #552
Comments
While waiting for some answers, i created some functions to find out the real master. this checks that the url node is ok
this finds the master among a list of URLS (here, specifically, i get the list of urls from djangoconf)
plus, I've created a wraper to retry the operation 5 times, since it may be that the system takes a littele wile to find out a leader.
Note: i used the wrapper also in the functions where i call the enc/dec operations. that functions calls a function to get the global client not sure if it make sense to think to interoduce this in the libary as standard behaviour if there's more than one url specified. Or if there's a better/simpler way to handle this. I was quite surprised that the |
This can be related if someone is searching for more infos https://groups.google.com/forum/#!searchin/vault-tool/HA|sort:date/vault-tool/rF-iKGa-QQk/Qt4D7yZQAgAJ In the end I set the |
Hi all,
I've setted up two vault machine (namely
vault1
andvault2
) for HA (fallback).The clients allow only a single url to be put as client url. i've set
vault1.mydomain.com
If the
vault1
restarts then it becomes sealed and looses all the infos regarding the HA, that's to send the data tovault2
. At the same time,vault2
knows to be the active one. Bascially the HA does not work.How can I let the code to switch to the master?
is there a way to put a list of url and let the system check what to use? does it automatically check the
ha_status
? or should I implement a fallback when possible?or there should be something configured somewhere else? (ex: have NGINX in front that does some checkings and stuff)
many thanks.
The text was updated successfully, but these errors were encountered: