Optimization of machine allocation in RingLeader