JP2017142838A - Resource allocation method of central processing unit and calculation node - Google Patents

Resource allocation method of central processing unit and calculation node Download PDF

Info

Publication number
JP2017142838A
JP2017142838A JP2017076053A JP2017076053A JP2017142838A JP 2017142838 A JP2017142838 A JP 2017142838A JP 2017076053 A JP2017076053 A JP 2017076053A JP 2017076053 A JP2017076053 A JP 2017076053A JP 2017142838 A JP2017142838 A JP 2017142838A
Authority
JP
Japan
Prior art keywords
resource pool
advanced
physical
virtual machines
virtual machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017076053A
Other languages
Japanese (ja)
Other versions
JP6461224B2 (en
Inventor
▲衛▼▲華▼ ▲單▼
▲衛▼▲華▼ ▲單▼
Weihua Shan
▲錦▼涛 ▲劉▼
▲錦▼涛 ▲劉▼
Jintao Liu
候青 李
Houqing Li
候青 李
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to JP2017076053A priority Critical patent/JP6461224B2/en
Publication of JP2017142838A publication Critical patent/JP2017142838A/en
Application granted granted Critical
Publication of JP6461224B2 publication Critical patent/JP6461224B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a resource allocation method of a central processing unit.SOLUTION: A resource allocation method of a central processing unit includes: a step of dynamically adjusting the allotted number of physical cores in a high degree resource pool according to a change of the number of virtual machines in a high degree resource pool; and a step of adjusting the allotted number of physical cores in a default resource pool according to the allotted number of physical cores in the high degree resource pool. The high degree resource pool and the default resource pool are a plurality of resource pools, and are acquired by dividing the plurality of physical cores in the central processing unit in accordance with a plurality of service levels of the plurality of resource pools.SELECTED DRAWING: Figure 1

Description

本発明の複数の実施例は、仮想化技術に関連し、そして特に、中央処理装置のリソース割当方法及び計算ノードに関連する。   Embodiments of the present invention relate to virtualization technology and in particular to central processing unit resource allocation methods and computing nodes.

現在、仮想化技術は情報技術の分野で広く応用されている。仮想化技術は、1つのサーバに、複数の仮想マシンを配置する能力を提供し、これによりユーザの全体的なコストを削減し、そして複数のアプリケーションの信頼性及び柔軟性を向上させる。現在、産業界において、複数の仮想マシンの複数の中央処理装置(Central Processing Unit、CPUと略す)の管理のために、CPU過剰割当てが広く実施されている。すなわち、物理的な複数のリソースを完全に使用するために、仮想マシンの仮想CPUsの数はサーバにおける物理的なCPUsの数よりも多い。しかしながら、物理的なリソースが足りない場合において、どのようにして物理的な複数のCPUリソースを適切に割り当てるかについては、直面する最大の問題のうちの1つとなっている。よく使われる実施方法は、複数の仮想マシンに対して、優先順位を設定することであり、そして異なる複数の優先順位に従って、異なる数量のCPUリソースを複数の仮想マシンに割り当てる。異なる複数の要求を持つ複数のユーザに異なるサービスを提供し、そしてサービスの品質を向上するために、より高い優先順位の仮想マシンに対しては、より多くの数量の物理的CPUリソースが割り当てられる。   Currently, virtualization technology is widely applied in the field of information technology. Virtualization technology provides the ability to place multiple virtual machines on a single server, thereby reducing the overall cost of the user and improving the reliability and flexibility of multiple applications. Currently, over-allocation of CPUs is widely implemented in the industry for managing a plurality of central processing units (abbreviated as CPU) of a plurality of virtual machines. That is, in order to completely use a plurality of physical resources, the number of virtual CPUs in the virtual machine is larger than the number of physical CPUs in the server. However, when physical resources are insufficient, how to properly allocate a plurality of physical CPU resources is one of the biggest problems encountered. A commonly used implementation is to set priorities for multiple virtual machines and allocate different amounts of CPU resources to multiple virtual machines according to different priorities. Higher priority virtual machines are allocated a higher quantity of physical CPU resources to provide different services to multiple users with different demands and improve the quality of service .

物理的な複数のCPUリソースは、複数の優先順位に従って、複数の仮想マシンに割り当てられるので、より高い優先順位の仮想マシンが支配的な地位を占め、そしてより低い優先順位の仮想マシンは、物理的なCPUリソースを得ることができず、これは物理的な複数のCPUリソースの効果的な割り当てに反する。   Since multiple physical CPU resources are allocated to multiple virtual machines according to multiple priorities, higher priority virtual machines dominate and lower priority virtual machines are physically CPU resources cannot be obtained, which is contrary to the effective allocation of physical CPU resources.

本発明の複数の実施例は、中央処理装置のリソース割り当て方法を提案する。当該方法は、CPUの複数の物理的コアを異なる複数のリソースプールに分離することにより実施され、物理的な複数のコアは、異なる複数のリソースプールの間で分離され、そして物理的な複数のコアは、各リソースプールによりサービスの提供を受ける複数の仮想マシンの数に従って、異なる複数のリソースプールの間で動的に割り当てられ、これにより、物理的な複数のコアリソースの効果的な使用を実現し、そして異なる複数のリソースプールの中の複数の仮想マシンのサービス品質を確実に保証する。   Embodiments of the present invention propose a central processing unit resource allocation method. The method is implemented by separating the CPU's physical cores into different resource pools, the physical cores being separated between the different resource pools, and the physical Cores are dynamically allocated among different resource pools according to the number of virtual machines serviced by each resource pool, thereby effectively using multiple physical core resources. Realize and ensure the quality of service of multiple virtual machines in different resource pools.

第1の態様によると、中央処理装置のリソース割り当て方法が提供され、ここで当該方法は:高度なリソースプール(advanced resource pool)の中の複数の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的なコアの数を動的に調整するステップ;及び前記高度なリソースプールの中の割り当てられた物理的なコアの数に従って、デフォルトリソースプールの中の割り当てられた物理的なコアの数を調整するステップを備え、前記高度なリソースプール及び前記デフォルトリソースプールは、複数のリソースプールであって、前記複数のリソースプールの複数のサービスレベルに従って、中央処理装置の物理的な複数のコアを分割することにより取得される、複数のリソースプール、である。   According to a first aspect, a central processing unit resource allocation method is provided, the method comprising: said advanced resource according to a change in the number of virtual machines in an advanced resource pool. Dynamically adjusting the number of assigned physical cores in the pool; and assigned in the default resource pool according to the number of assigned physical cores in the advanced resource pool; Adjusting the number of physical cores, wherein the advanced resource pool and the default resource pool are a plurality of resource pools, and the physical processing unit of the central processing unit is configured according to a plurality of service levels of the plurality of resource pools. Multiple resource pools obtained by splitting multiple cores Le.

前記第1の態様に関して、第1の可能な実施方法において、前記サービスレベルは、各仮想マシンにより占有され得る物理的なコア計算リソースの数を含む。   With respect to the first aspect, in a first possible implementation manner, the service level includes the number of physical core computing resources that can be occupied by each virtual machine.

前記第1の態様又は前記第1の態様の前記第1の可能な実施方法に関する、第2の可能な実施方法において、前記デフォルトリソースプールの中の複数の仮想マシンは、前記デフォルトリソースプールの中の前記複数の物理的コア全ての複数の計算リソースを共有する。   The second possible implementation method relating to the first aspect or the first possible implementation method of the first aspect, wherein a plurality of virtual machines in the default resource pool are in the default resource pool. Share a plurality of computational resources of all of the plurality of physical cores.

前記第1の態様又は前記第1の態様の前記第1又は第2の可能な実施方法に関する、第3の実施方法において、前記高度なリソースプールは、レベル1のリソースプールを含み、ここで該レベル1のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースを排他的に占有可能である。   In a third implementation method of the first aspect or the first or second possible implementation method of the first aspect, the advanced resource pool comprises a level 1 resource pool, wherein the Each virtual machine in the level 1 resource pool can exclusively occupy one physical core computing resource.

前記第1の態様又は前記第1の態様の前記第1から第3の可能な実施方法のうちのいずれか1つに関する、第4の可能な実施方法において、前記高度なリソースプールは、レベル2のリソースプールを含み、ここで、該レベル2のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースの50%を占有可能である。   In a fourth possible implementation method, according to any one of the first aspect or the first to third possible implementation methods of the first aspect, the advanced resource pool is level 2 , Where each virtual machine in the level 2 resource pool can occupy 50% of one physical core computing resource.

前記第1の態様又は前記第1の態様の前記第1から第4の可能な実施方法のうちのいずれか1つに関する、第5の可能な実施方法において、高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の前記割り当てられた物理的コアの数を動的に調整する前記ステップは:前記高度なリソースプールの中の前記仮想マシンの数が増加した場合に、増加した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールに割り当てられる必要のある物理的なコアの第1の数を決定し、かつ前記デフォルトリソースプールから前記高度なリソースプールに対して前記第1の数の物理的なコアを割り当てるステップ;又は前記高度なリソースプールの中の前記仮想マシンの数が減少した場合に、前記減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的なコアの第2の数を決定するステップ;及び前記高度なリソースプールから前記デフォルトリソースプールに対して、前記第2の数の物理的なコアを割り当てるステップ;を含む。   A virtual machine in an advanced resource pool according to a fifth possible implementation manner relating to any one of the first aspect or the first to fourth possible implementation methods of the first aspect. Dynamically adjusting the number of allocated physical cores in the advanced resource pool according to a change in the number of: if the number of virtual machines in the advanced resource pool increases Determining a first number of physical cores that need to be allocated to the advanced resource pool according to the increased number of virtual machines and the service level of the advanced resource pool, and from the default resource pool, Assigning the first number of physical cores to an advanced resource pool; or of the virtual machine in the advanced resource pool Determining a second number of physical cores that need to be subtracted from the advanced resource pool in accordance with the reduced number of virtual machines and the service level of the advanced resource pool; Allocating the second number of physical cores from the advanced resource pool to the default resource pool.

前記第1の側面又は前記第1の側面の第1から第5の可能な実施方法のうちのいずれか1つに関する、第6の可能な実施方法において、前記高度なリソースプールの中の前記仮想マシンの前記数が減少した場合に、前記減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的コアの第2の数を決定するステップ;及び前記高度なリソースプールから前記デフォルトリソースプールに対して、前記第2の数の物理的コアを割り当てる前記ステップは、具体的には:前記高度なリソースプールの中で実行される仮想マシンがない場合に、前記高度なリソースプールの中の前記物理的なコアを前記デフォルトリソースプールに割り当てるステップ;を含む。   In a sixth possible implementation manner, related to any one of the first aspect or first to fifth possible implementation methods of the first aspect, the virtual in the advanced resource pool If the number of machines decreases, determine a second number of physical cores that need to be subtracted from the advanced resource pool according to the reduced number of virtual machines and the service level of the advanced resource pool. And allocating the second number of physical cores from the advanced resource pool to the default resource pool, specifically: a virtual machine executed in the advanced resource pool If not, assigning the physical core in the advanced resource pool to the default resource pool.

前記第1の態様又は前記第1の態様の前記第1から第6の可能な実施方法のうちのいずれか1つに関する、第7の可能な実施方法において、高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的コアの数を動的に調整するステップの前に、前記方法は、さらに:前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの前記サービスレベルを満たすためには、前記高度なリソースプールの中の前記物理的コアの数が不十分であると決定するステップ;を含む。   A virtual machine in an advanced resource pool according to a seventh possible implementation method relating to any one of the first aspect or the first to sixth possible implementation methods of the first aspect Prior to the step of dynamically adjusting the number of allocated physical cores in the advanced resource pool according to a change in the number of, the method further includes: the virtual machine in the advanced resource pool Determining that the number of physical cores in the advanced resource pool is insufficient to satisfy the service level of the advanced resource pool after the number of

前記第1の態様又は前記第1の態様の前記第1から第6の可能な実施方法のうちのいずれか1つに関する、第8の可能な実施方法において、高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的コアの数を動的に調整するステップの前に、前記方法は、さらに:前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの中に、該高度なリソースプールの中の仮想マシンにサービスを提供しない1つ以上の使用されていない物理的なコア計算リソースが存在することを決定するステップ;を含む。   A virtual machine in an advanced resource pool according to an eighth possible implementation method relating to any one of the first aspect or the first to sixth possible implementation methods of the first aspect. Prior to the step of dynamically adjusting the number of allocated physical cores in the advanced resource pool according to a change in the number of, the method further includes: the virtual machine in the advanced resource pool That there is one or more unused physical core computing resources in the advanced resource pool that do not service virtual machines in the advanced resource pool. Determining.

前記第1の態様又は前記第1の態様の前記第1から第8の可能な実施方法に関する第9の可能な実施方法において、前記方法は、さらに:前記デフォルトリソースプールの中の前記複数の仮想マシンに対して、各仮想マシンにより占有可能な前記物理的な複数のコア計算リソースの上限割合及び/又は下限割合を設定するステップ;を含む。   In a ninth possible implementation method with respect to the first aspect or the first to eighth possible implementation methods of the first aspect, the method further comprises: the plurality of virtuals in the default resource pool Setting an upper limit ratio and / or a lower limit ratio of the plurality of physical core calculation resources that can be occupied by each virtual machine for a machine.

前記第1の態様又は前記第1の態様の第1から第9の可能な実施方法のうちのいずれか1つに関する、第10の可能な実施方法において、前記方法は、さらに:前記デフォルトリソースプールの中の前記複数の仮想マシンに対して、物理的ば複数のコア計算リソースの使用における各仮想マシンの優先順位を設定するステップ、及び優先順位の高い順に、前記デフォルトリソースプールの中の前記複数の仮想マシンに対して、物理的な複数のコア計算リソースを割り当てるステップ;を含む。   In a tenth possible implementation method, related to any one of the first aspect or the first to ninth possible implementation methods of the first aspect, the method further comprises: the default resource pool Setting the priority of each virtual machine in the use of a plurality of core computing resources physically for the plurality of virtual machines in the list, and the plurality in the default resource pool in descending order of priority Assigning a plurality of physical core computing resources to the virtual machine.

第2の態様によると、仮想システムに適用可能な計算ノードが提案され、ここで、該計算ノードは:高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的なコアの数を動的に調整し、かつ前記高度なリソースプールの中の前記割り当てられた物理的なコアの数に従って、デフォルトリソースプールの中の割り当てられた物理的なコアの数を調整するように構成されるリソース調整部;及び中央処理装置の複数の物理的なコアを、前記デフォルトリソースプール及び前記高度なリソースプールに、該複数のリソースプールの複数のサービスレベルに従って分割するように構成されるリソース割当部;を含む。   According to a second aspect, a compute node applicable to a virtual system is proposed, wherein the compute node is: in the advanced resource pool according to a change in the number of virtual machines in the advanced resource pool. Dynamically adjusts the number of allocated physical cores and allocates physical cores in the default resource pool according to the number of allocated physical cores in the advanced resource pool A resource coordinator configured to regulate the number of; a plurality of physical cores of a central processing unit into the default resource pool and the advanced resource pool according to a plurality of service levels of the plurality of resource pools A resource allocator configured to divide.

前記第2の態様に関する、第1の可能な実施方法において、前記高度なリソースプールの中の前記仮想マシンの数が増加した場合に、前記リソース調整部は、増加した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールに割り当てられる必要のある物理的なコアの第1の数を決定し、かつ前記デフォルトリソースプールから前記高度なリソースプールに対して前記第1の数の物理的なコアを割り当てる;又は前記高度なリソースプールの中の前記仮想マシンの前記数が減少した場合に、前記リソース調整部は、前記減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的なコアの第2の数を決定し、かつ前記高度なリソースプールから前記デフォルトリソースプールに対して、前記第2の数の物理的なコアを割り当てる。   In the first possible implementation method related to the second aspect, when the number of the virtual machines in the advanced resource pool increases, the resource adjustment unit determines whether the increased number of virtual machines and the advanced Determining a first number of physical cores that need to be allocated to the advanced resource pool according to a service level of the advanced resource pool and from the default resource pool to the advanced resource pool Allocate a number of physical cores; or, if the number of the virtual machines in the advanced resource pool decreases, the resource coordinator adjusts the reduced number of virtual machines and the advanced resource pool According to a service level, determining a second number of physical cores that need to be subtracted from the advanced resource pool; and Serial to the default resource pool from advanced resource pool, allocating the second number of physical cores.

第2の態様又は第2の態様の第1の可能な実施方法に関する、第2の可能な実施方法において、前記計算ノードは:前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの前記サービスレベルを満たすためには、前記高度なリソースプールの中の前記物理的なコアの数が不十分であると決定するように構成される第1決定部;をさらに備える。   In a second possible implementation manner, with respect to the second aspect or the first possible implementation manner of the second aspect, the compute node is: after the number of the virtual machines in the advanced resource pool has changed A first determiner configured to determine that the number of physical cores in the advanced resource pool is insufficient to satisfy the service level of the advanced resource pool; Further prepare.

前記第2の態様又は前記第2の態様の前記第1の可能な実施方法に関する、第3の可能な実施方法において、前記計算ノードは、さらに:前記高度なリソースプールの中の前記仮想マシンの数が変化した場合、前記高度なリソースプールの中に、該高度なリソースプールの中の仮想マシンにサービスを提供しない1つ以上の使用されていない物理的なコア計算リソースが存在することを決定するように構成される第1の決定部;を備える。   In the third possible implementation method, with respect to the second aspect or the first possible implementation method of the second aspect, the compute node further comprises: the virtual machine in the advanced resource pool When the number changes, it is determined that there are one or more unused physical core computing resources in the advanced resource pool that do not service virtual machines in the advanced resource pool. A first determination unit configured to be configured.

前記第2の態様又は前記第2の態様の前記第1から第3の可能な実施方法のうちのいずれか1つに対する、第4の可能な実施方法において、前記リソース割当部は、前記デフォルトリソースプールの中の各仮想マシンに対して、各仮想マシンにより占有可能な前記複数の物理的コア計算リソースの上限割合及び/又は下限割合を設定するように構成される。   In a fourth possible implementation method for any one of the second aspect or the first to third possible implementation methods of the second aspect, the resource allocator is configured to use the default resource. An upper limit ratio and / or a lower limit ratio of the plurality of physical core calculation resources that can be occupied by each virtual machine is configured for each virtual machine in the pool.

前記第2の態様又は前記第2の態様の前記第1から第4の可能な実施方法のうちのいずれか1つに関する第5の可能な実施方法において、前記リソース割当部は、前記デフォルトリソースプールの中の前記複数の仮想マシンに対して、物理的な複数のコア計算リソースの使用における各仮想マシンの優先順位を設定し、かつ優先順位の高い順に、前記デフォルトリソースプールの中の前記複数の仮想マシンに対して、物理的な複数のコア計算リソースを割り当てるように構成される。   In the fifth possible implementation method according to any one of the second aspect or the first to fourth possible implementation methods of the second aspect, the resource allocation unit is configured to use the default resource pool. For each of the plurality of virtual machines, a priority order of each virtual machine in the use of a plurality of physical core computing resources is set, and the plurality of the default resource pools in the descending order of priority are set. It is configured to allocate a plurality of physical core computing resources to a virtual machine.

本発明の複数の実施例によると、物理的な複数のコアは、異なる複数のリソースブールに分割され、そして1つのリソースプールの中の物理的な複数のコアの複数の計算リソースは、他のリソースプールの中のそれらから分離され、これにより、異なる複数の適用シナリオに対する複数の物理的コア計算リソースの効果的な割り当てを実現し、多くの計算リソースを長時間占有する優越的な仮想マシンの出現を回避し、複数の物理的コア計算リソースの不均衡な割り当てを防止し、そして複数の物理的コアの複数の計算リソースの使用の効率を向上する。   According to embodiments of the present invention, physical cores are divided into different resource Booleans, and the computational resources of physical cores in one resource pool are the other Separate from those in the resource pool, which enables effective allocation of multiple physical core computing resources for different application scenarios, and for superior virtual machines that occupy many computing resources for a long time Avoid appearance, prevent unbalanced allocation of multiple physical core computing resources, and improve the efficiency of using multiple computing resources of multiple physical cores.

本発明の複数の実施例における複数の技術的解決手段をより明確に説明するために、以下において、当該複数の実施例又は先行技術を説明するために必要となる添付の複数の図面を簡潔に紹介する。明らかに、以下の説明における添付の複数の図面は、本発明の複数の実施例のいくつかのみを示すものであり、当業者は、創造的な努力なしで、依然として、これらの添付図面から他の複数の図面を導出することが可能である。
本発明の実施例に従う、中央処理装置のリソース割り当て方法の概略フローチャートである。 本発明の実施例に従う、仮想マシンの移入(migration−in)処理の具体的な例のフローチャートである。 本発明の実施例に従う、仮想マシンの移出(migration−out)処理の具体的な例のフローチャートである。 ソース計算ノードから宛先の計算ノードに仮想マシンを移行するためのシグナリングインターワーキング(signaling interworking)の図である。 本発明の実施例に従う計算ノードの概略構成図である。 本発明の実施例に従う計算ノードの概略構成図である。 本発明の実施例に従う計算ノードの他の概略構成図である。
To more clearly describe the technical solutions in the embodiments of the present invention, the following briefly describes the accompanying drawings required for describing the embodiments or the prior art. introduce. Apparently, the accompanying drawings in the following description show only some of the embodiments of the present invention, and those skilled in the art can It is possible to derive a plurality of drawings.
6 is a schematic flowchart of a resource allocation method for a central processing unit according to an embodiment of the present invention. 6 is a flowchart of a specific example of virtual machine migration-in processing according to an embodiment of the present invention. 6 is a flowchart of a specific example of virtual machine migration-out processing according to an embodiment of the present invention. FIG. 3 is a diagram of signaling interworking for migrating a virtual machine from a source computation node to a destination computation node. It is a schematic block diagram of the calculation node according to the Example of this invention. It is a schematic block diagram of the calculation node according to the Example of this invention. It is another schematic block diagram of the calculation node according to the Example of this invention.

以下において、本発明の複数の実施例における添付の複数の図面を参照することにより、本発明の複数の実施例における複数の技術的解決手段を明確かつ完全に記載する。明らかに、記載される複数の実施例は、本発明の複数の実施例のうちの一部であり、全てではない。創造的努力なしで、本発明の複数の実施例に基づき、当業者により取得される他の複数の実施例の全ては、本発明の保護範囲に属さなければならない。   The following clearly and completely describes the technical solutions in the embodiments of the present invention by referring to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the invention. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

本発明の複数の実施例における複数の技術的な解決手段は、仮想マシンの仮想CPU(VCPUと略す)を指定されたリソースプールにバインドする基本的な機能に基づいて実現される。当業者は、リソースプールに対してVCPUをバインドするための特定の複数の方式及び複数の実現手段を理解することが可能であり、それについては、簡潔性のため、ここにおいては詳述されない。   A plurality of technical solutions in the embodiments of the present invention are realized based on a basic function of binding a virtual CPU (abbreviated as VCPU) of a virtual machine to a designated resource pool. One skilled in the art can understand certain schemes and implementations for binding a VCPU to a resource pool, which are not detailed here for the sake of brevity.

本発明の複数の実施例の説明において、物理的なコアとは、物理的な中央演算装置のコアのことを言う。仮想マシンがその上で実行されるサーバ又はコンピューティングノードは、一般に、複数のCPUを備え、そして各CPUは、1つ以上の物理的なコアを含む。物理的な複数のコアは、異なる複数の目的に対して使用されてもよい。本発明の複数の実施例において、リソースプールを形成するCPUの物理的な複数のコアは、1つのCPUの物理的な複数のコアであってもよく又は複数のCPUの物理的な複数のコアであってもよく、複数のCPUは、1つのサーバ又は計算ノードに置かれてもよく、或いは複数のサーバ又は複数の計算ノードに置かれてもよく、それについては、本発明の複数の実施例においては特に限定されない。   In the description of the embodiments of the present invention, the physical core refers to the core of the physical central processing unit. A server or computing node on which a virtual machine runs is typically provided with a plurality of CPUs, and each CPU includes one or more physical cores. Physical cores may be used for different purposes. In the embodiments of the present invention, the physical cores of the CPU forming the resource pool may be the physical cores of one CPU or the physical cores of the multiple CPUs. The multiple CPUs may be located on one server or compute node, or may be located on multiple servers or compute nodes, for which multiple implementations of the invention may be implemented. It does not specifically limit in an example.

本発明の複数の実施例において、仮想マシンは、複数のVCPUを含んでもよい。説明を容易にするために、1つの仮想マシンが1つのVCPUを含む例が説明される。記述処理において、1つの仮想マシンが複数の実施例における1つのVCPUを含むので、「VCPUとリソースプールをバインドする」ことは、また、一般に、「仮想マシンとリソースプールをバインドする」と表現されてもよい。当業者は、本明細書における「バインドする」という意味は、その用語が当該技術分野で通常理解されるのと同じである、ということを理解する。当業者は、「リソースプールにおいて実行される仮想マシン」ということは、仮想マシンが当該リソースプールの中の物理的なコア計算リソースを占有するということを意味し、他のリソースプールの中の物理的なコア計算リソースを占有するということではないことを理解することができる。本発明の複数の実施例において、物理的なコア計算リソースとは、物理的なコアにより与えられる計算能力のことを示す。リソースプールにおいて実行される仮想マシンにより占有され得る複数の計算リソースは、リソースプールの1つの物理的コアに由来してもよく、或いはリソースプールの中の物理的な複数のコアに由来してもよく、これについては、本発明の複数の実施例においては限定されない。仮想マシンにより占有され得る「物理的な複数のコア計算リソース」とは、仮想マシンにより占有され得る複数のリソースプールの中の物理的な複数のコア計算リソースであって、その中で、1つの仮想マシンが動作する、物理的な複数のコア計算リソース、のことを示す。或いはリソースプールであって、その中で仮想マシンが実行される、リソースプール、の中の物理的な複数のコア計算リソースであって、仮想マシンの全てのVCPUにより占有され得る、物理的な複数のコア計算リソース、のことを示してもよい。以下の説明における明確性のため、本発明の複数の実施例は、例を使用することにより説明され、それにおいて、「仮想マシンにより占有される物理的な複数のコア計算リソース」は、仮想マシンが実行されるリソースプールの中の物理的な複数の計算リソースであって、仮想マシンの全てのVCPUにより占有される、物理的な複数の計算リソースである。   In embodiments of the present invention, the virtual machine may include a plurality of VCPUs. For ease of explanation, an example is described in which one virtual machine includes one VCPU. In the description process, since one virtual machine includes one VCPU in a plurality of embodiments, “binding a VCPU and a resource pool” is also generally expressed as “binding a virtual machine and a resource pool”. May be. Those skilled in the art will understand that the meaning of “bind” herein is the same as that term is commonly understood in the art. Those skilled in the art will understand that a “virtual machine running in a resource pool” means that the virtual machine will occupy physical core computing resources in that resource pool, and physical resources in other resource pools. It can be understood that it does not occupy a typical core computing resource. In embodiments of the present invention, a physical core computing resource refers to computing power provided by a physical core. Multiple computing resources that can be occupied by virtual machines running in a resource pool may come from one physical core of the resource pool or from multiple physical cores in the resource pool Well, this is not limited in the embodiments of the present invention. A “physical multiple core computing resource” that can be occupied by a virtual machine is a physical multiple core computing resource in a plurality of resource pools that can be occupied by a virtual machine. Indicates a plurality of physical core computing resources on which a virtual machine operates. Alternatively, a resource pool that is a physical plurality of core computing resources in the resource pool in which the virtual machine is executed and that can be occupied by all VCPUs of the virtual machine The core computing resource may be indicated. For clarity in the following description, embodiments of the present invention will be described using examples, in which “physical multiple core computing resources occupied by a virtual machine” refers to a virtual machine Are a plurality of physical computing resources in the resource pool in which are executed, and are a plurality of physical computing resources occupied by all VCPUs of the virtual machine.

図1は、本発明の実施例に従う中央処理装置リソース割り当て方法の概略フローチャートである。図1に示されるように、当該方法100は以下の複数のステップを含む。   FIG. 1 is a schematic flowchart of a central processing unit resource allocation method according to an embodiment of the present invention. As shown in FIG. 1, the method 100 includes the following steps:

110.高度なリソースプール(advanced resource pool)の中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的コアの数を動的に調整する。   110. Dynamically adjusts the number of allocated physical cores in the advanced resource pool according to changes in the number of virtual machines in the advanced resource pool.

120.前記高度なリソースプールの中の割り当てられた物理的なコアの数に従って、デフォルトリソースプールの中の割り当てられた物理的なコアの数を調整し、ここで前記高度なリソースプール及び前記デフォルトリソースプールは、複数のリソースプールであって、前記複数のリソースプールの複数のサービスレベルに従って、中央処理装置の複数の物理的コアを分割することにより取得される、複数のリソースプール、である。   120. Adjusting the number of assigned physical cores in the default resource pool according to the number of assigned physical cores in the advanced resource pool, wherein the advanced resource pool and the default resource pool Is a plurality of resource pools obtained by dividing a plurality of physical cores of the central processing unit according to a plurality of service levels of the plurality of resource pools.

本発明の実施例において、各リソースプールは、当該リソースプールの中で実行される複数の仮想マシンにサービスを提供し、そして当該リソースプールのサービスレベルは、当該リソースプールの中で実行される複数の仮想マシンにより要求されるサービスレベルに対応する。ここで、「サービスレベル」とは、例えば、各仮想マシンにより占有され得る物理的な複数のコア計算リソースの数である。本発明のこの実施例及び後の複数の実施例において、「占有する」とは、リソースプールの中の各仮想マシンに実際に割り当てられる物理的な複数のコア計算リソースのことを示す。例えば、高度なリソースプールにおいて、仮想マシンは、1つの物理的コア計算リソースの50%を占有することが可能であり、これは、1つの物理的コア計算リソースの50%が、当該高度なリソースプールの中の仮想マシンに対して実際に割り当てられる、ということを意味する。例えば、他の高度なリソースプールにおいて、仮想マシンは、1つの物理的なコア計算リソースを占有することが可能であり、これは、1つの物理的なコア計算リソースが実際に1つの仮想マシンに割り当てられる、ということを意味する。   In an embodiment of the present invention, each resource pool provides a service to a plurality of virtual machines executed in the resource pool, and the service level of the resource pool is a plurality executed in the resource pool. Corresponds to the service level required by the virtual machine. Here, the “service level” is, for example, the number of physical core calculation resources that can be occupied by each virtual machine. In this embodiment of the invention and later embodiments, “occupy” refers to a plurality of physical core computing resources that are actually allocated to each virtual machine in the resource pool. For example, in an advanced resource pool, a virtual machine can occupy 50% of one physical core computational resource, which means that 50% of one physical core computational resource It means that it is actually assigned to a virtual machine in the pool. For example, in other advanced resource pools, a virtual machine can occupy one physical core computing resource, which means that one physical core computing resource is actually in one virtual machine. It means that it is assigned.

本発明の他の実施例において、異なる複数のリソースプールは、論理的に互いに分離される。すなわち、各リソースプールの中の複数の物理的コアは、各リソースプールの中で実行される複数の仮想マシンに対してのみサービスを提供し、そして当該リソースプールの中で実行される複数の仮想マシンに対して物理的な複数のコア計算リソースを提供する。ここで説明される論理的な分離は、物理的な分離の可能性を除外するものではない。本発明の実施例に従う可能な実施方法において、異なる複数のリソースプールは、物理的に互いに分離されることもあり得る。例えば、異なる複数のリソースプールの中の複数の物理的なコアは、異なる複数の計算ノードに取り付けられてもよい。   In another embodiment of the invention, different resource pools are logically separated from each other. That is, a plurality of physical cores in each resource pool provide services only to a plurality of virtual machines executed in each resource pool, and a plurality of virtual cores executed in the resource pool. Provide multiple core computing resources that are physical to the machine. The logical separation described here does not exclude the possibility of physical separation. In possible implementation methods according to embodiments of the present invention, different resource pools may be physically separated from each other. For example, multiple physical cores in different resource pools may be attached to different compute nodes.

本発明の実施例において、デフォルトリソースプールにおいて実行される複数の仮想マシンは、当該デフォルトリソースプールの中の全ての物理的コアの複数の計算リソースを共有する。高度なリソースプールは、特定のアプリケーションの要件に従って設定されてもよい。可能な実施方法において、高度なリソースプールは、レベル1のリソースプールを含み、ここで該レベル1のリソースプールの中の各仮想マシンは、1つの物理的コア計算リソースを排他的に占有可能とされる、すなわち、レベル1のリソースプールのサービスレベルは100%である。仮想マシンがただ1つのVCPUを含む場合において、レベル1のリソースプールの中の複数の物理的コアの数は、リソースプールの中で実行される仮想マシンの数に等しい。レベル1のリソースプールは、1つの物理的コア計算リソースが、当該レベル1のリソースプールにおいて常に実行される仮想マシンに割り当てられることを保証することができるが、当該「1つの物理的コア計算リソース」は、当該リソースプールの中の1つ以上の物理的なコアに由来してもよい。別の可能な実施方法において、レベル1のリソースプールに加えて、高度なリソースプールはさらに、レベル2のリソースプールを含む。レベル2のリソースプールにおいて実行される仮想マシンは、1つの物理的なコア計算リソースの50%を占有することが可能であり、すなわち、レベル2のリソースプールのサービスレベルは50%である。言い換えると、レベル2のリソースプールにおいて、物理的なコア計算リソースの50%は、各仮想マシンに実際に割り当てられるが、「1つの物理的なコア計算リソースの50%」は、リソースプールの中の1つ以上の物理的なコアに由来してもよい。本発明の実施例に従う他の可能な実施方法において、高度なリソースプールは、レベル2のリソースプールのみを含んでもよい。本発明の実施例に従う他の可能な実施方法において、高度なリソースプールは、さらに、レベル3のリソースプールを含んでもよく、ここで、当該レベル3のリソースプールにおいて実行される仮想マシンは、1つの物理的なコア計算リソースの33%を占有することが可能である。特定のアプリケーションの要件に応じて、高度なリソースプールの中に、より多い又はより少ないサブリソースプールを設定することが可能であり、そして当該複数のサブリソースプールの複数のサービスレベルが異なっていてもよい、ということを当業者は理解することができる。   In an embodiment of the present invention, a plurality of virtual machines executed in a default resource pool share a plurality of computing resources of all physical cores in the default resource pool. The advanced resource pool may be configured according to the requirements of a specific application. In a possible implementation, the advanced resource pool includes a level 1 resource pool, where each virtual machine in the level 1 resource pool can exclusively occupy one physical core computing resource. In other words, the service level of the level 1 resource pool is 100%. If the virtual machine contains only one VCPU, the number of physical cores in the level 1 resource pool is equal to the number of virtual machines running in the resource pool. A level 1 resource pool can guarantee that one physical core computing resource is assigned to a virtual machine that always runs in the level 1 resource pool, but the “one physical core computing resource” "May come from one or more physical cores in the resource pool. In another possible implementation, in addition to the level 1 resource pool, the advanced resource pool further includes a level 2 resource pool. A virtual machine running in a level 2 resource pool can occupy 50% of one physical core computing resource, ie, the service level of a level 2 resource pool is 50%. In other words, in the level 2 resource pool, 50% of the physical core computing resources are actually allocated to each virtual machine, but “50% of one physical core computing resource” is in the resource pool. Of one or more physical cores. In other possible implementations according to embodiments of the present invention, the advanced resource pool may include only level 2 resource pools. In another possible implementation according to an embodiment of the present invention, the advanced resource pool may further include a level 3 resource pool, where the virtual machines running in the level 3 resource pool are 1 It can occupy 33% of one physical core computing resource. Depending on the requirements of a specific application, it is possible to set more or fewer sub-resource pools in the advanced resource pool, and the service levels of the sub-resource pools are different. It can be understood by those skilled in the art.

本発明の実施例によると、ステップ110は、具体的には:前記高度なリソースプールの中の前記仮想マシンの数が増加した場合に、増加した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールに割り当てられる必要のある物理的コアの第1の数を決定するステップ;及び前記デフォルトリソースプールから前記高度なリソースプールに対して前記第1の数の物理的コアを割り当てるステップ;又は前記高度なリソースプールの中の前記仮想マシンの数が減少した場合に、前記減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的コアの第2の数を決定するステップ;及び前記高度なリソースプールから前記デフォルトリソースプールに対して、前記第2の数の物理的コアを割り当てるステップ;を含む。   According to an embodiment of the present invention, the step 110 specifically includes: when the number of the virtual machines in the advanced resource pool increases, the increased number of virtual machines and the service of the advanced resource pool Determining a first number of physical cores that need to be allocated to the advanced resource pool according to a level; and the first number of physical cores from the default resource pool to the advanced resource pool Or subtract from the advanced resource pool according to the reduced number of virtual machines and the service level of the advanced resource pool when the number of virtual machines in the advanced resource pool decreases Determining a second number of physical cores needed; and said advanced resource pool Wherein for the default resource pool, assigning a second number of physical cores; including.

高度なリソースプールの中の複数の物理的なコアは、当該高度なリソースプールの中で実行される仮想マシンがない場合に、デフォルトリソースプールに対して割り当てられる。以下において、説明のために、複数のリソースプールはデフォルトリソースプール及び高度なリソースプールを含み、かつ高度なリソースプールはレベル1のリソースプール及びレベル2のリソースプールを含む例を使用する。ここで使用される例は、本発明の実施例の複数の実施方法を説明することのみを意図しており、本発明の実施例を限定するものではない、ということに注意すべきである。また、本発明の実施例の説明において、異なる複数のサービスレベルの複数のリソースプールにおいて実行される複数の仮想マシンは、複数のサービスレベルに対応する複数の仮想マシンと呼ばれてもよい。例えば、レベル1のリソースプールにおいて実行される仮想マシンは、レベル1の仮想マシンと呼ばれてもよく、そしてデフォルトリソースプールの中で実行される仮想マシンは、デフォルト仮想マシンと呼ばれてもよい。   A plurality of physical cores in the advanced resource pool are assigned to the default resource pool when there are no virtual machines running in the advanced resource pool. In the following, for purposes of explanation, an example is used in which a plurality of resource pools include a default resource pool and an advanced resource pool, and an advanced resource pool includes a level 1 resource pool and a level 2 resource pool. It should be noted that the examples used here are only intended to illustrate a plurality of implementations of embodiments of the present invention and are not intended to limit the embodiments of the present invention. In the description of the embodiments of the present invention, a plurality of virtual machines executed in a plurality of resource pools of a plurality of different service levels may be referred to as a plurality of virtual machines corresponding to a plurality of service levels. For example, a virtual machine running in a level 1 resource pool may be referred to as a level 1 virtual machine, and a virtual machine running in a default resource pool may be referred to as a default virtual machine. .

最初に、例えば、システムの電源が投入されると、高度なリソースプールの中で実行される仮想マシンがないため、全ての物理的なリソースはデフォルトリソースプールに割り当てられる。異なる複数のアプリケーションシナリオに応じて、複数の仮想マシンが起動され、そして、異なる複数のリソースプールに移行される異なる複数のリソースプール又は複数の仮想マシンに加えられる。逆のプロセスは、複数の仮想マシンを停止する、又は複数のリソースプールから複数の仮想マシンを移行することである。例えば、レベル1の仮想マシン、すなわち、1つの物理的なコア計算リソースの100%を占有することの可能な仮想マシンが必要とされる。その後、レベル1のリソースプールにおいて、レベル1の仮想マシンを生成する必要がある。当業者は、仮想マシンを生成及び開始する複数の処理を理解及び認識し、そして従って、簡潔性のため、当該複数の処理は本明細書においては詳述されない。レベル1の複数の仮想マシンがレベル1のリソースプールに加えられた場合、加えられたレベル1の仮想マシンの数に従って、レベル1のリソースプールに割り当てられる必要のある第1の数の物理的なコアが決定され、そしてその後デフォルトリソースプールから第1の数の物理的なコアがレベル1のリソースプールに対して割り当てられる。特定のアプリケーションシナリオに従って、レベル1の仮想マシンの数を減らす必要がある場合、例えば、レベル1のリソースプールから第2の数のレベル1の仮想マシンを移行する必要がある場合、又は第2の数のレベル1の仮想マシンを停止する必要がある場合、レベル1のリソースプールから第2の数のレベル1の仮想マシンを移行する例を使用することにより、レベル1のリソースプールから第2の数のレベル1の仮想マシンを移行する一方で、レベル1のリソースプールから第2の数の物理的なコアを減算する必要がある、ということが決定される。次に、レベル1のリソースプールの中の第2の数の物理的コアが、デフォルトリソースプールに対して割り当てられる。このように、レベル1のリソースプールの中の仮想マシンの数の変化に従って、レベル1のリソースプールの中の割り当てられた複数の物理的コアの数が動的に調整され、かつデフォルトリソースプールの中の割り当てられた物理的なコアの数がそれに応じて調整される。   First, for example, when the system is powered on, all physical resources are assigned to the default resource pool because there are no virtual machines running in the advanced resource pool. In response to different application scenarios, multiple virtual machines are started and added to different resource pools or virtual machines that are migrated to different resource pools. The reverse process is to stop multiple virtual machines or migrate multiple virtual machines from multiple resource pools. For example, a level 1 virtual machine is needed, ie a virtual machine that can occupy 100% of one physical core computing resource. After that, it is necessary to create a level 1 virtual machine in the level 1 resource pool. Those skilled in the art understand and recognize the processes for creating and starting a virtual machine, and therefore, for the sake of brevity, the processes are not detailed herein. When multiple level 1 virtual machines are added to a level 1 resource pool, the first number of physical machines that need to be allocated to the level 1 resource pool according to the number of level 1 virtual machines added. A core is determined and then a first number of physical cores from the default resource pool is assigned to the level 1 resource pool. If there is a need to reduce the number of level 1 virtual machines according to a specific application scenario, for example, if a second number of level 1 virtual machines need to be migrated from a level 1 resource pool, or a second If there is a need to stop a number of level 1 virtual machines, a second number of level 1 virtual machines can be moved from the level 1 resource pool by using the example of migrating a second number of level 1 virtual machines. It is determined that while migrating a number of level 1 virtual machines, a second number of physical cores needs to be subtracted from the level 1 resource pool. Next, a second number of physical cores in the level 1 resource pool is allocated for the default resource pool. Thus, according to the change in the number of virtual machines in the level 1 resource pool, the number of allocated physical cores in the level 1 resource pool is dynamically adjusted, and the default resource pool The number of allocated physical cores in it is adjusted accordingly.

レベル2のリソースプールに対して、調整方法は同様である。相違は、物理的なコア計算リソースの50%が、レベル2のリソースプールの中のレベル2の仮想マシンに対して実際に割り当てられることである。   The adjustment method is the same for the level 2 resource pool. The difference is that 50% of the physical core computing resources are actually allocated to level 2 virtual machines in the level 2 resource pool.

本発明の実施例によると、可能な実施方法において、ステップ110の前に、方法はさらに:高度なリソースプールの中の仮想マシンの数が変化した後に、当該高度なリソースプールの中の物理的なリソースの数が当該高度なリソースプールの計算リソース要件を満たすのに、不十分であることを決定するステップを含む。例えば、1つのレベル1の仮想マシンが高度なリソースプールのレベル1のリソースプールに加えられた場合、レベル1のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースを必要とし、かつ排他的に占有することが可能であるため、レベル1のリソースプールは、レベル1のリソースプールの中の全ての仮想マシンの複数の計算リソース要件を満たすことができない。また、以下の場合が存在し得る。例えば、高度なリソースプールのレベル2のリソースプールの中に3つのレベル2の仮想マシンが存在し、かつ各レベル2の仮想マシンは、1つの物理的なコア計算リソースの50%を占有することが可能である。従って、レベル2のリソースプールにおいて、2つの物理的なコアを3つのレベル2の仮想マシンに対して割り当てる必要がある。しかしながら、物理的な複数のコア計算リソースが3つのレベル2の仮想マシンに対して割り当てられた後、1つの物理的なコア計算リソースの50%が残る。この場合において、レベル2の仮想マシン1つがレベル2のリソースプールに加えられる場合、レベル2のリソースプールが全てのレベル2の仮想マシンの複数の計算リソース要件を満足できないということは生じない。このように、レベル2のリソースプールの中の1つの物理的なコア計算リソースの残り50%は、新しく加えられた仮想マシンに対して割り当てられてもよい。この場合、デフォルトリソースプールからレベル2のリソースプールに対して、新たな物理的コアを割り当てることは不要である。   According to an embodiment of the invention, in a possible implementation, before step 110, the method further includes: after the number of virtual machines in the advanced resource pool has changed, the physical in the advanced resource pool Determining that the number of resources is insufficient to meet the computational resource requirements of the advanced resource pool. For example, if one level 1 virtual machine is added to a level 1 resource pool in an advanced resource pool, each virtual machine in the level 1 resource pool requires one physical core computing resource. And the level 1 resource pool cannot satisfy the multiple computational resource requirements of all virtual machines in the level 1 resource pool. There may also be the following cases: For example, there are three level 2 virtual machines in the level 2 resource pool of the advanced resource pool, and each level 2 virtual machine occupies 50% of one physical core computing resource Is possible. Therefore, in the level 2 resource pool, it is necessary to allocate two physical cores to the three level 2 virtual machines. However, after physical multiple core computing resources are allocated for three level 2 virtual machines, 50% of one physical core computing resource remains. In this case, if one level 2 virtual machine is added to the level 2 resource pool, it does not occur that the level 2 resource pool cannot satisfy the multiple computational resource requirements of all level 2 virtual machines. Thus, the remaining 50% of one physical core computing resource in the level 2 resource pool may be allocated for newly added virtual machines. In this case, it is not necessary to allocate a new physical core from the default resource pool to the level 2 resource pool.

本発明の実施例によると、可能な実施方法において、ステップ110の後で、当該方法はさらに:前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの中に、該高度なリソースプールの中の仮想マシンにサービスを提供しない1つ以上の使用されていない物理的なコア計算リソースが存在することを決定するステップ;を含み、ここで、「1つ以上の使用されていない物理的なコア計算リソース」は、異なる複数の物理的なコアに由来してもよく、すなわち、異なる複数の物理的なコアからの複数の計算リソースの合計は、1つの物理的なコア計算リソースと同じである。例えば、レベル1の仮想マシンの1つが高度なリソースプールのレベル1のリソースプールから移行された後、当該レベル1のリソースプールの中に1つの使用されない物理的なコア計算リソースが出現する。この場合において、物理的なコアの複数の計算リソースを効率的に使用可能とするために、1つの物理的なコアは、デフォルトリソースプールの中で実行される仮想マシンによる使用のために、レベル1のリソースプールからデフォルトリソースプールに対して割り当てられてもよい。   According to an embodiment of the present invention, in a possible implementation method, after step 110, the method further comprises: after the number of the virtual machines in the advanced resource pool has changed, in the advanced resource pool Determining that there are one or more unused physical core computing resources that do not service virtual machines in the advanced resource pool, where “one or more” 'Unused physical core computing resources' may come from different physical cores, ie the sum of multiple computing resources from different physical cores is one physical The same as a typical core computing resource. For example, after one of the level 1 virtual machines is migrated from the level 1 resource pool of the advanced resource pool, one unused physical core computing resource appears in the level 1 resource pool. In this case, in order to efficiently use multiple computing resources of a physical core, one physical core is leveled for use by virtual machines running in the default resource pool. One resource pool may be allocated to the default resource pool.

例えば、高度なリソースプールのレベル2のリソースプールからレベル2の仮想マシン1つが移行された後、レベル2のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースの50%を占有することが可能であるため、使用されない物理的なコア計算リソースが出現しない可能性がある。従って、1つ以上の使用されない物理的なコア計算リソースがレベル2のリソースプールに存在すると決定された場合にのみ、物理的なコアは、レベル2のリソースプールから戻って、デフォルトリソースプールに対して割り当てられ得る。   For example, after one level 2 virtual machine is migrated from a level 2 resource pool in an advanced resource pool, each virtual machine in the level 2 resource pool will receive 50% of one physical core computing resource. Since it can be occupied, there is a possibility that a physical core computing resource that is not used will not appear. Therefore, the physical core returns from the level 2 resource pool to the default resource pool only if it is determined that one or more unused physical core computing resources exist in the level 2 resource pool. Can be assigned.

前述のように、デフォルトリソースプールの中の複数のデフォルト仮想マシンは、デフォルトリソースプールの中の全ての物理的なコアの複数の計算リソースを共有する。本発明の実施例によると、特定の条件に従って、共有方法が決定されてもよい。第1の可能な実施方法において、複数のデフォルト仮想マシンは、デフォルトリソースプールの中の全ての物理的なコアの複数の計算リソースを均等に共有してもよい。第1の可能な実施方法に基づく改良された解決手段によると、デフォルトリソースプールの中の各デフォルト仮想マシンにより占有され得る物理的な複数のコア計算リソースの上限の割合が設定されてもよい。例えば、デフォルトリソースプールの中の各仮想マシンにより占有され得る物理的な複数のコア計算リソースの上限の割合は、1つの物理的なコア計算リソースの10%である。このように、支配的な仮想マシン、すなわち、多くの計算リソースを占有する仮想マシンのデフォルトリソースプールにおける出現が防止される。   As described above, a plurality of default virtual machines in the default resource pool share a plurality of computing resources of all physical cores in the default resource pool. According to an embodiment of the present invention, the sharing method may be determined according to specific conditions. In a first possible implementation, the multiple default virtual machines may equally share the multiple computational resources of all physical cores in the default resource pool. According to an improved solution based on the first possible implementation, an upper limit percentage of physical core computing resources that can be occupied by each default virtual machine in the default resource pool may be set. For example, the ratio of the upper limit of a plurality of physical core calculation resources that can be occupied by each virtual machine in the default resource pool is 10% of one physical core calculation resource. In this way, dominant virtual machines, that is, virtual machines that occupy many computing resources, are prevented from appearing in the default resource pool.

他の改善された解決手段によると、デフォルトリソースプールの中の複数の仮想マシンの計算性能を確かなものとするために、各仮想マシンにより占有され得る物理的な複数のコア計算リソースの下限の割合が設定されてもよい。例えば、デフォルトリソースプールの中の各仮想マシンにより占有され得る物理的な複数のコア計算リソースの下限の割合は、1つの物理的なコア計算リソースの5%である。各仮想マシンにより占有され得る物理的なコア計算リソースの上限の割合及び下限の割合が決定された後、ステップ110が実行される前に、当該方法100は:デフォルトリソースプールの中の仮想マシンの数及びデフォルトリソースプールの中の仮想マシンにより占有可能な物理的な複数のコア計算リソースの下限の割合に従って、デフォルトリソースプールが高度なリソースプールに割り当てられる十分なリソースを有することを決定するステップ;又はデフォルトリソースプールに仮想マシンが加えられた場合において、デフォルトリソースプールの容量の上限に達していない、すなわち、追加的な仮想マシンをさらに収容可能であることを決定するステップ;を含む。   According to another improved solution, to ensure the computational performance of multiple virtual machines in the default resource pool, the lower limit of the physical multiple core computational resources that can be occupied by each virtual machine. A ratio may be set. For example, the lower limit ratio of a plurality of physical core calculation resources that can be occupied by each virtual machine in the default resource pool is 5% of one physical core calculation resource. After the upper and lower percentages of physical core computing resources that can be occupied by each virtual machine are determined and before step 110 is performed, the method 100 includes: the virtual machines in the default resource pool: Determining that the default resource pool has sufficient resources to be allocated to the advanced resource pool according to the number and a lower percentage of physical core computing resources that can be occupied by virtual machines in the default resource pool; Or, when a virtual machine is added to the default resource pool, determining that the capacity limit of the default resource pool has not been reached, ie, that additional virtual machines can be accommodated further.

例えば、デフォルトリソースプールの中の各仮想マシンにより占有され得る物理的な複数のコア計算リソースの下限の割合は5%であり、かつデフォルトリソースプールの中の各仮想マシンにより占有され得る物理的な複数のコア計算リソースの上限の割合は10%であることが仮定される。この場合、デフォルトリソースプールは10の物理的なコアを含むことが仮定され、そしてその結果、デフォルトリソースプールにおいて、物理的な複数のコア計算リソースを最大200のデフォルト仮想マシンに対して提供することが可能であり、かつ物理的な複数のコア計算リソースを少なくとも100のデフォルト仮想マシンに対して提供することが可能である。デフォルトリソースプールの中で実行される仮想マシンの数は、185であると仮定される。1つのレベル1の仮想マシンを追加する必要がある場合、つまり、デフォルトリソースプールから高度なリソースプールのレベル1のリソースプールに対して、1つの物理的なコアを割り当てる必要がある場合、計算結果によると、レベル1のリソースプールに1つの物理的なコアが割り当てられた後、デフォルトリソースプールの中の残りの物理的な複数のコア計算リソースは、最大180のデフォルト仮想マシンに対して、物理的な複数のコア計算リソースを提供することが可能である。しかしながら、185のデフォルト仮想マシンは、現在デフォルトリソースプールの中において実行されている。この場合、当該方法100は:高度な仮想マシンを追加するための要求を拒否するステップを含む。この例において、レベル1の仮想マシンを追加することが拒否される。確かに、本発明の実施例の他の場合において、1つの物理的なコアが高度なリソースプールのレベル1のリソースプールに対して割り当てられてもよく、かつデフォルトリソースプールの中の各デフォルト仮想マシンにより占有される物理的な複数のコア計算リソースの下限が調整される、或いはデフォルトリソースプールの中の複数の仮想マシンの展開ポリシーに従って、デフォルトリソースプールの中の各デフォルト仮想マシンにより占有される物理的な複数のコア計算リソースの既存の下限を満たすために、対応するデフォルト仮想マシンが停止される。   For example, the lower limit ratio of the physical core calculation resources that can be occupied by each virtual machine in the default resource pool is 5%, and the physical that can be occupied by each virtual machine in the default resource pool It is assumed that the ratio of the upper limit of the plurality of core calculation resources is 10%. In this case, the default resource pool is assumed to contain 10 physical cores, and as a result, in the default resource pool, physical multiple core computing resources are provided for up to 200 default virtual machines. And multiple physical core computing resources can be provided for at least 100 default virtual machines. The number of virtual machines that run in the default resource pool is assumed to be 185. When one level 1 virtual machine needs to be added, that is, when one physical core needs to be allocated from the default resource pool to the level 1 resource pool of the advanced resource pool, the calculation result According to the above, after one physical core is assigned to a level 1 resource pool, the remaining physical core computing resources in the default resource pool are physically allocated to a maximum of 180 default virtual machines. Multiple core computing resources can be provided. However, 185 default virtual machines are currently running in the default resource pool. In this case, the method 100 includes: rejecting the request to add an advanced virtual machine. In this example, adding a level 1 virtual machine is refused. Indeed, in other cases of embodiments of the present invention, one physical core may be allocated for the level 1 resource pool of the advanced resource pool and each default virtual in the default resource pool The lower bound of the physical core computing resources occupied by the machine is adjusted or occupied by each default virtual machine in the default resource pool according to the deployment policy of the virtual machines in the default resource pool The corresponding default virtual machine is stopped to meet the existing lower bound of physical multiple core computing resources.

他の例として、デフォルトリソースプールの中の各仮想マシンにより占有され得る1つの物理的なコア計算リソースの下限の割合は5%であり、かつデフォルトリソースプールの中の各仮想マシンにより占有され得る1つの物理的なコア計算リソースの上限の割合は10%であることが仮定される。この場合、デフォルトリソースプールは10の物理的コアを含み、かつデフォルトリソースプールの中で実行される仮想マシンの数は185であることが仮定される。1つの仮想マシンをデフォルトリソースプールに加える必要がある場合、すなわち、1つのデフォルト仮想マシンを加える必要がある場合、計算結果によると、デフォルトリソースプールの容量は、さらに3つのデフォルト仮想マシンを収容することが可能であり、そして従って、デフォルトリソースプールに1つの仮想マシンを追加することが可能となる。   As another example, the lower percentage of one physical core computing resource that can be occupied by each virtual machine in the default resource pool is 5% and can be occupied by each virtual machine in the default resource pool It is assumed that the ratio of the upper limit of one physical core calculation resource is 10%. In this case, it is assumed that the default resource pool contains 10 physical cores and the number of virtual machines running in the default resource pool is 185. If one virtual machine needs to be added to the default resource pool, i.e. one default virtual machine needs to be added, the calculation results show that the capacity of the default resource pool accommodates three more default virtual machines And thus it is possible to add one virtual machine to the default resource pool.

他の可能な実施方法において、デフォルトリソースプールの中のデフォルト仮想マシンに対して、さらに、優先順位を設定してもよい。デフォルトリソースプールの中の物理的な複数のコア計算リソースは、優先的に、高い優先順位のデフォルトの仮想マシンの要件を満たす。各デフォルト仮想マシンにより占有され得る物理的な複数のコア計算リソースの上限の割合及び上限が設定されているので、優先順位の高いデフォルトの仮想マシンは、優先順位の低いデフォルト仮想マシンへの計算リソースの割り当ての失敗の原因となる「優越的な仮想マシン」となることはない。   In other possible implementations, priorities may be further set for the default virtual machines in the default resource pool. The multiple physical core computing resources in the default resource pool preferentially meet the requirements of a high priority default virtual machine. Since the upper limit ratio and upper limit of the physical multiple core computing resources that can be occupied by each default virtual machine are set, the default virtual machine with higher priority is the computing resource to the default virtual machine with lower priority It will not be a “superior virtual machine” that will cause the allocation failure.

以下、本発明の実施例の実施過程を完全に説明するために、レベル2のリソースプールに仮想マシンを追加する具体的な処理の例を使用する。図2は、本発明の実施例に従う、仮想マシンの移入(migration−in)処理の具体的な例のフローチャートである。図2に示されるように、仮想マシンをレベル2のリソースプールに追加する処理200は、以下の複数のステップを含む:
210.ユーザは仮想マシン1のレベル2のリソースプールへの移行を要求する。
Hereinafter, in order to fully describe the implementation process of the embodiment of the present invention, a specific example of processing for adding a virtual machine to a level 2 resource pool will be used. FIG. 2 is a flowchart of a specific example of virtual machine migration-in processing according to an embodiment of the present invention. As shown in FIG. 2, the process 200 of adding a virtual machine to a level 2 resource pool includes the following steps:
210. The user requests the migration of the virtual machine 1 to the level 2 resource pool.

220.システムは、物理的な複数のコア計算リソースが十分であるかどうかを決定する。   220. The system determines whether physical core computing resources are sufficient.

すなわち、デフォルトリソースプールの中のレベル1のリソースプールの中の仮想マシンの数及びレベル2のリソースプールの中の仮想マシンの数デフォルトリソースプールの中の仮想マシンの数、及びデフォルトリソースプールの中の各仮想マシンに割り当てられる計算リソースの下限の割合に従って、システムは、レベル2のリソースプールに割り当てられる十分な計算リソースがあるかどうかを決定し、ここで、レベル1のリソースプール及びレベル2のリソースプールは現在の高度なリソースプールに含まれる。この例において、物理的なコアは、レベル2のコアリソースプールに移行されてもよいため、システムは、デフォルトリソースプールの中の1つ以上の物理的なコアをレベル2のリソースプールに割り当てることができると決定する必要がある。物理的な複数のコアリソースが十分な場合、手順はステップ230に進む;そして、物理的な複数のコアリソースが不十分な場合、手順はステップ270にスキップする。   That is, the number of virtual machines in the level 1 resource pool and the number of virtual machines in the level 2 resource pool in the default resource pool, the number of virtual machines in the default resource pool, and the default resource pool According to the lower percentage of the computational resources allocated to each virtual machine, the system determines whether there are sufficient computational resources allocated to the level 2 resource pool, where the level 1 resource pool and the level 2 resource pool The resource pool is included in the current advanced resource pool. In this example, the physical core may be migrated to a level 2 core resource pool, so the system assigns one or more physical cores in the default resource pool to the level 2 resource pool. Needs to be determined. If the physical core resources are sufficient, the procedure proceeds to step 230; and if the physical core resources are insufficient, the procedure skips to step 270.

230.物理的な複数のコア計算リソースが十分である場合、仮想マシン1がレベル2のリソースプールに移行した後に、システムは、新しい物理的なコアをレベル2のリソースプールに対して割り当てる必要があるかどうか決定する。   230. If the physical multiple core computing resources are sufficient, should the system need to allocate a new physical core to the level 2 resource pool after virtual machine 1 has migrated to the level 2 resource pool? Please decide.

レベル2のリソースプールにおける各仮想マシンは、1つの物理的な計算リソースの50%を占有することが可能である。従って、仮想マシン1がレベル2のリソースプールに移行する前に、レベル2のリソースプールの中の仮想マシンの数が奇数である場合、1つの物理的なコアの計算リソースの50%は、レベル2のリソースプールの中で割り当てられないままとなる。この場合、レベル2のリソースプールに新しい物理的なコアを割り当てることは不要である。これに反して、仮想マシン1がレベル2のリソースプールに移行する前に、レベル2のリソースプールの中の仮想マシンの数が偶数である場合、仮想マシン1が計算リソースを提供されるようにするために、デフォルトリソースプールからレベル2のリソースプールに対して、物理的なコアを割り当てる必要がある。   Each virtual machine in a level 2 resource pool can occupy 50% of one physical computational resource. Therefore, if the number of virtual machines in the level 2 resource pool is an odd number before the virtual machine 1 moves to the level 2 resource pool, 50% of the computational resources of one physical core The two resource pools remain unallocated. In this case, it is not necessary to allocate a new physical core to the level 2 resource pool. On the other hand, if the number of virtual machines in the level 2 resource pool is an even number before the virtual machine 1 moves to the level 2 resource pool, the virtual machine 1 is provided with computing resources. Therefore, it is necessary to allocate a physical core from the default resource pool to the level 2 resource pool.

240.レベル2のリソースプールに対して新しい物理的なコアを割り当てる必要がある場合、仮想マシン1をレベル2のリソースプールに移行し、かつ1つの物理的なコア計算リソースの残りの50%を仮想マシン1に割り当てる。   240. When a new physical core needs to be allocated to a level 2 resource pool, virtual machine 1 is migrated to a level 2 resource pool and the remaining 50% of one physical core computing resource is virtual machine Assign to 1.

250.レベル2のリソースプールに対して新しい物理的コアを割り当てる必要がある場合、デフォルトリソースプールからレベル2のリソースプールに対して、新しい物理的コアを割り当て、仮想マシン1をレベル2のリソースプールに移行し、そして仮想マシン1に対して1つの物理的計算リソースの残りの50%を与える。   250. If a new physical core needs to be allocated to the level 2 resource pool, a new physical core is allocated from the default resource pool to the level 2 resource pool, and virtual machine 1 is migrated to the level 2 resource pool And give the virtual machine 1 the remaining 50% of one physical computing resource.

260.これに対応して、デフォルトリソースプールは、当該デフォルトリソースプールの中の複数の仮想マシンの間で、物理的な複数のコア計算リソースの割り当てを調整する。   260. Correspondingly, the default resource pool adjusts the allocation of a plurality of physical core calculation resources among a plurality of virtual machines in the default resource pool.

前述の内容によると、デフォルトリソースプールの中の物理的な複数のコア計算リソースの調整方法は、デフォルトリソースプールの特定の複数の設定と共に、変化する。例えば、デフォルトリソースプールの中の複数の仮想マシンが均等に物理的な複数のコアの複数の計算リソースを共有する場合、物理的なコアが減算されるため、デフォルトリソースプールの中の各仮想マシンに実際に割り当てられる物理的なコアの複数の計算リソースは、それに応じて減少する。   According to the foregoing, the method of adjusting the physical core computing resources in the default resource pool varies with the specific settings of the default resource pool. For example, if multiple virtual machines in the default resource pool share multiple compute resources with multiple physical cores equally, each virtual machine in the default resource pool is subtracted because the physical core is subtracted. The number of physical core computing resources that are actually allocated to the resource is reduced accordingly.

270.仮想マシン1は、レベル2のリソースプールに移行することは許可されない。   270. The virtual machine 1 is not allowed to migrate to the level 2 resource pool.

この場合、システムにおける物理的な複数のコア計算リソースが不十分であるため、レベル2のリソースプールに仮想マシン1が移行することは許可されないことを示すメッセージを使用することにより、通知がユーザに送られてもよい。   In this case, the notification is given to the user by using a message indicating that the virtual machine 1 is not allowed to migrate to the level 2 resource pool due to insufficient physical core computing resources in the system. May be sent.

仮想マシンをレベル1のリソースプール又はデフォルトリソースプールに移行する手順は、図2に示される手順と同様である。   The procedure for migrating a virtual machine to the level 1 resource pool or the default resource pool is the same as the procedure shown in FIG.

図2に示される手順に対応して、図3は、仮想マシンをレベル2のリソースプールから移出する手順である。図3に示されるように、手順300は、以下の複数のステップを含む:
310.ユーザは、レベル2のリソースプールからの仮想マシン2の移出を要求する。
Corresponding to the procedure shown in FIG. 2, FIG. 3 is a procedure for exporting a virtual machine from a level 2 resource pool. As shown in FIG. 3, the procedure 300 includes the following steps:
310. The user requests the virtual machine 2 to be exported from the level 2 resource pool.

320.システムは、仮想マシン2がレベル2のリソースプールから移出された後、レベル2のリソースプールの中の物理的なコアの数を減らす必要があるかどうかを決定する。   320. The system determines if the number of physical cores in the level 2 resource pool needs to be reduced after the virtual machine 2 is exported from the level 2 resource pool.

レベル2のリソースプールの中の各仮想マシンは、1つの物理的コア計算リソースの50%を占有することが可能である。従って、仮想マシン2がレベル2のリソースプールから移行される前に、レベル2のリソースプールの中の仮想マシンの数が奇数である場合、物理的なコア計算リソースの50%は、レベル2リソースプールの中で割り当てられないままとなる。この場合、仮想マシン2がレベル2のリソースプールから移行された後、1つの物理的コア計算リソースは使用されておらず、そして1つの物理的なコアをレベル2のリソースプールから減算する必要がある。これに反して、仮想マシン2がレベル2のリソースプールから移行される前に、レベル2のリソースプール内の仮想マシンの数が偶数である場合、レベル2のリソースプール内の物理的なコアの数は、減らすことができない。   Each virtual machine in a level 2 resource pool can occupy 50% of one physical core computing resource. Therefore, if the number of virtual machines in the level 2 resource pool is an odd number before the virtual machine 2 is migrated from the level 2 resource pool, 50% of the physical core computing resources are level 2 resources. It remains unallocated in the pool. In this case, after the virtual machine 2 is migrated from the level 2 resource pool, one physical core computing resource is not used, and one physical core needs to be subtracted from the level 2 resource pool. is there. On the other hand, if the number of virtual machines in the level 2 resource pool is an even number before the virtual machine 2 is migrated from the level 2 resource pool, the physical cores in the level 2 resource pool The number cannot be reduced.

330.レベル2のリソースプールの中の物理的なコアの数を減らす必要がある場合、すなわち、レベル2のリソースプールの中の既存の仮想マシンの数が奇数である場合、レベル2のリソースプールの中の1つの物理的なコア計算リソースの50%は、割り当てられないままとなる。この場合、仮想マシン2がレベル2のリソースプールから移行された後、1つの物理的なコア計算リソースは不稼働となり、かつ1つの物理的コアがデフォルトリソースプールに割り当てられ、そして手順はステップ350にスキップする。   330. If it is necessary to reduce the number of physical cores in the level 2 resource pool, that is, if the number of existing virtual machines in the level 2 resource pool is an odd number, 50% of the one physical core computing resource of this will remain unallocated. In this case, after the virtual machine 2 is migrated from the level 2 resource pool, one physical core computing resource becomes inactive and one physical core is assigned to the default resource pool, and the procedure is step 350. Skip to.

340.レベル2のリソースプールの中の物理的なコアの数を減らす必要がある場合、仮想マシン2がレベル2のリソースプールから移行される。   340. When the number of physical cores in the level 2 resource pool needs to be reduced, the virtual machine 2 is migrated from the level 2 resource pool.

350.デフォルトリソースプールは、それに応じて、デフォルトリソースプール内の複数の仮想マシンの物理的な複数のコア計算リソースの割り当てを調整する。   350. The default resource pool accordingly adjusts the allocation of physical core computing resources of the virtual machines in the default resource pool.

本発明の実施例において、レベル2のリソースプールの中の全ての仮想マシンが移出(migrate out)される場合、レベル2のリソースプールの中の全ての物理的なコアは、デフォルトリソースプールに割り当てられる。   In an embodiment of the present invention, when all virtual machines in a level 2 resource pool are migrated out, all physical cores in the level 2 resource pool are assigned to the default resource pool. It is done.

前述の実施例では、高度なリソースプールがレベル1リソースプール及びレベル2リソースプールを含む例を使用している。実際のアプリケーションのシナリオに応じて、高度なリソースプールは、レベル1リソースプール及びレベル2リソースプール等のサブリソースプールを含まなくてもよい。実際のアプリケーションのシナリオに応じて、高度なリソースプールは、レベル1リソースプール及びレベル2リソースプールを含んでもよいだけでなく、実際のアプリケーションに応じて各リソースプールのサービスレベルを設定してもよい。   The above embodiment uses an example in which the advanced resource pool includes a level 1 resource pool and a level 2 resource pool. Depending on the actual application scenario, the advanced resource pool may not include sub-resource pools such as level 1 resource pool and level 2 resource pool. Depending on the scenario of the actual application, the advanced resource pool may not only include the level 1 resource pool and the level 2 resource pool, but may also set the service level of each resource pool according to the actual application. .

前述の内容によれば、デフォルトリソースプールの中の物理的な複数のコア計算リソースは、デフォルトリソースプールの特定の設定と共に変化する。例えば、デフォルトリソースプールの中の複数の仮想マシンがデフォルトリソースプールの中の物理的な複数のコアの複数の計算リソースを均等に共有する場合、1つの物理的なコアが加えられるので、物理的な複数のコア計算リソースを充分に使用するために、デフォルトリソースプールの中の各仮想マシンに対して割り当てられる物理的なコア計算リソースは、それに応じて増やされる。   In accordance with the foregoing, the physical core computing resources in the default resource pool will vary with the specific settings of the default resource pool. For example, if multiple virtual machines in the default resource pool share multiple computational resources of the physical cores in the default resource pool equally, one physical core is added, so In order to fully use the multiple core computing resources, the physical core computing resources allocated to each virtual machine in the default resource pool are increased accordingly.

図4は、本発明の実施例に従う、特定のアプリケーションシナリオのシグナリングインターワーキング(signaling interworking)の図である。図4に示されるアプリケーションのシナリオにおいて説明されるように、仮想マシンは、ソース計算ノードから宛先計算ノードに移行する。図1、図2、及び図3に示される本発明の実施例における方法は、図4に示されるアプリケーションのシナリオに適用可能であってもよい。   FIG. 4 is a diagram of signaling interworking for a particular application scenario, in accordance with an embodiment of the present invention. As described in the application scenario shown in FIG. 4, the virtual machine migrates from the source compute node to the destination compute node. The method in the embodiment of the present invention shown in FIGS. 1, 2 and 3 may be applicable to the application scenario shown in FIG.

図4に示されるように、移行処理400は、以下の複数のステップを含む:
410.ユーザは、ソース計算ノードから宛先計算ノードへの仮想マシン3の移行を要求する仮想マシン移行要求をクラスタ制御部に送信する。
As shown in FIG. 4, the migration process 400 includes the following steps:
410. The user transmits a virtual machine migration request for requesting migration of the virtual machine 3 from the source computation node to the destination computation node to the cluster control unit.

420.クラスタ制御部は、ユーザが送信した仮想マシン移行要求を受信し、そして対応する処理を実行する。   420. The cluster control unit receives the virtual machine migration request transmitted by the user and executes the corresponding processing.

クラスタ制御部は、例えば、割り当てられた複数のリソースを先に占有する等、従来の仮想マシンスケジューリング手順に従って、対応する処理を実行してもよい。   The cluster control unit may execute a corresponding process according to a conventional virtual machine scheduling procedure, for example, occupying a plurality of allocated resources first.

430.クラスタ制御部は、仮想マシン3をソース計算ノードから移出(migrate out)するために、ソース計算ノードにスケジューリング要求を送信する。   430. The cluster control unit transmits a scheduling request to the source computation node in order to migrate out the virtual machine 3 from the source computation node.

440.仮想マシン3は、ソース計算ノードから移出する。   440. The virtual machine 3 is exported from the source calculation node.

ソース計算ノードにおいて、例えば、図3に示される仮想マシンの移出手順(migration−out procedure)が実行される。   In the source computation node, for example, the migration-out procedure of the virtual machine shown in FIG. 3 is executed.

450.ソース計算ノードは、物理的な複数のコア計算リソースの動的な調整を実行する。   450. The source compute node performs dynamic coordination of physical core computation resources.

460.仮想マシン3は、宛先計算ノードに移転する。   460. The virtual machine 3 moves to the destination calculation node.

宛先計算ノードにおいて、例えば、図2に示される仮想マシン移入手順(migration−in procedure)が実行される。   In the destination calculation node, for example, a migration-in procedure shown in FIG. 2 is executed.

470.宛先計算ノードは、物理的な複数のコア計算リソースの動的な調整を実行する。   470. The destination compute node performs dynamic coordination of multiple physical core compute resources.

480.ソース計算ノードは、移出成功又は失敗のメッセージをクラスタ制御部に返す。   480. The source compute node returns a message indicating success or failure of export to the cluster control unit.

490.クラスタ制御部は、ソース計算ノードから宛先計算ノードへの仮想マシン3の移転の結果をユーザに通知する。   490. The cluster control unit notifies the user of the result of the transfer of the virtual machine 3 from the source calculation node to the destination calculation node.

本発明の実施例によると、物理的な複数のコアは、異なる複数のリソースプールに分割され、そして1つのリソースプールの中の物理的な複数のコアの複数の計算リソースは、他のリソースプールの中のそれらから分離され、これにより、異なる複数のアプリケーションシナリオに対して物理的な複数のコア計算リソースの効果的な割り当てを実現し、多くの計算リソースを占有する優越的な仮想マシンの出現を避け、物理的な複数のコア計算リソースの不均衡な割り当てを防止し、かつ物理的な複数のコアの複数の計算リソースの使用効率を向上させることができる。   According to an embodiment of the present invention, the physical cores are divided into different resource pools, and the computing resources of the physical cores in one resource pool are the other resource pools. The emergence of superior virtual machines that occupy many computational resources, enabling effective allocation of multiple physical core computational resources for different application scenarios Avoiding unbalanced allocation of physical core computing resources, and improving the usage efficiency of physical computing resources of physical cores.

本発明の実施例における方法は、異なる複数のクラウドコンピューティングビジネスモデルに適用可能である。例えば、インターネットデータセンタ(Internet Data Center、IDCと略す)ビジネスモデルにおいて、仮想マシンが常に1つの物理的なコア計算リソースを排他的に占有し、かつ計算リソースが他のユーザにより占有されないようにするために、レベル1のリソースプールの中に置かれる仮想マシンは、ユーザに対して提供されてもよく、これにより、安定した計算能力をユーザに提供する。例えば、サービスプライベートクラウド(Service Private Cloud、SPCと略す)ビジネスモデルにおいて、ユーザに対して提供される仮想マシンは、高性能及びサービス安定性を持つことだけでなく、ある程度のCPUリソース再利用が要求される。従って、レベル1のリソースプール及びレベル2のリソースプール双方における複数の仮想マシンは、そのようなシナリオにおけるアプリケーションを満たす。例えば、仮想デスクトップインフラストラクチャ(Virtual Desktop Infrastructure、VDIと略す)ビジネスモデルにおいて、ユーザは、仮想マシンの高い価格/性能比及び複数のリソースの再利用性を要求する。この場合、仮想マシンは、高い稼働/非稼働率を有し、かつデフォルトリソースプールの中の複数の仮想マシンは、このシナリオに適している。   The method in the embodiment of the present invention can be applied to different cloud computing business models. For example, in an Internet data center (abbreviated as IDC) business model, a virtual machine always occupies one physical core computing resource exclusively and prevents the computing resource from being occupied by other users. Therefore, a virtual machine placed in a level 1 resource pool may be provided to the user, thereby providing the user with stable computing power. For example, in a service private cloud (Service Private Cloud, abbreviated as SPC) business model, a virtual machine provided to a user not only has high performance and service stability, but also requires a certain amount of CPU resource reuse. Is done. Thus, multiple virtual machines in both the level 1 resource pool and the level 2 resource pool satisfy the application in such a scenario. For example, in a virtual desktop infrastructure (abbreviated as VDI) business model, a user demands a high price / performance ratio of a virtual machine and reusability of multiple resources. In this case, the virtual machine has a high operation / non-operation rate, and a plurality of virtual machines in the default resource pool are suitable for this scenario.

本発明の実施例は、さらに、本発明の実施例における方法を適用可能な計算ノードを提案する。図5に示されるように、計算ノード500は:高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的コアの数を動的に調整し、かつ前記高度なリソースプールの中の前記割り当てられた物理的コアの数に従って、デフォルトリソースプールの中の割り当てられた物理的コアの数を調整するように構成されるリソース調整部510;及び中央処理装置の複数の物理的コアを、前記デフォルトリソースプール及び前記高度なリソースプールに、該複数のリソースプールの複数のサービスレベルに従って分割するように構成されるリソース割当部520;を含む。   The embodiment of the present invention further proposes a computation node to which the method in the embodiment of the present invention can be applied. As shown in FIG. 5, compute node 500: dynamically adjusts the number of allocated physical cores in the advanced resource pool according to changes in the number of virtual machines in the advanced resource pool. And a resource adjustment unit 510 configured to adjust the number of assigned physical cores in the default resource pool according to the number of assigned physical cores in the advanced resource pool; and a central A resource allocation unit 520 configured to divide a plurality of physical cores of the processing device into the default resource pool and the advanced resource pool according to a plurality of service levels of the plurality of resource pools.

本発明の実施例において、各リソースプールは当該リソースプールにおいて実行される複数の仮想マシンに対してサービスを提供する。適切な場合には、本発明のこの実施例に従う計算ノードは、本発明の方法の実施例における他の複数の技術的特徴を有してもよい。以下、これを説明するために複数の例を使用する。   In the embodiment of the present invention, each resource pool provides a service to a plurality of virtual machines executed in the resource pool. Where appropriate, a compute node according to this embodiment of the invention may have other technical features in the method embodiment of the invention. Hereinafter, a plurality of examples will be used to explain this.

本発明の実施例によると、サービスレベルは、各仮想マシンにより占有可能な物理的な複数のコア計算リソースの数を含む。   According to an embodiment of the present invention, the service level includes the number of physical core computing resources that can be occupied by each virtual machine.

本発明の実施例によると、リソース割当部は、デフォルトリソースプールの中の全ての物理的なコアの複数の計算リソースを共有するために、デフォルトリソースプールの中の複数の仮想マシンをスケジュールするように構成される。   According to an embodiment of the present invention, the resource allocation unit schedules a plurality of virtual machines in the default resource pool to share a plurality of calculation resources of all physical cores in the default resource pool. Configured.

本発明の実施例によると、高度なリソースプールはレベル1のリソースプールを含み、ここでレベル1のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースを排他的に占有することが可能である。   According to an embodiment of the present invention, the advanced resource pool includes a level 1 resource pool, where each virtual machine in the level 1 resource pool exclusively occupies one physical core computing resource. It is possible.

本発明の実施例によると、高度なリソースプールはレベル2のリソースプールを含み、ここでレベル2のリソースプールの中の各仮想マシンは、1つの物理的な計算リソースの50%を占有することが可能である。   According to an embodiment of the present invention, the advanced resource pool includes a level 2 resource pool, where each virtual machine in the level 2 resource pool occupies 50% of one physical computational resource. Is possible.

本発明の実施例によると、高度なリソースプールの中の仮想マシンの数が増加した場合、前記リソース調整部510は、増加した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールに割り当てられる必要のある物理的コアの第1の数を決定し、かつ前記デフォルトリソースプールから前記高度なリソースプールに対して前記第1の数の物理的コアを割り当てる;又は前記高度なリソースプールの中の前記仮想マシンの前記数が減少した場合に、前記リソース調整部510は、前記減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的コアの第2の数を決定し、かつ前記高度なリソースプールから前記デフォルトリソースプールに対して、前記第2の数の物理的コアを割り当てる。   According to an embodiment of the present invention, when the number of virtual machines in the advanced resource pool increases, the resource adjustment unit 510 determines the advanced level according to the increased number of virtual machines and the service level of the advanced resource pool. Determining a first number of physical cores that need to be allocated to a particular resource pool and allocating the first number of physical cores from the default resource pool to the advanced resource pool; or When the number of the virtual machines in the resource pool decreases, the resource adjustment unit 510 subtracts from the advanced resource pool according to the reduced number of virtual machines and the service level of the advanced resource pool. Determining a second number of physical cores that need to be performed and from the advanced resource pool Against O belt resource pool, allocating the second number of physical core.

本発明の実施例によると、高度なリソースプールにおいて仮想マシンが実行されていない場合に、リソース調整部は、高度なリソースプールの中の物理的な複数のコアをデフォルトリソースプールに割り当てるように構成される。   According to an embodiment of the present invention, when a virtual machine is not running in the advanced resource pool, the resource adjustment unit is configured to allocate a plurality of physical cores in the advanced resource pool to the default resource pool. Is done.

図6に示されるように、本発明の実施例によると、前記計算ノードは:前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの前記サービスレベルを満たすためには、前記高度なリソースプールの中の前記物理的コアの数が不十分であると決定するように構成される第1決定部530;をさらに備える。   As shown in FIG. 6, according to an embodiment of the present invention, the computing node: satisfies the service level of the advanced resource pool after the number of the virtual machines in the advanced resource pool has changed For this purpose, further comprising: a first determination unit 530 configured to determine that the number of the physical cores in the advanced resource pool is insufficient.

本発明の実施例によると、前記第1の決定部530は、さらに、前記高度なリソースプールの中の前記仮想マシンの数が変化した場合、前記高度なリソースプールの中に、該高度なリソースプールの中の仮想マシンにサービスを提供しない1つ以上の使用されていない物理的なコア計算リソースが存在することを決定するように構成される。   According to an embodiment of the present invention, when the number of the virtual machines in the advanced resource pool is changed, the first determination unit 530 further includes the advanced resource in the advanced resource pool. It is configured to determine that there are one or more unused physical core computing resources that do not service virtual machines in the pool.

本発明の実施例によると、リソース割当部520は、各仮想マシンにより占有可能な物理的な複数の計算リソースの事前に定められた割合に従って、デフォルトリソースプールの中の全ての物理的なコアの複数の計算リソースを共有するために、デフォルトリソースプールの中の複数の仮想マシンをスケジュールするように構成される。   According to an embodiment of the present invention, the resource allocator 520 determines all physical cores in the default resource pool according to a predetermined ratio of a plurality of physical calculation resources that can be occupied by each virtual machine. Configured to schedule a plurality of virtual machines in the default resource pool to share a plurality of computing resources.

本発明の実施例によると、リソース調整部510は、デフォルトリソースプールの中の物理的なコアの数及び各仮想マシンにより占有可能な物理的な複数のコア計算リソースの事前に定められた割合に従って、デフォルトリソースプールにより収容可能な仮想マシンの数を決定するように構成される。   According to an embodiment of the present invention, the resource adjustment unit 510 may be configured according to the number of physical cores in the default resource pool and a predetermined ratio of physical multiple core computing resources that can be occupied by each virtual machine. , Configured to determine the number of virtual machines that can be accommodated by the default resource pool.

本発明の実施例によると、リソース割当部520は、デフォルトリソースプールの中の全ての物理的なコアの複数の計算リソースを均等に共有するよために、デフォルトリソースプールの中の複数の仮想マシンをスケジュールするように構成される。   According to the embodiment of the present invention, the resource allocation unit 520 shares a plurality of virtual machines in the default resource pool in order to evenly share a plurality of calculation resources of all physical cores in the default resource pool. Configured to schedule.

本発明の実施例によると、リソース割当部520は、デフォルトリソースプールの中の各仮想マシンに対して、各仮想マシンにより占有可能な物理的な複数のコア計算リソースの上限割合及び/又は下限割合を設定するように構成される。   According to the embodiment of the present invention, the resource allocating unit 520 is configured such that the upper limit ratio and / or the lower limit ratio of a plurality of physical core calculation resources that can be occupied by each virtual machine for each virtual machine in the default resource pool. Configured to set.

本発明の実施例によると、リソース割当部520は、デフォルトリソースプールの中の複数の仮想マシンに対して、物理的な複数のコア計算リソースの使用における各仮想マシンの優先順位を設定し、かつ優先順位の高い順に、デフォルトリソースプールの中の複数の仮想マシンに対して、物理的な複数のコア計算リソースを割り当てるように構成される。   According to the embodiment of the present invention, the resource allocation unit 520 sets the priority order of each virtual machine in the use of the plurality of physical core calculation resources for the plurality of virtual machines in the default resource pool, and A plurality of physical core computing resources are allocated to a plurality of virtual machines in the default resource pool in descending order of priority.

図7は、本発明の実施例に従う計算ノードの他の概略構成図である。図7に示されるように、計算ノード700は、CPU等の1つ以上のプロセッサ710、1つ以上のポート720、メモリ730、及び1つ以上の通信バス740を備える。通信バス740は、これらの装置の間の接続及び通信を実行するように構成される。プロセッサ710は、コンピュータプログラムなどの、メモリ730に記憶される実行可能モジュールを実行するように構成される。選択的に、通信ノードは、ディスプレイ、キーボード、マウス等のクリック装置、トラックボール(trackball)、タッチパッド又はタッチスクリーンを含むがそれには限定されない、ユーザインターフェース750を備える。メモリ730は、高速RAMメモリを含んでもよく、かつ1つ以上の磁気ディスクメモリなどの不揮発性メモリ(non−volatile memory)を含んでもよい。計算ノードとクラスタ制御部との間の通信接続は、1つ以上のポート720を使用することにより実現されてもよく、かつ計算ノードと1つ以上の他の計算ノードとの間の通信接続は、当該1つ以上のポート720を使用することにより実現されてもよい。   FIG. 7 is another schematic configuration diagram of a computation node according to an embodiment of the present invention. As shown in FIG. 7, the computing node 700 includes one or more processors 710 such as a CPU, one or more ports 720, a memory 730, and one or more communication buses 740. The communication bus 740 is configured to perform connection and communication between these devices. The processor 710 is configured to execute executable modules stored in the memory 730, such as a computer program. Optionally, the communication node comprises a user interface 750 that includes, but is not limited to, a display, a click device such as a keyboard, a mouse, a trackball, a touchpad or a touch screen. The memory 730 may include a high-speed RAM memory and may include a non-volatile memory such as one or more magnetic disk memories. The communication connection between the compute node and the cluster controller may be realized by using one or more ports 720, and the communication connection between the compute node and one or more other compute nodes is , May be implemented by using the one or more ports 720.

いくつかの実施方法において、メモリ730は、以下の要素、実行可能モジュール又はデータ構造、又はそれらのサブセット、又はそれらの拡張セットを記憶する:各種基本サービスを実行し、かつハードウェアベースの複数のタスクを処理するように構成される、各種システムプログラムを含むオペレーティングシステム732;及び各種アプリケーションサービスを実行するように構成される、各種アプリケーションを含むアプリケーションモジュール734。   In some implementations, the memory 730 stores the following elements, executable modules or data structures, or subsets thereof, or extensions thereof: various basic services and hardware-based multiples An operating system 732 including various system programs configured to process tasks; and an application module 734 including various applications configured to execute various application services.

アプリケーションモジュール734は、リソース調整部(510)、リソース割当部(520)、及び第1決定部(530)を含むが、それには限定されない。   The application module 734 includes, but is not limited to, a resource adjustment unit (510), a resource allocation unit (520), and a first determination unit (530).

アプリケーションモジュール734の中の複数のユニットの具体的な実行について、図5及び図6に示される複数の実施例の対応する複数のユニットを参照してもよく、詳細はここでは改めて説明しない。   For specific execution of the units in the application module 734, reference may be made to the corresponding units of the embodiments shown in FIGS. 5 and 6, and details are not described herein again.

本明細書において開示される複数の実施例を参照して説明される例示的なユニット及びアルゴリズムのステップは、電子的なハードウェア又はコンピュータソフトウェア及び電子的なハードウェアの組み合わせによって実施されてもよい、ということを当業者は認識することができる。複数の機能がハードウェアにより実行されるか又はソフトウェアにより実行されるかについては、特定の複数のアプリケーション及び技術的な複数の解決手段の複数の設計制約条件に依存する。当業者は、各特定のアプリケーションに対する説明された複数の機能を実行するために、異なる複数の方法を使用することができるが、しかしそのような実装は、本発明の範囲を超えていると見なすべきではない。   The example units and algorithm steps described with reference to the embodiments disclosed herein may be implemented by electronic hardware or a combination of computer software and electronic hardware. Can be recognized by those skilled in the art. Whether a plurality of functions are executed by hardware or software depends on a plurality of specific applications and a plurality of design constraints of technical solutions. Those skilled in the art can use different methods to perform the described functions for each particular application, but such implementations are considered beyond the scope of the present invention. Should not.

便宜的かつ簡単な説明を目的として、前述のシステム、装置、及びユニットの詳細な動作処理については、前述の複数の方法の実施例における対応する処理を参照することが可能であり、その詳細はここでは改めて説明しない、ということが当業者により明確に理解できる。   For the sake of convenience and simple explanation, for the detailed operation processing of the aforementioned system, apparatus, and unit, it is possible to refer to the corresponding processing in the embodiments of the above-mentioned plurality of methods. It will be clearly understood by those skilled in the art that it will not be described again here.

本出願において提供されるいくつかの実施例において、開示されるシステム、装置、及び方法は、他の複数の方法において実施されてもよい、ということが理解されるべきである。例えば、説明される方法の実施例は、単なる例示である。例えば、複数のユニットの分割は、複数の論理的機能の単なる分割であり、そして実際の実装において、他の複数の分割が存在してもよい。例えば、複数のユニット又は構成要素は、結合されてもよく、或いは他のシステムに統合されてもよく、又はいくつかの機能は省略されてもよく、或いは実行されなくてもよい。また、示される又は論じられる複数の相互結合又は直接結合又は通信接続は、いくつかのインターフェースを介して実装されてもよい。複数の装置又は複数のユニットの間の複数の間接結合又は複数の通信接続は、電気的、機械的、又は他の複数の形態で実施されてもよい。   It should be understood that in some examples provided in this application, the disclosed systems, devices, and methods may be implemented in other ways. For example, the described method embodiment is merely exemplary. For example, the division of a plurality of units is merely a division of a plurality of logical functions, and there may be other divisions in an actual implementation. For example, multiple units or components may be combined or integrated into other systems, or some functions may be omitted or not performed. Also, multiple interconnected or direct connections or communication connections shown or discussed may be implemented via several interfaces. Multiple indirect couplings or multiple communication connections between multiple devices or multiple units may be implemented in electrical, mechanical, or other forms.

別々の部品として説明される複数のユニットは、物理的に分離されてもよく、物理的に分離されていなくてもよく、そして複数のユニットとして示される複数の部品は、物理的な複数のユニットであってもよく、物理的な複数のユニットでなくてもよい、つまり、複数のユニットは1つの位置に置かれてもよく、又は複数のネットワークユニットに分散されてもよい。複数の実施例の複数の解決手段の複数の目的を達成する実際の必要に従って、複数のユニットのうちの一部又は全てが選択されてもよい。   Multiple units described as separate parts may or may not be physically separated, and multiple parts shown as multiple units may be physically multiple units. May not be a plurality of physical units, that is, a plurality of units may be located at one location or distributed across a plurality of network units. Some or all of the multiple units may be selected according to the actual need to achieve the multiple objectives of the multiple solutions of the multiple embodiments.

また、本発明の複数の実施例における複数の機能的ユニットは、1つの処理ユニットに統合されてもよく、或いは各ユニットは物理的に単独で存在してもよく、又は2つ以上のユニットが1つのユニットに統合されてもよい。   Also, the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may physically exist alone, or two or more units may be present. It may be integrated into one unit.

複数の機能がソフトウェア機能部の形態において実行されかつ販売される、又は独立した製品として使用される場合、当該複数の機能はコンピュータ読み取り可能な記憶媒体に記憶されてもよい。このような理解に基づき、本発明の複数の技術的解決手段は、本質的に、又は従来技術に貢献する部分、又は複数の技術的解決手段の一部は、ソフトウェア製品の形態で実施されてもよい。ソフトウェア製品は、記憶媒体に記憶され、そしてコンピュータ装置(パーソナルコンピュータ、サーバ、又はネットワーク装置であってもよい)に、本発明の複数の実施例において説明される複数の方法の複数のステップの全て又はその一部を実行するように指示するためのいくつかの命令を含む。前述の記憶媒体は:USBフラッシュ装置、リムーバブルハードディスク、読み出し専用メモリ(ROM、Read−Only Memory)、ランダムアクセスメモリ(RAM、Random Access Memory)、磁気ディスク、又は光ディスクなどの、プログラムコードを記憶可能な任意の媒体を含む。   When a plurality of functions are executed and sold in the form of a software function unit or used as an independent product, the plurality of functions may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present invention are essentially or part of the prior art, or some of the technical solutions are implemented in the form of software products. Also good. The software product is stored in a storage medium and stored on a computer device (which may be a personal computer, server, or network device) all of the steps of the methods described in the embodiments of the invention. Or some instructions for instructing them to execute. The above storage media can store program codes such as: USB flash device, removable hard disk, read-only memory (ROM), random access memory (RAM, random access memory), magnetic disk, or optical disk Including any medium.

前述の複数の説明は、本発明の単なる複数の特定の実施例であるが、本発明の保護範囲を限定することは意図されていない。本発明において開示される技術範囲内で当業者により容易に考案される如何なる変更又は置換も、本発明の保護範囲に属さなければならない。従って、本発明の保護範囲は、複数の特許請求項の保護範囲に従わなければならない。   The foregoing descriptions are merely specific embodiments of the present invention, but are not intended to limit the protection scope of the present invention. Any modification or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall belong to the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (18)

中央演算装置のリソース割り当て方法であって、
仮想システムに適用可能な計算ノードにより、高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的なコアの数を動的に調整するステップ;及び
前記計算ノードにより、前記高度なリソースプールの中の前記割り当てられた物理的なコアの数に従って、デフォルトリソースプールの中の割り当てられた物理的なコアの数を調整するステップ;
を備え、
前記高度なリソースプール及び前記デフォルトリソースプールは、リソースプールのサービスレベルに従って、中央処理装置の物理的なコアを分割することにより取得されるリソースプールであり、前記デフォルトリソースプールの中の仮想マシンは、前記デフォルトリソースプールの中の全ての物理的なコアの計算リソースを共有し、前記高度なリソースプールの中で実行する仮想マシンは、1つの物理的なコア計算リソースの所定の割合を占有可能であり、
前記動的に調整するステップは:
前記高度なリソースプールの中の前記仮想マシンの数が減少した場合に、前記計算ノードにより、減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的なコアの数を決定するステップ;及び
前記デフォルトリソースプールに対して、前記高度なリソースプールから減算する必要のある前記物理的なコアの数を割り当てるステップ;を含む、
方法。
A resource allocation method for a central processing unit,
Dynamically adjusting the number of allocated physical cores in the advanced resource pool according to changes in the number of virtual machines in the advanced resource pool by a compute node applicable to the virtual system; And adjusting by the compute node the number of assigned physical cores in a default resource pool according to the number of assigned physical cores in the advanced resource pool;
With
The advanced resource pool and the default resource pool are resource pools obtained by dividing a physical core of a central processing unit according to a service level of the resource pool, and virtual machines in the default resource pool are A virtual machine that shares all physical core compute resources in the default resource pool and runs in the advanced resource pool can occupy a predetermined percentage of one physical core compute resource And
The dynamically adjusting steps include:
When the number of virtual machines in the advanced resource pool decreases, the compute node needs to subtract from the advanced resource pool according to the reduced number of virtual machines and the service level of the advanced resource pool Determining the number of certain physical cores; and allocating to the default resource pool the number of physical cores that need to be subtracted from the advanced resource pool;
Method.
前記サービスレベルは、各仮想マシンにより占有され得る物理的なコア計算リソースの数を含む、
請求項1に記載の方法。
The service level includes the number of physical core computing resources that can be occupied by each virtual machine,
The method of claim 1.
前記高度なリソースプールは、レベル1のリソースプールを含み、該レベル1のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースを排他的に占有可能である、
請求項1又は2に記載の方法。
The advanced resource pool includes a level 1 resource pool, and each virtual machine in the level 1 resource pool can exclusively occupy one physical core computing resource.
The method according to claim 1 or 2.
前記高度なリソースプールは、レベル2のリソースプールを含み、該レベル2のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースの50%を占有可能である、
請求項1から3のいずれか1項に記載の方法。
The advanced resource pool includes a level 2 resource pool, and each virtual machine in the level 2 resource pool can occupy 50% of one physical core computing resource.
4. A method according to any one of claims 1 to 3.
前記高度なリソースプールの中の前記仮想マシンの前記数が減少した場合に、前記計算ノードにより、減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的コアの数を決定する前記ステップ;及び前記デフォルトリソースプールに対して、前記高度なリソースプールから減算する必要のある前記物理的なコアの数を割り当てる前記ステップは:前記高度なリソースプールの中で実行する仮想マシンがない場合に、前記高度なリソースプールの中の前記物理的なコアを前記デフォルトリソースプールに割り当てるステップ;を含む、
請求項1から4のいずれか1項に記載の方法。
When the number of virtual machines in the advanced resource pool decreases, the compute node subtracts from the advanced resource pool according to the reduced number of virtual machines and the service level of the advanced resource pool. Determining the number of physical cores needed; and assigning, for the default resource pool, the number of physical cores that need to be subtracted from the advanced resource pool: the advanced Assigning the physical core in the advanced resource pool to the default resource pool when there are no virtual machines running in the resource pool;
5. A method according to any one of claims 1 to 4.
仮想システムに適用可能な計算ノードにより、高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的なコアの数を動的に調整する前記ステップの前に、
前記方法は、さらに:
前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの前記サービスレベルを満たすためには、前記高度なリソースプールの中の前記物理的なコアの数が不十分であると決定するステップ;を含む、
請求項1から5のいずれか1項に記載の方法。
The step of dynamically adjusting the number of allocated physical cores in the advanced resource pool according to changes in the number of virtual machines in the advanced resource pool by a compute node applicable to the virtual system In front of,
The method further includes:
In order to satisfy the service level of the advanced resource pool after the number of virtual machines in the advanced resource pool has changed, the number of physical cores in the advanced resource pool is not sufficient. Determining that it is sufficient;
6. A method according to any one of claims 1 to 5.
仮想システムに適用可能な計算ノードにより、高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的なコアの数を動的に調整する前記ステップの前に、
前記方法は、さらに:
前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの中に、該高度なリソースプールの中の仮想マシンにサービスを提供しない少なくとも1つの使用されていない物理的なコア計算リソースが存在することを決定するステップ;を含む、
請求項1から6のいずれか1項に記載の方法。
The step of dynamically adjusting the number of allocated physical cores in the advanced resource pool according to changes in the number of virtual machines in the advanced resource pool by a compute node applicable to the virtual system In front of,
The method further includes:
After the number of the virtual machines in the advanced resource pool changes, the advanced resource pool includes at least one unused physical that does not service virtual machines in the advanced resource pool. Determining that there is a typical core computing resource;
The method according to any one of claims 1 to 6.
前記方法は、さらに:
前記計算ノードにより、前記デフォルトリソースプールの中の仮想マシンに対して、各仮想マシンにより占有可能な前記物理的なコア計算リソースの上限割合又は下限割合を設定するステップ;を含む
請求項1から7のいずれか1項に記載の方法。
The method further includes:
8. Setting an upper limit ratio or a lower limit ratio of the physical core calculation resources that can be occupied by each virtual machine for the virtual machines in the default resource pool by the calculation node. The method of any one of these.
前記方法は、さらに:
前記計算ノードにより、前記デフォルトリソースプールの中の前記仮想マシンに対して、物理的なコア計算リソースの使用における各仮想マシンの優先順位を設定するステップ、及び優先順位の高い順に、前記デフォルトリソースプールの中の前記仮想マシンに対して、物理的なコア計算リソースを割り当てるステップ;を含む
請求項1から8のいずれか1項に記載の方法。
The method further includes:
Setting the priority of each virtual machine in the use of physical core computational resources for the virtual machines in the default resource pool by the compute node, and in order of increasing priority, the default resource pool 9. The method of any one of claims 1 to 8, comprising: allocating physical core computing resources to the virtual machine in the network.
仮想システムに適用可能な計算ノードであって、
高度なリソースプールの中の仮想マシンの数の変化に従って、前記高度なリソースプールの中の割り当てられた物理的なコアの数を動的に調整し、かつ前記高度なリソースプールの中の前記割り当てられた物理的なコアの数に従って、デフォルトリソースプールの中の割り当てられた物理的なコアの数を調整するように構成されるリソース調整部;及び
中央処理装置の物理的なコアを、前記デフォルトリソースプール及び前記高度なリソースプールに、リソースプールのサービスレベルに従って分割するように構成されるリソース割当部であり、前記デフォルトリソースプールの中の仮想マシンは、前記デフォルトリソースプールの中の全ての物理的なコアの計算リソースを共有し、前記高度なリソースプールの中で実行する仮想マシンは、1つの物理的なコア計算リソースの所定の割合を占有可能であるリソース割当部;を備え、
前記高度なリソースプールの中の前記仮想マシンの数が減少した場合に、前記リソース調整部は、減少した仮想マシンの数及び前記高度なリソースプールのサービスレベルに従って、前記高度なリソースプールから減算する必要のある物理的なコアの数を決定し、かつ前記デフォルトリソースプールに対して、前記高度なリソースプールから減算する必要のある前記物理的なコアの数を割り当てる、
計算ノード。
A compute node applicable to a virtual system,
Dynamically adjusting the number of allocated physical cores in the advanced resource pool according to a change in the number of virtual machines in the advanced resource pool, and the allocation in the advanced resource pool A resource coordinator configured to adjust the number of allocated physical cores in the default resource pool according to the number of assigned physical cores; and A resource allocation unit configured to divide the resource pool and the advanced resource pool according to a service level of the resource pool, and a virtual machine in the default resource pool includes all physical resources in the default resource pool Virtual machines that share common core compute resources and run in the advanced resource pool A resource allocator that can occupy a predetermined percentage of one physical core computing resource;
When the number of the virtual machines in the advanced resource pool decreases, the resource adjustment unit subtracts from the advanced resource pool according to the reduced number of virtual machines and the service level of the advanced resource pool. Determining the number of physical cores required and assigning to the default resource pool the number of physical cores that need to be subtracted from the advanced resource pool;
Compute node.
前記サービスレベルは、各仮想マシンにより占有され得る物理的なコア計算リソースの数を含む、
請求項10に記載の計算ノード。
The service level includes the number of physical core computing resources that can be occupied by each virtual machine,
The computing node according to claim 10.
前記高度なリソースプールは、レベル1のリソースプールを含み、該レベル1のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースを排他的に占有可能である、
請求項10又は11に記載の計算ノード。
The advanced resource pool includes a level 1 resource pool, and each virtual machine in the level 1 resource pool can exclusively occupy one physical core computing resource.
The calculation node according to claim 10 or 11.
前記高度なリソースプールは、レベル2のリソースプールを含み、該レベル2のリソースプールの中の各仮想マシンは、1つの物理的なコア計算リソースの50%を占有可能である、
請求項10から12のいずれか1項に記載の計算ノード。
The advanced resource pool includes a level 2 resource pool, and each virtual machine in the level 2 resource pool can occupy 50% of one physical core computing resource.
The calculation node according to any one of claims 10 to 12.
前記リソース調整部は、前記高度なリソースプールの中で実行する仮想マシンがない場合に、前記高度なリソースプールの中の前記物理的なコアを前記デフォルトリソースプールに対して割り当てるように構成される、
請求項10から13のいずれか1項に記載の計算ノード。
The resource coordinator is configured to allocate the physical core in the advanced resource pool to the default resource pool when there is no virtual machine to execute in the advanced resource pool ,
The calculation node according to claim 10.
前記計算ノードは:
前記高度なリソースプールの中の前記仮想マシンの数が変化した後、前記高度なリソースプールの前記サービスレベルを満たすためには、前記高度なリソースプールの中の前記物理的なコアの数が不十分であると決定するように構成される第1決定部;をさらに備える
請求項10から14のいずれか1項に記載の計算ノード。
The compute node is:
In order to satisfy the service level of the advanced resource pool after the number of virtual machines in the advanced resource pool has changed, the number of physical cores in the advanced resource pool is not sufficient. The computing node according to any one of claims 10 to 14, further comprising: a first determining unit configured to determine that it is sufficient.
前記計算ノードは:
前記高度なリソースプールの中の前記仮想マシンの数が変化した場合、前記高度なリソースプールの中に、該高度なリソースプールの中の仮想マシンにサービスを提供しない少なくとも1つの使用されていない物理的なコア計算リソースが存在することを決定するように構成される第1決定部;
をさらに備える、請求項10から15のいずれか1項に記載の計算ノード。
The compute node is:
When the number of the virtual machines in the advanced resource pool changes, the advanced resource pool includes at least one unused physical that does not service virtual machines in the advanced resource pool. A first determiner configured to determine that there is a potential core computing resource;
The computing node according to claim 10, further comprising:
前記リソース割当部は、前記デフォルトリソースプールの中の各仮想マシンに対して、各仮想マシンにより占有可能な前記物理的なコア計算リソースの上限割合又は下限割合を設定するように構成される、
請求項10から16のいずれか1項に記載の計算ノード。
The resource allocation unit is configured to set an upper limit ratio or a lower limit ratio of the physical core calculation resource that can be occupied by each virtual machine for each virtual machine in the default resource pool.
The calculation node according to claim 10.
前記リソース割当部は、前記デフォルトリソースプールの中の前記仮想マシンに対して、物理的なコア計算リソースの使用における各仮想マシンの優先順位を設定し、かつ優先順位の高い順に、前記デフォルトリソースプールの中の前記仮想マシンに対して、物理的なコア計算リソースを割り当てるように構成される、
請求項10から17のいずれか1項に記載の計算ノード。
The resource allocation unit sets a priority of each virtual machine in the use of a physical core calculation resource for the virtual machines in the default resource pool, and sets the default resource pool in descending order of priority. Configured to allocate physical core computing resources to the virtual machine in
The calculation node according to claim 10.
JP2017076053A 2017-04-06 2017-04-06 Central processing unit resource allocation method and computing node Active JP6461224B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017076053A JP6461224B2 (en) 2017-04-06 2017-04-06 Central processing unit resource allocation method and computing node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017076053A JP6461224B2 (en) 2017-04-06 2017-04-06 Central processing unit resource allocation method and computing node

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2015526852A Division JP6159402B2 (en) 2012-08-31 2012-08-31 Central processing unit resource allocation method and computing node

Publications (2)

Publication Number Publication Date
JP2017142838A true JP2017142838A (en) 2017-08-17
JP6461224B2 JP6461224B2 (en) 2019-01-30

Family

ID=59628514

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017076053A Active JP6461224B2 (en) 2017-04-06 2017-04-06 Central processing unit resource allocation method and computing node

Country Status (1)

Country Link
JP (1) JP6461224B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112149964A (en) * 2020-09-03 2020-12-29 长沙市到家悠享网络科技有限公司 Resource allocation method and device
CN116610457A (en) * 2023-07-20 2023-08-18 北京万界数据科技有限责任公司 Resource scheduling method for AI cloud computing server group

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005234637A (en) * 2004-02-17 2005-09-02 Hitachi Ltd Method and device for managing computer resource and processing program
JP2009265778A (en) * 2008-04-22 2009-11-12 Dino Co Ltd Virtual server
JP2010282420A (en) * 2009-06-04 2010-12-16 Hitachi Ltd Management computer, resource management method, resource management program, recording medium, and information processing system
WO2011115750A1 (en) * 2010-03-16 2011-09-22 Alcatel-Lucent Usa Inc. Method and apparatus for managing reallocation of system resources
JP2012058815A (en) * 2010-09-06 2012-03-22 Hitachi Ltd Computer system and control method of computer system
WO2012050772A1 (en) * 2010-09-30 2012-04-19 Amazon Technologies, Inc. Virtual resource cost tracking with dedicated implementation resources

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005234637A (en) * 2004-02-17 2005-09-02 Hitachi Ltd Method and device for managing computer resource and processing program
JP2009265778A (en) * 2008-04-22 2009-11-12 Dino Co Ltd Virtual server
JP2010282420A (en) * 2009-06-04 2010-12-16 Hitachi Ltd Management computer, resource management method, resource management program, recording medium, and information processing system
WO2011115750A1 (en) * 2010-03-16 2011-09-22 Alcatel-Lucent Usa Inc. Method and apparatus for managing reallocation of system resources
JP2012058815A (en) * 2010-09-06 2012-03-22 Hitachi Ltd Computer system and control method of computer system
WO2012050772A1 (en) * 2010-09-30 2012-04-19 Amazon Technologies, Inc. Virtual resource cost tracking with dedicated implementation resources

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112149964A (en) * 2020-09-03 2020-12-29 长沙市到家悠享网络科技有限公司 Resource allocation method and device
CN116610457A (en) * 2023-07-20 2023-08-18 北京万界数据科技有限责任公司 Resource scheduling method for AI cloud computing server group
CN116610457B (en) * 2023-07-20 2023-09-12 北京万界数据科技有限责任公司 Resource scheduling method for AI cloud computing server group

Also Published As

Publication number Publication date
JP6461224B2 (en) 2019-01-30

Similar Documents

Publication Publication Date Title
JP6159402B2 (en) Central processing unit resource allocation method and computing node
CN108701059B (en) Multi-tenant resource allocation method and system
US9183016B2 (en) Adaptive task scheduling of Hadoop in a virtualized environment
US10120726B2 (en) Hybrid virtual machine configuration management
US9588789B2 (en) Management apparatus and workload distribution management method
JP5510556B2 (en) Method and system for managing virtual machine storage space and physical hosts
Park et al. Locality-aware dynamic VM reconfiguration on MapReduce clouds
US9690608B2 (en) Method and system for managing hosts that run virtual machines within a cluster
JP2009258982A (en) Node device, program, and resource-allocating method
KR20210095690A (en) Resource management method and apparatus, electronic device and recording medium
US20220035662A1 (en) Scheduling workloads on a common set of resources by multiple schedulers operating independently
CN112749002A (en) Method and device for dynamically managing cluster resources
JP6461224B2 (en) Central processing unit resource allocation method and computing node
CN111104203B (en) Virtual machine decentralized scheduling method and device, electronic equipment and storage medium
CN116157778A (en) System and method for hybrid centralized and distributed scheduling on shared physical hosts
JP2013140596A (en) Apparatus and method for dynamically reconfiguring operating system for many-core system
US11762704B2 (en) Resource allocation device, resource management system, and resource allocation program
US10963296B1 (en) Load balancing of compute resources based on resource credits
CN114281516A (en) Resource allocation method and device based on NUMA attribute
Tang et al. Thoth: Provisioning Over-Committed Memory Resource with Differentiated QoS in Public Clouds
JP2003131894A (en) Resource control method for computer environment
JP2009123053A (en) Resource allocation apparatus
JP2014225116A (en) Server for operating virtual machine thereon

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180327

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20181204

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181225

R150 Certificate of patent or registration of utility model

Ref document number: 6461224

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250