Understanding what work the rebalancer will do
28 September 2016 05:37 AM
Here we will describe how to see in detail the effect of running the rebalancer, before it is enabled.
The Admin UI lets you check the state of the rebalancer, along with an estimated completion time if running, on the Database Status page. See Checking the Rebalancer Status.
Previewing the rebalancer
For a more detailed look at the rebalancing, including how fragments will move between the forests, call xdmp:forest-counts with the
For example, to get all the values for the forests in the Documents database, running
will return a
HTML table output
The XQuery code below can be run in the query console to output an HTML table with the rebalancing stats from
In database replication with the bucket and legacy policies, the replica-cluster forest order should match the master-cluster forest order, to avoid rebalancing if/when replication is broken. See Database Replication and Rebalancing, replication and forest reordering.
The above technique can be used to check if the replica database will rebalance after replication is broken.
This check can also be used after administrative work on forests to see if there is any resultant rebalancing.