I have a 4-node cluster running couchbase 2.2 community edition.
The first node in the cluster contains an IP address. I would like all of my cluster members to report FQDNs.
I’ve read the official couchbase admin guide a few times and it seems that my options are:
1.) Remove IP host and rebalance
2.) Add FQDN (same host) and rebalance.
This causes all data to be lost on the host and it doesn’t seem to require the rename API at all.
The rename feature of the API never succeeds because my IP host is part of the cluster. (Even after I remove the host and rebalance, ‘ClusterMembership’ is still ‘Active’.
Why is rename available via API (‘http://{host}:{port}/node/controller/rename’)? What function does it even serve?
Is there any way to get my host renamed without being so destructive? Should do a swap rebalance with --server-remove=IP and --server-add=hostname? I wouldn’t expect that to work.
Any help is greatly appreciated!
Thank you!
Reference: http://docs.couchbase.com/couchbase-manual-2.2/#using-hostnames-with-couchbase-server