In a RHEL cluster CB 2.0 setup, is there any option of "automatic rebalance" for these scenarios:
1. After a node fails i.e., failover
2. After addition/deletion of a node.
Yes it is supported, but not activated by default.
The easiest way to activate it:
Thanks for the reply. But I was asking for "auto-rebalance" not auto-failover.
Please let me know.
Sorry I misread your question.
Today it is not possible to have auto-rebalance, one of the reason is because in some deployment sysadmins are adding more than one node and then want to chose when they are doing the rebalance. (when everything is ready, avoiding peak of activity, ...)
Could you let me know why you need this feature?
Note that if you want to automate some task you can always use the command line interface CLI, to add new node to the cluster and then do the rebalance. Take a look to this page:
Just to add a point to Tug's reply, if there is a node failure, then doing the rebalance makes the cluster(undersized cluster) handle more load, which might lead to undesired collapse in some cases. Hence, the sysadmins are careful in making it as a swap rebalance to keep the couchbase up and running fine.
Thanks a lot for your thorough replies. My case is like I need to automate the re-balance after one or more nodes are added or deleted. I have these doubts:
1. How to trigger my script based on the addition/deletion of nodes?
2. Or should I have something like cron to check for prescribed time intervals?
So could you guys please let me know how to actually do this?
Thanks & regards,
© 2013 COUCHBASE All rights reserved.