Search:

Search all manuals
Search this manual
Manual
Couchbase Server Manual 2.0
Community Wiki and Resources
Download Couchbase Server 2.0
Couchbase Developer Guide 2.0
Client Libraries
Couchbase Server Forum
Additional Resources
Community Wiki
Community Forums
Couchbase SDKs
Parent Section
5 Administration Tasks
Chapter Sections
Chapters

5.7. Rebalancing

5.7.1. Choosing When to Rebalance
5.7.2. Performing a Rebalance
5.7.3. Swap Rebalance
5.7.4. Monitoring During Rebalance
5.7.5. Common Rebalancing Questions
5.7.6. Rebalance Effect on Bucket Types
5.7.7. Rebalance Behind-the-Scenes

As you store data into your Couchbase Server cluster, you may need to alter the number of nodes in your cluster to cope with changes in your application load, RAM, disk I/O and networking performance requirements.

Couchbase Server is designed to actively change the number of nodes configured within the cluster to cope with these requirements, all while the cluster is up and running and servicing application requests. The overall process is broken down into two stages; the addition and/or removal of nodes in the cluster, and the rebalancing of the information across the nodes.

The addition and removal process merely configures a new node into the cluster, or marks a node for removal from the cluster. No actual changes are made to the cluster or data when configuring new nodes or removing existing ones.

During the rebalance operation:

Because the cluster stays up and active throughout the entire process, clients can continue to store and retrieve information and do not need to be aware that a rebalance operation is taking place.

There are four primary reasons that you perform a rebalance operation:

Regardless of the reason for the rebalance, the purpose of the rebalance is migrate the cluster to a healthy state, where the configured nodes, buckets, and replicas match the current state of the cluster.

For information and guidance on choosing how, and when, to rebalance your cluster, read Section 5.7.1, “Choosing When to Rebalance”. This will provide background information on the typical triggers and indicators that your cluster requires changes to the node configuration, and when a good time to perform the rebalance is required.

Instructions on how to expand and shrink your cluster, and initiate the rebalance operation are provided in Section 5.7.2.3, “Starting a Rebalance”.

Once the rebalance operation has been initiated, you should monitor the rebalance operation and progress. You can find information on the statistics and events to monitor using Section 5.7.4, “Monitoring During Rebalance”.

Common questions about the rebalancing operation are located in Section 5.7.5, “Common Rebalancing Questions”.

For a deeper background on the rebalancing and how it works, see Section 5.7.7, “Rebalance Behind-the-Scenes”.