Bringing the CMS distributed computing system into scalable operations