Details
Description
This command works to rebalance multiple nodes out of the cluster in 4.x:
/opt/couchbase/bin/couchbase-cli rebalance c 0 -u Administrator -p password --server-remove=ec2-34-209-53-182.us-west-2.compute.amazonaws.com:8091 server-remove=ec2-34-210-223-48.us-west-2.compute.amazonaws.com:8091 server-remove=ec2-34-211-36-85.us-west-2.compute.amazonaws.com:8091 server-remove=ec2-35-163-131-21.us-west-2.compute.amazonaws.com:8091 server-remove=ec2-35-167-62-125.us-west-2.compute.amazonaws.com:8091 server-remove=ec2-52-24-98-172.us-west-2.compute.amazonaws.com:8091 server-remove=ec2-52-38-147-221.us-west-2.compute.amazonaws.com:8091 -server-remove=ec2-52-43-238-163.us-west-2.compute.amazonaws.com:8091
On a 5.x cluster, only the last --server-remove is accepted and removed. The command ignores the remaining servers.
In this example only the node ec2-52-43-238-163.us-west-2.compute.amazonaws.com is reblanced out of the cluster.
Bug is either in the parsing of the arguments or the command line help/online docs do not specify the correct syntax for removing multiple nodes.