Container resource scheduling method

A resource scheduling and container technology, applied in the field of cloud computing, can solve problems such as resource size, resource allocation waste, resource waste, etc., and achieve the effect of saving bandwidth and the time required for downloading images, improving efficiency, and improving operating efficiency

CN107315643AInactive Publication Date: 2017-11-03SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
4 Cites 5 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2017-11-03
Estimated Expiration
Not applicable · inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
Patent Text Reader

Abstract

The invention provides a container resource scheduling method, which comprises the following steps that: S1: giving a mark for a node; and S2: selecting a node with a highest score. Through the above setting, on a resource-allowable premise, the bandwidth of a network transmission mirror image and time required for downloading the mirror image can be saved, system operation efficiency is improved, and system service quality is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical field

[0001] The invention relates to the technical field of cloud computing, in particular to a container resource scheduling method. Background technique

[0002] With the rapid development of container technology in cloud computing and the increasing popularity of container technology, more and more enterprises are participating in container technology. The use of containers in cloud computing infrastructure and services has increased year by year. Container technology has triggered the development of information technology. A new round of revolution. At present, the following methods are mainly used for the allocation of container resources: one allocation method is to allocate according to the order in which instructions are received. This method does not consider the size of the resources required by different containers themselves, which is likely to cause resource waste; the other This allocation method is based on the different execution functions of the conta...

Examples

Embodiment 1

[0041] Such as figure 1 Shown as a specific embodiment, a container resource scheduling method is provided, and the method includes the following steps:

[0042] S1: Score the nodes, the specific implementation process is:

[0043] S11: Set the upper limit of mirroring max. In practical applications, you can set max to 2G, which is 2048M;

[0044] S12: Obtain the image value X1 required by the application;

[0045] S13: Obtain a node's own mirror value X2;

[0046] S14: Judge whether X1 is greater than X2, if so, the node scores score=0; if not, go to S15;

[0047] S15: Judge whether X2 is greater than max, if so, the node score = 100; if not, go to S16;

[0048] S16: Calculate the node score according to the formula score=100*(X2-X1) / (max-X1);

[0049] S17: Repeat steps S13-S16 to get the score of each node.

[0050] S2: Select the node with the highest score.

[0051] S3: Determine whether the number of nodes with the highest score is greater than 1, if yes, go to S4, if not, select the no...

Embodiment 2

[0054] Such as figure 2 Shown as a specific embodiment, a container resource scheduling method is provided, and the method includes the following steps:

[0055] S1: Score the nodes, the specific implementation process is:

[0056] S11: Set the upper limit of mirroring max. In practical applications, you can set max to 2G, which is 2048M;

[0057] S12: Obtain the image value X1 required by the application;

[0058] S13: Obtain a node's own mirror value X2;

[0059] S14: Judge whether X1 is greater than X2, if so, the node scores score=0; if not, go to S15;

[0060] S15: Judge whether X2 is greater than max, if so, the node score = 100; if not, go to S16;

[0061] S16: Calculate the node score according to the formula score=100*(X2-X1) / (max-X1);

[0062] S17: Repeat steps S13-S16 to get the score of each node.

[0063] S2: Select the node with the highest score.

[0064] S3: Determine whether the number of nodes with the highest score is greater than 1, if yes, go to S4, if not, select the ...

Embodiment 3

[0069] On the basis of embodiment 1, the following steps are added before step S1:

[0070] S0: Determine the size of the node's own resources, and remove nodes whose own resources are less than the set value.

[0071] By setting step S0, nodes that do not meet the requirements can be removed in advance before scoring, reducing the number of nodes that need to be scored, and improving efficiency. In the actual application, an example is given, the size of the set value is set to 100M.