CPC G06F 9/45541 (2013.01) [G06F 9/44505 (2013.01); G06F 9/45558 (2013.01); G06F 9/5027 (2013.01); H04L 67/14 (2013.01); H04L 67/51 (2022.05); G06F 2009/45562 (2013.01); G06F 2009/4557 (2013.01); G06F 2209/505 (2013.01); G06F 2209/508 (2013.01)] | 17 Claims |
1. A system comprising:
a Container-as-a-Service (CaaS) hardware controller configured to:
receive cluster information associated with a request to create a container cluster on behalf of a customer, the cluster information comprising master and worker node sizes for the container cluster;
receive an inventory of bare metal machines available within a private cloud of the customer;
identify a particular bare metal machine for the container cluster based on the inventory of the bare metal machines, the cluster information, and a best fit algorithm, the best fit algorithm configured in accordance with a policy established by the customer, wherein the particular bare metal machine is identified by:
creating a set of candidate machines based on the inventory of the bare metal machines, the set of candidate machines comprising a subset of the bare metal machines that have sufficient resources to satisfy the request;
calculating an excess resource metric for each candidate machine in the set of candidate machines; and
selecting, as the particular bare metal machine, a particular candidate machine in the set of candidate machines having the excess resource metric indicative of a least amount of excess resources; and
create the container cluster on the particular bare metal machine.
|