Machine learning based dynamic reconfiguration of distributed data management systems