added rebalance logic after clustering servers