Patent ID: 8850432

Claim:
A method, comprising: obtaining, by a resource control module executed by a processing device, an active capacity metric of each virtual machine (VM) of a plurality of VMs in a district of a multi-tenant Platform-as-a-Service (PaaS) system, the active capacity metric comprising a result of dividing a number of containers that are currently executing in the VM by a maximum number of active containers allowed to execute in the VM; determining, by the resource control module, that the active capacity metric of a source VM in the district exceeds an active capacity threshold associated with the source VM; and migrating at least one of the containers of the source VM to a target VM in the district, wherein the target VM is operating with an active capacity metric below the active capacity threshold associated with the target VM, wherein each of the containers comprise a resource-constrained process space to execute functionality of an application of a plurality of applications having different owners, and wherein the containers execute one or more cartridge instances representing a form of support software providing the functionality needed to run each of the plurality of applications.