Explains how to tune the disk balancer execution parameters.
Even when the
disk balancer is enabled, the disk balancer waits during cluster startup to give enough time
for the cluster to settle down. The default wait time (specified in seconds) is 30 minutes and
can be changed using the parameter cldb.balancer.startup.interval.sec. After
every run, the disk balancer pauses for 2 minutes by default. The pause time (specified in
seconds) can be increased through the parameter
cldb.balancer.disk.sleep.interval.sec.
Run the maprcli config save command and set the following parameters
to configure disk balancer:
| Parameter | Default Value | Description |
|---|---|---|
cldb.balancer.startup.interval.sec |
1800 seconds | Wait time, in seconds, for cluster startup. |
cldb.balancer.disk.sleep.interval.sec |
120 seconds | Interval, in seconds, between disk balancer runs. |
For example, to:
maprcli config save {"cldb.balancer.startup.interval.sec":"3600"}maprcli config save {"cldb.balancer.disk.sleep.interval.sec":"300"}By default, the disk balancer does not consider volume skew while moving containers out of a Storage Pool (SP). In the process, all containers of a volume may end up on only a few SPs. Such a volume skew is undesirable, specifically, for DB volumes. In such a skew, few servers handle all requests, resulting in reduced performance.
To prevent volume skew, set the prevent.volume.skew.by.diskbalancer parameter to
true as follows:
maprcli config save -values {"prevent.volume.skew.by.diskbalancer":"true"}
This parameter checks whether moving a container out of a SP causes a volume skew elsewhere.