You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/05/28 16:41:46 UTC

[GitHub] [couchdb-documentation] wohali commented on issue #554: couchdb disaster recovery

wohali commented on issue #554:
URL: https://github.com/apache/couchdb-documentation/issues/554#issuecomment-635461487


   The problem you're facing is that the `-name` parameter that you're changing is used by CouchDB internally for every database to log where the shards are stored.
   
   If your entries in `-name` were **DNS entries**, not IP addresses, you'd do exactly what you said, change DNS, and everything would be fine.
   
   If you insist on using IP addresses, you're going to have to edit the `_dbs` document for every database you have, and change all instances of every IP address for all machines to the new IP address. Not only is this error prone, it's a pain in the arse :)
   
   So, switch to DNS, and always put `-name couchdb@couchdb-1.myhost.com` in `vm.args`, not IP addresses.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org