Skip to content

Change primary to worker and vice versa? #760

Answered by jhuckaby
tehniemer asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, a primary server cannot be demoted while it is running. Once a server becomes primary, it will remain primary until it shuts down.

So what you can do, theoretically, is change your server group configuration so that your worker is "eligible" to become primary, then shut down the current primary server. That should cause a primary election to be held after 60 seconds, at which time the most eligible remaining server will be blessed (the one whose hostname alphabetizes first). Then later you can restart your old primary server again.

Note that your worker needs to be "ready" to become a primary. Specifically, it needs access to your storage system (S3 or other), and be config…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tehniemer
Comment options

Answer selected by tehniemer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants