Data Load Balancing
You can request for data load balancing 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.
Note
This feature is also available in NCache Professional.
A node having less data gets a larger share of the load.
Enable Data Load Balancing
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache. Against the cache name, click on View Details.
This opens the detailed configuration page for the cache.
In the Server Nodes tab, check the server node IP and click on "...".
- Select Balance Data Load.
- 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 the config.ncconf by adding the
<data-load-balancing>
tag under<cache-settings>
.
<cache-settings ...>
<data-load-balancing enabled="True" .../>
</cache-settings>
Note
When using a multi-node cache, please ensure that the related cache configurations are updated on each node.
- Once changes are made, start the cache and restart the NCache Service.
Auto Load Balancing
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251
on Windows and Linux.In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to auto balance.
Important
Make sure the cache is stopped before proceeding.
- Against the cache name, click on View Details.
This opens the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Auto Load Balancing in the left bar.
Check the Enable Auto Load Balancing option and configure Threshold and Interval according to your requirements.
Click on Save Changes to apply this configuration to the cache.
Start the cache to resume operations.
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 the NCache Service.
See Also
Start Cache
Restart Cache
Manage Cache Service on a Server Node