Method and device for computing resource scheduling
AssigneeAlibaba Group Holding Limited
InventorsYunyang ZHANG, Huining YAN, Meng LI, Hongbin XU
Life of this patent
Estimating the term…
Abstract
A method, apparatus and device for scheduling resources of a cluster comprising a plurality of hosts, each running at least one instance, including acquiring a resource parameter of the cluster; calculating the number of predicted hosts in the cluster according to the resource parameter; determining to-be-migrated hosts and target hosts from the current hosts in the cluster when the number of current hosts in the cluster is greater than the number of predicted hosts; and migrating instances running on the to-be-migrated host to the target host.
Claims20
A method for resource scheduling comprising:
- acquiring, by a resource scheduling device, a resource parameter of the cluster, the cluster including a plurality of hosts, the plurality of hosts including a plurality of current hosts each running one or more instances;
- calculating, by the resource scheduling device, a number of predicted hosts in the cluster according to the resource parameter;
- determining, by the resource scheduling device, one or more to-be-migrated hosts and one or more target hosts from the current hosts in the cluster when a number of current hosts in the cluster is greater than the number of predicted hosts;
- and
- migrating, by the resource scheduling device, an instance of the one or more instances running on a to-be-migrated host of the one or more to-be-migrated hosts to a target host of the one or more target hosts when the number of current hosts is greater than the number of predicted hosts.
A scheduling device for resource scheduling on a cluster including a plurality of hosts, the device comprising:
- one or more processors;
- a network interface;
- and
- a non-transitory memory storing computer-executable instructions executable by the processor, the instructions causing the device to:
- acquire a resource parameter of the cluster, the cluster including a plurality of hosts, the plurality of hosts including a plurality of current hosts each running one or more instances;
- calculate a number of predicted hosts in the cluster according to the resource parameter;
- determine one or more to-be-migrated hosts and one or more target hosts from the current hosts in the cluster when a number of current hosts in the cluster is greater than the number of predicted hosts;
- and
- migrate an instance of the one or more instances running on a to-be-migrated host of the one or more to-be-migrated hosts to a target host of the one or more target hosts when the number of current hosts is greater than the number of predicted hosts.
A non-transitory computer-readable storage medium storing computer-executable instructions thereon that, when executed by a processor of a scheduling device, cause the scheduling device to perform resource scheduling on a cluster including a plurality of hosts, the scheduling comprising:
- acquiring, by the scheduling device, a resource parameter of the cluster, the cluster including a plurality of hosts, the plurality of hosts including a plurality of current hosts each running one or more instances;
- calculating, by the scheduling device, a number of predicted hosts in the cluster according to the resource parameter;
- determining, by the scheduling device, one or more to-be-migrated hosts and one or more target hosts from the current hosts in the cluster when a number of current hosts in the cluster is greater than the number of predicted hosts;
- and
- migrating, by the scheduling device, an instance of the one or more instances running on a to-be-migrated host of the one or more to-be-migrated hosts to a target host of the one or more target hosts when the number of current hosts is greater than the number of predicted hosts.
Dependencies are inferred from the claim text.