|| idealStateMode == IdealStateModeProperty.AUTO_REBALANCE)
{
admin.addResource(clusterName, resourceName, 4, "MasterSlave", idealStateModeStr);
// rebalance resource "TestDB" using 3 replicas
admin.rebalance(clusterName, resourceName, 3);
}
else if (idealStateMode == IdealStateModeProperty.CUSTOMIZED)
{
admin.addIdealState(clusterName, resourceName, idealStateJsonFile);
}