Highly-available resource monitor and controller for clouds