Method and device for computing resource scheduling
First Claim
Patent Images
1. A method for resource scheduling comprising:
- acquiring, by a resource scheduling device, a resource configuration quantity of a cluster, the cluster including a plurality of hosts, the plurality of hosts including a plurality of current hosts each running one or more instances, the resource configuration quantity comprising a total capacity of each host in the cluster;
acquiring, by the resource scheduling device, an actual resource utilization quantity of each host in the cluster, the actual resource utilization quantity acquired by analyzing resources actively utilized by instances executing on each host;
generating, by the resource scheduling device, a resource parameter based on the resource configuration quantity and the actual resource utilization quantity;
calculating, by the resource scheduling device, a number of predicted hosts in the cluster according to the resource parameter by predicting the resource utilization quantities of instances in a given cluster, the predicting generating maximum value of resource utilization quantities of the hosts in a prospective time period based on the corresponding actual resource utilization quantities;
comparing, by the resource scheduling device, the predicted resource utilization quantities to resource configuration quantities of the plurality of hosts;
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.
1 Assignment
0 Petitions
Accused Products
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.
70 Citations
19 Claims
-
1. A method for resource scheduling comprising:
-
acquiring, by a resource scheduling device, a resource configuration quantity of a cluster, the cluster including a plurality of hosts, the plurality of hosts including a plurality of current hosts each running one or more instances, the resource configuration quantity comprising a total capacity of each host in the cluster; acquiring, by the resource scheduling device, an actual resource utilization quantity of each host in the cluster, the actual resource utilization quantity acquired by analyzing resources actively utilized by instances executing on each host; generating, by the resource scheduling device, a resource parameter based on the resource configuration quantity and the actual resource utilization quantity; calculating, by the resource scheduling device, a number of predicted hosts in the cluster according to the resource parameter by predicting the resource utilization quantities of instances in a given cluster, the predicting generating maximum value of resource utilization quantities of the hosts in a prospective time period based on the corresponding actual resource utilization quantities; comparing, by the resource scheduling device, the predicted resource utilization quantities to resource configuration quantities of the plurality of hosts; 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. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. 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 configuration quantity 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, the resource configuration quantity comprising a total capacity of each host in the cluster; acquire an actual resource utilization quantity of each host in the cluster, the actual resource utilization quantity acquired by analyzing resources actively utilized by instances executing on each host; generate a resource parameter based on the resource configuration quantity and the actual resource utilization quantity; calculate a number of predicted hosts in the cluster according to the resource parameter by predicting the resource utilization quantities of instances in a given cluster, the predicting generating maximum value of resource utilization quantities of the hosts in a prospective time period based on the corresponding actual resource utilization quantities; and comparing the predicted resource utilization quantities to resource configuration quantities of the plurality of hosts; 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. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. 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 configuration quantity 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, the resource configuration quantity comprising a total capacity of each host in the cluster; acquiring, by the scheduling device, an actual resource utilization quantity of each host in the cluster, the actual resource utilization quantity acquired by analyzing resources actively utilized by instances executing on each host; generating, by the scheduling device, a resource parameter based on the resource configuration quantity and the actual resource utilization quantity; calculating, by the scheduling device, a number of predicted hosts in the cluster according to the resource parameter by predicting the resource utilization quantities of instances in a given cluster, the predicting generating maximum value of resource utilization quantities of the hosts in a prospective time period based on the corresponding actual resource utilization quantities; comparing, by the scheduling device, the predicted resource utilization quantities to resource configuration quantities of the plurality of hosts; 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. - View Dependent Claims (19)
-
Specification