Skip to content

Proper path to promote a Single Node to Cluster Mode #2949

Answered by janl
skeyby asked this question in Q&A
Discussion options

You must be logged in to vote

@skeyby the mapping of node name to shards happens in the internal _dbs database (:5986 in 2.x, /_node/_local/* in 3.x). What you could do is rewrite all docs in _dbs to point to your “new” vm.args name. At that point you will get no db shards can be opened, and then you can change the vm.args name and restart CouchDB, after which all shards will be found again. But this is a very error prone procedure (must not change vm.args name before changing the _dbs docs) and we don’t usually recommend outside of a forensic situation.

Your plan to stand up a new node and replicate into it is a lot less problematic.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@kripper
Comment options

@kripper
Comment options

@kripper
Comment options

Answer selected by janl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants