Machine Learning For Automatic Resource Management In The Datacenter And The Cloud