Maintain cluster with number of master and replica AnyEvent::DBD::mysql instances