Data Rebalancing
This is an advanced operation. Please make sure to have a Forward Support Engineer on a call when performing this operation to avoid mistakes that can cause data loss.
This functionality is only available in Base version v9 or later.
In multi-node deployments, it is possible that the disk on some nodes is mostly used but some other nodes have a lot of free disk space. It would be desirable to move some database replicas out of the heavily used nodes to better rebalance the disk usage across cluster.
Forward provides a helper script for this purpose. This script verifies several pre-conditions before allowing a database replica to be migrated to ensure we don't encounter data loss.
Steps to migrate a database replica:
-
SSH into a primary node and execute the below command:
./opt/forward/migrate_db_replica.sh -
From the list enter the database replica pod name to migrate

- Select the node which doesn’t have
not eligibleas suffix. This node would be the target to move the database replica.

- Then the script will perform the migration.
