Data Load Balancing
You can request to balance data on a node in a partitioned cluster without waiting for the automatic load-balancing task to trigger it. This brings data load on the node near to average data per node while the rest of the data is distributed across other nodes in the cluster. Candidate nodes for accepting the load are selected on the basis of the amount of data currently present on them. A node having less data gets a larger share from the load.
Enable Data Load Balancing
Using NCache Manager
From the Cache Explorer view, right click a server node of a cache cluster.
Click on the Balance Data Load option.
- Data will be evenly distributed across the nodes of the cluster.
Manually Editing NCache Configuration
Important
Make sure the cache is stopped before making any configuration changes.
- Enable data load balancing through config.ncconf by adding the
<data-load-balancing>
tag under<cache-settings>
.
<cache-settings ...>
<data-load-balancing enabled="True" .../>
</cache-settings>
- Once changes are made, start the cache and restart NCache service.
Auto Load Balancing
Using NCache Manager
Go to the Auto Load Balancing tab in NCache Manager.
Check the Enable Auto Load Balancing option and configure Threshold and Interval according to your requirements.
Manually Editing NCache Configuration
Important
Make sure the cache is stopped before making any configuration changes.
- Enable auto data load balancing through config.ncconf by adding the following values in
<data-load-balancing>
:
<cache-settings ...>
<data-load-balancing enabled="True" auto-balancing-threshold="60%" auto-balancing-interval="30sec"/>
</cache-settings>
- Once changes are made, start the cache and restart NCache service.
See Also
Start Cache
Restart Cache
Manage Cache Service on a Server Node
Apply Configuration