Hi all,

I have a question: how to change the FQDN / Erlang node name of an
already-existing CouchDB server (see docs about the node name [1])? Example
use-cases:
- Change the server DNS, e.g. because my company name changed.
- Clone a cluster (save shards data, copy to another server, start it).
- Backup a cluster (save shards data, be able to launch it on another FQDN).

Is there a preferred way to do?
Is it possible to just 'sed s/old_name/new_name/g' on _dbs.couch?
For info there is a similar question at [2], the author suggests using PUT
/_node/{node}/_dbs/{name} for *every* database (200k+ in my case, so it's
hardly possible). Would it work? Isn't there something simpler?

Thanks in advance,
Adrien

[1]:
https://docs.couchdb.org/en/3.1.1/setup/cluster.html#make-couchdb-use-correct-ip-fqdn-and-the-open-ports
[2]: https://github.com/apache/couchdb/discussions/3383

Reply via email to