Cloud computing enables operators to spin up resources on-demand, and orchestrators enables the automatic deployment of complex distributed applications. As deployment of applications in datacenter environments grows increasingly automated and accessible, the logical next step is to consider how the infrastructure can support the operator in critical configuration tasks.
In this dissertation, we build and evaluate a number of infrastructure-based approaches that automate a few of these critical configuration tasks. First, we present AutoTune, an orchestrator-based tool that tunes an application's resource allocation in order to improve end-to-end performance and resource efficiency. Next, we describe Privoxy, a system which automatically checks that SQL queries issued by web applications are compliant with operator-defined privacy policies. Finally, we build a trace-driven packet simulator that evaluates how an architectural change to the datacenter networking fabric impacts the training time of convolutional neural networks for image recognition.