Configuring the Replication Role Balancer

You can use the config save command to modify the replication role balancer parameter values.

Example: # maprcli config save –values {"cldb.role.balancer.strategy":"BySize"}

The following table lists the replication role balancer configuration parameters with their default values and descriptions:

Parameter

Value

Description

cldb.role.balancer.strategy

"BySize"

Specifies how the replication role balancer balances containers, either by size or count.

Use "BySize" or "ByCount" to indicate how role balancer balances containers.

cldb.balancer.role.paused

1

Specifies whether the role balancer runs:

  • 0 - Not paused (normal operation)
  • 1 - Paused (does not perform any container replication role switches)

cldb.balancer.role.max.switches.in.nodes.percentage

10

This can be used to throttle the role balancer. If it is set to 10, the balancer will throttle the number of concurrent role switches to 10% of the total nodes in the cluster (minimum 2).