Page created: 26 Jul 2021 |
Page updated: 14 Jan 2022
Configure dynamic rebalancing on an existing entry balancing configuration.
If the current placement algorithm does not support rebalancing, create an entry
counter placement algorithm.
You can either do this using dsconfig in interactive mode or using the dsconfig command line as in this example.
$ dsconfig create-placement-algorithm \ --processor-name dc_example_dc_com-eb-req-processor \ --algorithm-name rebalancing --type entry-counter \ --set enabled:true --set rebalancing-enabled:true
- Remove any placement algorithm previously configured on this entry-balancing request processor.
Throttle how many entries are being moved by the proxy so that the backend servers
do not have too heavy a load by setting
rebalancing-queue-maximum-sizeproperty of the request processor created in the previous step.
By default, the value is 1000. If the load is too high, reduce this value
$ dsconfig set-request-processor-prop \ --processor-name dc_example_dc_com-eb-req-processor \ --set rebalancing-queue-maximum-size:50
Verify that the access logs are configured to display the subtrees being moved by
The access logs provide a good way to monitor progress. If the write load on the backend servers is high and you see lots of rebalancing activity in the access log, lower the queue size to lower the rebalancing activity.
This example configures the access log to display entry rebalancing processing information.
$ dsconfig set-log-publisher-prop \ --publisher-name "File-Based Access Logger" \ --set log-entry-rebalancing-requests:true