WO2023221844A1 - Procédé de planification de ressources, dispositif et support de stockage - Google Patents
Procédé de planification de ressources, dispositif et support de stockage Download PDFInfo
- Publication number
- WO2023221844A1 WO2023221844A1 PCT/CN2023/093401 CN2023093401W WO2023221844A1 WO 2023221844 A1 WO2023221844 A1 WO 2023221844A1 CN 2023093401 W CN2023093401 W CN 2023093401W WO 2023221844 A1 WO2023221844 A1 WO 2023221844A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- virtual machine
- machine
- type
- physical
- virtual
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 238000004088 simulation Methods 0.000 claims abstract description 7
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 30
- 230000008569 process Effects 0.000 claims description 19
- 238000005516 engineering process Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 15
- 238000012545 processing Methods 0.000 claims description 15
- 238000002955 isolation Methods 0.000 claims description 3
- 239000012634 fragment Substances 0.000 abstract description 8
- 238000013439 planning Methods 0.000 abstract description 6
- 238000007726 management method Methods 0.000 description 58
- 238000013467 fragmentation Methods 0.000 description 23
- 238000006062 fragmentation reaction Methods 0.000 description 23
- 238000010586 diagram Methods 0.000 description 17
- 238000004891 communication Methods 0.000 description 8
- 230000004044 response Effects 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 239000000203 mixture Substances 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Definitions
- the present application relates to the field of cloud computing technology, and in particular, to a resource scheduling method, equipment and storage medium.
- Server virtualization technology is a key technology based on the infrastructure layer in cloud computing. This technology virtualizes physical servers to deploy multiple virtual machines (VMs) on a single physical machine.
- VMs virtual machines
- a certain type of physical machine can only produce virtual machines of certain specifications, and the resources required by the virtual machine specifications may not be exactly equal to the resources of the physical machine, which leads to resource fragmentation in the physical machine.
- the resource ratio of memory to CPU in the physical machine is 192GB memory:104vCPU.
- 104vCPU means that the number of cores of the virtual CPU is 104 cores.
- the resource ratio required for the virtual machine specifications deployed on this physical machine is 4GB memory:1vCPU, which undoubtedly results in at least 58 vCPU resources remaining.
- Various aspects of this application provide a resource processing and scheduling method, device, and storage medium to reduce resource fragmentation of physical machines and improve resource utilization of physical machines.
- This embodiment of the present application provides a resource scheduling method, including:
- the first type of virtual machine is an exclusive virtual machine or a shared virtual machine
- the virtual machine deployment mode of the first physical machine When the first resource is less than the total resources of the physical machine, set the virtual machine deployment mode of the first physical machine to a hybrid deployment mode that supports exclusive virtual machines and shared virtual machines;
- simulation scheduling is performed on the total resources of the physical machine according to the resource specifications of the first type virtual machine and the resource specifications of the second type virtual machine to determine the physical machine's total resources.
- the target resource specifications and quantities of the first type of virtual machine and the second type of virtual machine supported by the machine; the second type of virtual machine is the same as the first type of the exclusive virtual machine and the shared virtual machine. Different types of virtual machines;
- the target resource specifications and quantities of the first type virtual machine and the second type virtual machine supported by the first physical machine perform a mixed deployment of exclusive virtual machines and shared virtual machines on the physical machine;
- the exclusive virtual machine refers to a virtual machine in which a virtual processor exclusively occupies the physical processor resources of the physical machine;
- the shared virtual machine refers to a virtual machine in which a virtual processor shares physical processor resources.
- This embodiment of the present application also provides a resource scheduling method, including:
- the virtual machine inventory level is less than the set first water level threshold, select a second physical machine with idle resources that meets the resource requirements of the first type virtual machine from the physical machines where the second type virtual machine is deployed separately.
- the second type virtual machine is a type different from the first type virtual machine among the exclusive virtual machine and the shared virtual machine;
- Utilizing the idle resources of the second physical machine deploy the first type virtual machine in the second physical machine
- the exclusive virtual machine refers to a virtual machine in which a virtual processor exclusively occupies the physical processor resources of the physical machine;
- the shared virtual machine refers to a virtual machine in which a virtual processor shares the physical processor resources.
- An embodiment of the present application also provides a computing device, including: a memory and a processor; wherein the memory is used to store a computer program;
- the processor is coupled to the memory and is configured to execute the computer program for performing the steps in each of the above resource scheduling methods.
- Embodiments of the present application also provide a computer-readable storage medium storing computer instructions.
- the computer instructions are executed by one or more processors, the one or more processors are caused to execute each of the above resource scheduling methods. A step of.
- the mixed deployment of exclusive virtual machines and shared virtual machines is realized, which is helpful to To reduce the amount of natural resource fragmentation caused by limited virtual machine specifications.
- the resource specifications and quantities of the first type of virtual machines and the second type of virtual machines supported by the physical machine are pre-scheduled by simulating the total resources of the physical machine with the goal of maximizing the resource utilization of the physical machine. , Therefore, deploying the simulated number and specifications of dedicated virtual machines and shared virtual machines in the physical machine can reduce resource fragmentation during actual resource scheduling of the physical machine and help improve the resource utilization of the physical machine.
- Figure 1 is a schematic structural diagram of a computing system provided by an embodiment of the present application.
- Figure 2 is a schematic diagram of a separate deployment mode provided by the embodiment of the present application.
- Figure 3 is a schematic diagram of the workflow of the computing system provided by the embodiment of the present application.
- Figure 4 is a schematic diagram of the effects of the individual deployment mode and the mixed deployment mode provided by the embodiment of the present application;
- Figure 5 is a schematic diagram of resource scheduling in the hybrid deployment mode provided by the embodiment of the present application.
- Figure 6 is a schematic diagram of the weak mixing part mode and the strong mixing part mode provided by the embodiment of the present application.
- Figure 7 is a schematic flow chart of virtual machine deployment by the computing system provided by the embodiment of the present application.
- FIGS 8 and 9 are schematic diagrams of the virtual machine deployment mode switching process provided by the embodiment of the present application.
- FIGS 10 and 11 are flowcharts of the resource scheduling method provided by the embodiment of the present application.
- Figure 12 is a schematic structural diagram of a computing device provided by an embodiment of the present application.
- mixed deployment of exclusive virtual machines and shared virtual machines can be realized by pre-planning the specifications and quantities of exclusive virtual machines and shared virtual machines that can be mixed deployed on the physical machine. Helps reduce the amount of natural resource fragmentation caused by limited virtual machine specifications.
- the resource specifications and quantities of the first type of virtual machines and the second type of virtual machines supported by the physical machine are pre-scheduled by simulating the total resources of the physical machine with the goal of maximizing the resource utilization of the physical machine. , Therefore, deploying the simulated number and specifications of dedicated virtual machines and shared virtual machines in the physical machine can reduce resource fragmentation during actual resource scheduling of the physical machine and help improve the resource utilization of the physical machine.
- Figure 1 is a schematic structural diagram of a computing system provided by an embodiment of the present application.
- the computing system includes: a management node 10 and a computing cluster 11.
- the computing cluster 11 includes: one or more physical machines 20.
- the number of physical machines 20 is multiple.
- the physical machine 20 refers to a computing device that provides resources.
- the amount of resources contained in each physical machine 20 may be the same or different.
- the same amount of resources contained in the physical machines 20 means that the amount of resources of each resource type of the physical machines is the same;
- the different amounts of resources contained in the physical machines 20 means that different physical machines have resources of a certain dimension or certain dimensions.
- the amount is different.
- the resources of the physical machine include but are not limited to: processor resources (such as CPU, GPU, etc.), storage resources (such as memory, etc.) and network resources (bandwidth, etc.).
- the management and control node 10 refers to a computing device that performs resource management and resource scheduling on the physical machine 20 .
- the management and control node 10 can be a single server device, a cloud server array, or a virtual machine (Virtual Machine, VM) running in a cloud server array.
- VM Virtual Machine
- the management and control node 10 may also refer to other computing devices with corresponding service capabilities, such as computers and other terminal devices (running service programs).
- the connection between the management node 10 and the physical machine 20 may be wireless or wired.
- the management and control node 10 can be connected to the physical machine 20 through a mobile network.
- the network standard of the mobile network can be 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS). ), 4G(LTE), 4G+(LTE+), 5G, WiMax, etc.
- the management node 10 and the physical machine 20 can also be communicated and connected through Bluetooth, WiFi, infrared, etc.
- cloud vendors can use virtualization technology to deploy an exclusive virtual machine 201 or a shared virtual machine 202 on the physical machine 20 to achieve exclusive or shared use of the processor resources of the physical machine 20 .
- the processor of the physical machine 20 includes but is not limited to: CPU, GPU, etc.
- the processor resources of the physical machine 20 may be represented by the number of physical cores of the processor.
- the core of the processor of the physical machine is called the physical core
- the core of the processor used by the virtual machine is called the logical core.
- the processor of the virtual machine is called a virtual processor; the processor of the physical machine 20 is called Physical processor.
- an exclusive virtual machine refers to a virtual machine in which a virtual processor (such as a vCPU) exclusively occupies the physical processor resources of a physical machine. That is, one physical core can only be mapped to one logical core or one virtual machine. At this time, the virtual processor resources of the physical machine are relatively low, and the virtual processors of the virtual machines will not compete for physical processor resources. Therefore, the performance index of the Service Level Agreement (SLA) of an exclusive virtual machine is relatively high. Exclusive virtual machines have higher service performance.
- SLA Service Level Agreement
- the virtual ratio of processor resources refers to the ratio of the number of logical cores obtained by virtualizing a physical core to the number of physical cores, and is used to reflect the number of logical cores that can be virtualized by one physical core. For example, if the virtual ratio of processor resources is 4 (number of logical cores): 1 (number of physical cores), it means that one physical core is virtualized into 4 logical cores.
- a shared virtual machine refers to a virtual machine in which a virtual processor shares physical processor resources, that is, one physical core can be mapped to multiple logical cores or multiple virtual machines. At this time, one physical core is virtualized into multiple logical cores. The virtualization ratio of the physical machine's processor resources is high, and the utilization rate of the physical machine's processor resources is high. However, because multiple virtual processors in a shared virtual machine share the same physical processor resource, multiple virtual machines compete for processor resources in a shared virtual machine. Therefore, the performance index of the SLA of a shared virtual machine is relatively low. Low. Shared virtual machines have lower service performance.
- the exclusive virtual machine 201 and the shared virtual machine 202 are not deployed on the same physical machine 20. That is, the exclusive virtual machine 201 and the shared virtual machine 202 do not coexist on the same physical machine 20, but are physically isolated, and their resources are not shared at all. Users can apply for shared virtual machines or dedicated virtual machines according to their own needs.
- the management and control node 10 can respond to the user's virtual machine deployment request, obtain the virtual machine demand information, and perform resource scheduling in the physical machine 20 based on the virtual machine demand information, and deploy a virtual machine adapted to the virtual machine deployment request.
- the management and control node 10 can schedule adapted resources from the physical machine used to deploy the shared virtual machine; and use the scheduled resources to Deploy shared virtual machines on physical machines.
- the management and control node 10 can schedule adapted resources from the physical machine used for the exclusive virtual machine, and use the scheduled resources to in the physical machine Deploy dedicated virtual machines.
- the specifications of the virtual machines provided by cloud vendors are certain.
- the resource specifications of the virtual machine include: the resource type of the virtual machine and the amount of resources of each resource type.
- the resource specifications of the virtual machine may include: the number of virtual processors, the amount of memory, bandwidth, the number of network cards, the number of packets per second (Packets Per Second, PPS), etc., but are not limited to this. Users can select appropriate specifications to apply for virtual machine resources based on resource requirements. Since the specifications of virtual machines provided by cloud vendors are certain and limited, the resources required by the virtual machine specifications may not be completely equal to the resources of the physical machine, which leads to resource fragmentation in the physical machine.
- the resource specifications of exclusive virtual machines produced by cloud vendors are: vCPU and memory ratios are: 1vCPU: 2GB memory, 1vCPU: 4GB memory and 1vCPU: 8GB memory; but the physical machine 20
- the specifications are: 104vCPU: 192GB memory, 104vCPU: 384GB memory and 104vCPU: 768GB memory.
- the ratio of vCPU to memory is not strictly 1vCPU: 2GB memory, 1vCPU: 4GB memory, or 1vCPU: 8GB. This results in resources appearing in the physical machine no matter how it is deployed or scheduled. Fragmentation causes this part of resources to be idle and the resource utilization rate is low.
- virtual machine hybrid deployment refers to supporting the deployment of dedicated virtual machines and shared virtual machines on the same physical machine.
- virtual machine co-location method provided by the embodiment of the present application in conjunction with Figure 3.
- the management and control node 10 can manage and schedule the resources of the physical machine 20.
- the identity of the physical machine 20 and the resources of the physical machine 20 can be registered in the management and control section.
- Point 10 the management and control node 10 can obtain the total resources of the physical machine.
- the management and control node 10 in order to improve resource utilization, can schedule and plan the resource usage of the physical machine 20, that is, predetermine the type and specification of the virtual machine deployed on the physical machine 20, so that the resources of the physical machine 20 can Maximize utilization.
- the virtual machine type is used to indicate whether the virtual machine is a shared virtual machine or an exclusive virtual machine.
- the management and control node 10 can obtain the resources required by the physical machine to separately deploy the first type of virtual machine.
- the first type of virtual machine is an exclusive virtual machine or a shared virtual machine.
- the specific implementation manner in which the management and control node 10 obtains the resources required by the physical machine to deploy the first type of virtual machine is not limited.
- the management and control node 10 can greedily box the total resources of the physical machine 20 based on the preset resource specifications of the first type of virtual machine to determine the resources occupied by the greedy boxed first type of virtual machine. And determine the resources occupied by the greedy boxed first-type virtual machine, and deploy the resources occupied by the first-type virtual machine for the physical machine.
- the preset resource specification of the first type of virtual machine may be one specification or multiple specifications. Multiple means 2 or more types. The amount of resources in at least one dimension is different in different resource specifications.
- the management and control node 10 can simulate deployment based on the preset resource specifications of the first type of virtual machine, in descending order of resource specifications, and in accordance with the target specifications of the first type of virtual machine that the physical machine can currently deploy.
- the free resources of the physical machine do not meet the specification requirements of any first-type virtual machine.
- the resources occupied by the first-type virtual machine that has been simulated and deployed to the physical machine are obtained, which is greedy boxing.
- the resource specifications of the first type of virtual machines in greedy boxing may be all the same, partially the same, or completely different.
- the total resources of the physical machine 20 can be greedily boxed based on the preset resource specifications of the exclusive virtual machine to determine the greedy boxed exclusive type.
- the resources occupied by the virtual machine Assume that as shown in Figure 4, the resource specification of the exclusive virtual machine is 1vCPU:2GB memory; the total resource ratio of the physical machine is 104vCPU:192GB memory, then the total resource ratio of the exclusive virtual machine to the physical machine with this resource specification After greedy boxing of resources, the physical machine can deploy up to 96 exclusive virtual machines with resource specifications of 1vCPU:2GB memory. That is, the resources occupied by the exclusive virtual machine with greedy boxing are 96 vCPUs and 192GB of memory.
- the resources required by the virtual machine specifications may not be completely equal to the resources of the physical machine, which leads to resource fragmentation in the physical machine.
- the virtual machine will generate resource fragments of 8 vCPUs. Based on this, when it is determined that the resources occupied by the first type of virtual machine alone are deployed on the physical machine, it can also be determined whether resource fragmentation will occur if the physical machine alone deploys the first type of virtual machine.
- the resources occupied by the first type of virtual machine deployed alone on the physical machine are less than the total resources of the physical machine; if the resources occupied by the first type of virtual machine deployed alone on the physical machine are less than the total resources of the physical machine, it can be determined that the resources occupied by the physical machine alone are less than the total resources of the physical machine. Deploying the first type of virtual machine will create resource fragmentation.
- the management and control node 10 can change the virtual machine deployment mode of the physical machine. Set to support mixed deployment mode of dedicated virtual machines and shared virtual machines.
- the resources occupied by the virtual machine are equal to the total resources of the physical machine.
- the virtual machine deployment mode of the virtual machine can be set to support independent deployment of the first type of virtual machine.
- the management and control node 10 can aim at maximizing the total resource utilization of the physical machine, and perform simulated scheduling on the total resources of the physical machine according to the resource specifications of the first type virtual machine and the resource specifications of the second type virtual machine to determine the physical machine's total resource utilization.
- the above-mentioned second type of virtual machine is a type different from the first type of virtual machine among exclusive virtual machines and shared virtual machines.
- the first type of virtual machine is a dedicated virtual machine
- the second type of virtual machine is a shared virtual machine.
- the second type of virtual machine is an exclusive virtual machine.
- the management and control node 10 can combine the resource specifications of the first type virtual machine and the resource specifications of the second type virtual machine according to the total resource allocation of the physical machine to obtain multiple first type virtual machines and second type virtual machines.
- a combination of virtual machines; at least one type of virtual machine in each combination has different resource specifications, and the amount of resources required by each combination is less than or equal to the total resources of the physical machine.
- the combination with the smallest difference between the amount of resources required and the total resources of the physical machine can be obtained as the target combination.
- the resource specifications and quantity of the first type virtual machine and the second type virtual machine in the target combination may be determined as the resource specifications and quantity of the first type virtual machine and the second type virtual machine in the simulation scheduling result.
- the management and control node 10 can greedily box the total resources of the physical machine based on the preset resource specifications of the first type of virtual machine to determine the resources occupied by the greedy boxed first type of virtual machine. ; And determine the resource fragments of the physical machine based on the total resources of the physical machine and the resources occupied by the greedy boxed first-type virtual machine. Afterwards, the management and control node 10 aims at maximizing the utilization of the resource fragments and performs simulation scheduling on the resource fragments according to the resource specifications of the second type virtual machine to determine the resource specifications and quantity of the second type virtual machines deployed in the resource fragments.
- the management and control node 10 can also determine the resource specifications and quantity of the first type of virtual machine for greedy boxing. Further, determine the resource specifications and quantity of the second type of virtual machines deployed in the resource fragments, and the resource specifications and quantity of the first type of virtual machines in greedy boxing, as the first type of virtual machines and the third type of virtual machines in the simulation scheduling results. Resource specifications and quantity of type 2 virtual machines.
- the resources required by the first type virtual machine and the second type virtual machine supported by the physical machine 20 are equal to the total resources of the physical machine 20 .
- the resource specifications of the dedicated virtual machine are 1vCPU: 2GB memory, and the quantity is 88; the resource specifications of the shared virtual machine are 2vCPU :0.5GB memory, the quantity is 32, and the virtual ratio corresponding to the shared virtual machine is 4:1, that is, one physical core virtualizes 4 logical cores.
- the determined resources occupied by the dedicated virtual machine and the shared virtual machine are equal to the total resources of the physical machine.
- the physical machine 20 can be configured according to the resource specifications and quantity of the first type virtual machine and the second type virtual machine. Mixed deployment of dedicated virtual machines and shared virtual machines.
- the mixed deployment of exclusive virtual machines and shared virtual machines is realized, which is helpful to To reduce the amount of natural resource fragmentation caused by limited virtual machine specifications.
- the physical machine supports the first type of virtual machine and the second type
- the resource specifications and quantity of type virtual machines are pre-scheduled by simulating the total resources of the physical machine with the goal of maximizing the resource utilization of the physical machine. Therefore, the simulated quantity and specifications are deployed in the physical machine.
- Virtual machines and shared virtual machines can reduce resource fragmentation during actual resource scheduling of physical machines and help improve resource utilization of physical machines.
- the resources occupied by the dedicated virtual machines and shared virtual machines can also be isolated.
- the management and control node 10 may divide the total resources into a first resource pool and a second resource pool according to the resource specifications and quantities of the first type virtual machines and the second type virtual machines supported by the physical machine.
- the first resource pool is used to support the deployment of a first type of virtual machine
- the second resource pool is used to support the deployment of a second type of virtual machine.
- the resource pool that supports the deployment of shared virtual machines can be called a shared resource pool
- the resource pool that supports the deployment of exclusive virtual machines can be called an exclusive resource pool.
- the management and control node 10 can isolate the first resource pool and the second resource pool for subsequent deployment of the first type virtual machine and the second type virtual machine in the first resource pool and the second resource pool respectively. In this way, a weak mixture of shared virtual machines and exclusive virtual machines is achieved. That is, as shown in Figure 5 and Figure 6, dedicated virtual machines and shared virtual machines have separate and independent resource pools respectively. Each type of virtual machine can only schedule resource pools that support the deployment of that type of virtual machine for virtualization. machine deployment.
- a forced mixing of shared virtual machines and exclusive virtual machines can also be implemented.
- the resources of the physical machine 20 are dynamically divided in real time rather than physically isolated, and the scheduler can be used to ensure the SLA requirements of the exclusive virtual machine.
- the physical cores in the shared resource pool can be virtualized to obtain Multiple logical cores are used for shared virtual machines that are subsequently deployed in the shared resource pool to share the physical cores in the shared resource pool.
- the specific implementation manner of virtualizing the physical cores in the shared resource pool is not limited.
- the number M of logical cores that need to be virtualized can be determined based on the set virtualization ratio. M ⁇ 2, and is an integer.
- the corresponding relationship between the model of the physical machine and the virtual scale can be preset. Based on this corresponding relationship, in this embodiment, the management and control node 10 can determine the virtual proportion corresponding to the physical machine 20 according to the model of the machine.
- the number M of logical cores that need to be virtualized can be determined according to the virtual ratio corresponding to the machine model. Further, as shown in FIG.
- the management and control node 10 can use hyper-threading technology to virtualize each physical core in the second resource into M logical cores. In this way, for the shared virtual machine in the future, the number of logical cores required by the shared virtual machine can be determined based on the resource specifications of the shared virtual machine; and the corresponding number of logical cores can be used to deploy the shared virtual machine in the shared resource pool.
- the number of shared resource pools may be one or more. Multiple means 2 or more. Multiple shared resource pools correspond to different virtual ratios, that is, the number M of logical cores virtualized from physical cores in different shared resource pools is different.
- the number of shared resource pools in the same physical machine and the virtual ratio supported by each shared resource pool can be flexibly set according to actual needs. For example, the number of shared resource pools and the virtual ratio corresponding to each shared resource pool can be set according to the specifications of the shared virtual machine that the user actually applies to deploy.
- the above embodiment predetermines the virtual machine deployment method of the physical machine, aiming at supporting shared virtual machines and exclusive virtual machines.
- the resource specifications and quantity of shared virtual machines supported by the physical machine can also be determined in advance, as well as the resource specifications and quantity of exclusive virtual machines.
- the subsequent management and control node 10 can perform resource scheduling on the physical machine 20 according to the virtual machine deployment request, so as to deploy a virtual machine that satisfies the virtual machine deployment request in the physical machine 20 .
- the following is an exemplary description of the resource scheduling method in the virtual machine deployment process provided by the embodiments of this application.
- the client 30 can provide a virtual machine deployment request to the management and control node 10.
- the virtual machine deployment request may include the type of virtual machine to be deployed (exclusive virtual machine or shared virtual machine), target resource specifications and quantity, etc.
- the management and control node 10 can obtain a virtual machine deployment request. Further, the management and control node 10 can obtain the target type and target resource specifications of the virtual machine to be deployed from the virtual machine deployment request; and then select a physical machine from the physical machines 20 that supports the target type and target resource specifications.
- the management and control node 10 can select a target physical machine whose idle resources meet the target resource specification requirements based on the idle resources in the target resource pool in the physical machine that supports the target type and target resource specification; and deploy the target physical machine in the target resource pool of the target physical machine.
- the target resource pool is a resource pool that supports the deployment of virtual machines of the target type.
- the target type is an exclusive virtual machine and the target resource pool is an exclusive resource pool. If the target type is a shared virtual machine, the target resource pool is a shared resource pool.
- the target type is a shared virtual machine.
- the target resource pool is a shared resource pool.
- the resource specifications of shared virtual machines supported by different physical machines may be the same or different.
- the virtual ratios corresponding to the shared resource pools of different physical machines may be the same or different.
- the correspondence between the resource specifications and the virtual ratio of the shared virtual machine may be preset. Based on the corresponding relationship, the management and control node 10 can determine the target virtual ratio corresponding to the target resource specification included in the virtual machine deployment request, and select a shared resource pool that supports the target virtual ratio from the shared resource pool as the target resource pool.
- the target logical core that meets the processor core number requirement of the target resource specification can be determined from the logical cores of the shared resource pool as the target resource pool; and other resources that meet the target resource specification can be obtained from other resources in the shared resource pool.
- the target type is a dedicated virtual machine.
- the target resource pool is an exclusive resource pool.
- the management and control node 10 can select a target physical machine whose idle resources meet the target resource specification requirements from the idle resources in the exclusive resource pool among the physical machines that support the target type and target resource specifications; and in the exclusive resource pool of the target physical machine Deploy the virtual machine to be deployed in a resource pool.
- the management and control node 10 can determine the target physical core that meets the core number requirement of the processor in the target resource specification from the exclusive resource pool; and obtain other resources that meet the target resource specification from other resources in the shared resource pool. Other types of resources according to resource requirements; then, the target logical core and other types of resources mentioned above can be used to deploy exclusive virtual machines in the exclusive resource pool.
- the management and control node 10 in addition to pre-setting the virtual machine deployment mode of the physical machine, can also flexibly switch the virtual machine deployment mode of the physical machine according to the online real-time load condition of the physical machine.
- the following is an exemplary description of the specific implementation manner in which the management and control node 10 switches the virtual machine deployment mode of the physical machine.
- the management and control node 10 can monitor the calculation set Inventory levels of dedicated virtual machines and shared virtual machines in group 11.
- the inventory level of the exclusive virtual machine is used to represent the idle resources in the computing cluster 11 that can still deploy the exclusive virtual machine. It can be calculated that the idle resources of the exclusive resource pool in the cluster 11 account for the total number of exclusive resource pools. Expressed in proportion to resources.
- the inventory level of exclusive virtual machines can also be calculated by calculating the number of exclusive virtual machines that can be deployed in the exclusive resource pool in cluster 11, and the total number of exclusive virtual machines that can be deployed in the exclusive resource pool.
- the inventory level of the shared virtual machine is used to indicate that the computing cluster 11 can still deploy the idle resources of the shared virtual machine.
- the ratio of the idle resources of the shared resource pool in the cluster 11 to the total resources of the shared resource pool can be calculated.
- the inventory level of shared virtual machines can also be calculated as the ratio between the number of shared virtual machines that can still be deployed in the shared resource pool of cluster 11 and the total number of shared virtual machines that can be deployed in the shared resource pool. Express etc.
- the management and control node 10 can select a target physical machine whose current virtual machine deployment mode is the virtual machine hybrid deployment mode from the computing cluster 11 .
- the number of target physical machines is less than or equal to some or all of the physical machines in the current virtual machine deployment mode in the computing cluster 11 .
- the number of target physical machines can be 1 or multiple. Multiple units refers to 2 or more units.
- the specific number of target physical machines can be determined based on the actual needs of the target type virtual machines and the idle resources of each virtual machine in the computing cluster 11 .
- the management and control node 10 can obtain the physical machines whose current virtual machine deployment mode is the virtual machine hybrid deployment mode from the computing cluster; and select the supported target type from the physical machines whose current virtual machine deployment mode is the virtual machine hybrid deployment mode.
- a physical machine with the resource specifications of the virtual machine; then, a physical machine with idle resources can be selected from the physical machines that support the resource specifications of the target type virtual machine as the target physical machine, and so on.
- the virtual machine deployment mode of the target physical machine can be switched to the separate deployment mode of the target type virtual machine.
- the first water level threshold is smaller than the second water level threshold.
- the first water level threshold is less than 50%; the second water level threshold is greater than 50%.
- Another type of virtual machine refers to another type of virtual machine other than the target type virtual machine among exclusive virtual machines and shared virtual machines. For example, if the target type of virtual machine is an exclusive virtual machine, the other type of virtual machine is a shared virtual machine. If the target type of virtual machine is a shared virtual machine, the other type of virtual machine is an exclusive virtual machine.
- the target type virtual machine can be deployed separately on the target physical machine.
- the management node 10 may migrate the other type of virtual machine to support the deployment of the other type of virtual machine. physical machine.
- the target physical machine in which the above-mentioned virtual machine deployment mode is switched to a separate deployment of the target type virtual machine is defined as the first physical machine; and another type of the first physical machine will be received.
- the physical machine to which the virtual machine is migrated is defined as the second physical machine.
- the other type refers to another virtual machine type between the exclusive virtual machine and the shared virtual machine except the target type virtual machine.
- the management node 10 can select a physical machine that supports the deployment of another type of virtual machine from other physical machines in the computing cluster 11 according to the resource specifications of another type of virtual machine deployed on the first physical machine; and select a physical machine that supports the deployment of another type of virtual machine; Among the physical machines deployed for another type of virtual machine, select a physical machine that supports the resource specifications of the other type of virtual machine; after that, select the physical machine that supports the resource specifications of the other type of virtual machine. Among the physical machines supporting the resource specifications of another type of virtual machine, a physical machine whose idle resources can meet the resource requirements supporting the resource specifications of another type of virtual machine is selected as the second physical machine. Further, resource specifications of another type of virtual machine deployed on the first physical machine may be migrated from the first physical machine to the second physical machine.
- the management node 10 may not process another type of virtual machine deployed on the first physical machine.
- the management and control node 10 can use the idle resources of the first physical machine to deploy the virtual machine of the target type, and configure the target type virtual machine on the first physical machine. Deployed virtual machines of another type are not processed.
- the virtual machine deployment method currently supported by the physical machine 20 may be a mixed deployment of the above-mentioned shared virtual machines and dedicated virtual machines, or may be separate deployment of any type of virtual machine.
- the management and control node 10 can obtain the virtual machine inventory level of the third physical machine in which the first type of virtual machine is separately deployed.
- the first type of virtual machine is an exclusive virtual machine or a shared virtual machine.
- the third physical machine may be: some or all physical machines in which the current virtual machine deployment mode in the computing cluster 11 is to separately deploy the first type of virtual machine.
- the virtual machine inventory level of the third physical machine can be the ratio of the number of first-type virtual machines that can still be deployed on the third physical machine to the total number of first-type virtual machines supported by the third physical machine, etc.
- a third physical machine with idle resources that meets the resource requirements of the first type virtual machine can be selected from the physical machines that separately deploy the second type virtual machine.
- the second type of virtual machine is an exclusive virtual machine or a shared virtual machine, which is different from the first type of virtual machine.
- the specific value of the first lower water level threshold is not limited. Generally, the first water level threshold is less than 50%.
- the management and control node 10 may select a fifth physical machine whose model supports the first type of virtual machine from the physical machines where the second type of virtual machine is separately deployed; and select idle resources from the fifth physical machine that satisfy the requirements.
- the resource requirements of the first type of virtual machine are the fourth physical machine.
- the management and control node 10 can switch the virtual machine deployment mode of the fourth physical machine to a mixed deployment mode that supports exclusive virtual machines and shared virtual machines; after that, the management and control node 10 can use the idle resources of the fourth physical machine, in The first type of virtual machine is deployed in the fourth physical machine to realize mixed deployment of exclusive virtual machines and shared virtual machines in the fourth physical machine.
- the virtual machine deployment mode of the fourth physical machine is switched to support
- the mixed deployment mode of exclusive virtual machines and shared virtual machines realizes the mixed deployment of exclusive virtual machines and shared virtual machines in the fourth physical machine, which helps to reduce idle resources in the fourth physical machine and improve the efficiency of the fourth physical machine. Resource utilization of four physical machines.
- the management and control node 10 may respond to the deployment request for the first type of virtual machine from the fourth physical machine.
- the target resource that satisfies the resources required by the deployment request is scheduled from the idle resources of the computer; further, the target resource can be used to deploy the first type of virtual machine in the fourth physical machine.
- the management and control node 10 deploys the virtual machine of the fourth physical machine.
- the idle resources of the fourth physical machine can also be used to build the first resource pool; and the second type of virtual machines can be deployed in the fourth physical machine.
- the occupied resources are used to construct a second resource pool; after that, the first resource pool and the second resource pool can be isolated for deployment of the first type of virtual machine and the second type of virtual machine in the first resource pool and the second resource pool respectively.
- Type virtual machine For specific implementation methods of respectively deploying the first type virtual machine and the second type virtual machine in the first resource pool and the second resource pool, please refer to the relevant content of the above embodiments, and will not be described again here.
- the inventory level of the first type virtual machine corresponding to the third physical machine is less than or equal to the set second water level threshold continuously. If the duration is greater than or equal to the set duration threshold, the virtual machine deployment mode of the third physical machine can also be switched to a mixed deployment mode that supports exclusive virtual machines and shared virtual machines. Further, the resource specification and quantity of the second type of virtual machines supported by the third physical machine can be determined with the goal of maximizing the resource utilization of the third physical machine. After that, the second type virtual machine can be deployed in the third physical machine in response to the deployment request for the second type virtual machine, thereby realizing the mixed deployment of the exclusive virtual machine and the shared virtual machine in the third physical machine. Reducing idle resources in the third physical machine helps improve resource utilization of the third physical machine.
- embodiments of the present application also provide resource scheduling methods.
- the following is an exemplary description of the resource scheduling method provided by the embodiment of the present application.
- Figure 10 is a schematic flowchart of a resource scheduling method provided by an embodiment of the present application. As shown in Figure 10, the method includes:
- the resource usage of the physical machine can be scheduled and planned, that is, the type and specification of the virtual machine deployed on the physical machine can be determined in advance to maximize the resource utilization of the physical machine.
- the virtual machine type is used to indicate whether the virtual machine is a shared virtual machine or an exclusive virtual machine.
- the resources required by the physical machine to separately deploy the first type of virtual machine can be obtained.
- the first type of virtual machine is an exclusive virtual machine or a shared virtual machine.
- the specific implementation method of obtaining the resources required to deploy the first type of virtual machine on a physical machine is not limited.
- greedy boxing can be performed on the total resources of the physical machine to determine the resources occupied by the greedy boxed first type virtual machine, and determine the greedy boxing.
- the preset resource specification of the first type of virtual machine may be one specification or multiple specifications. Multiple means 2 or more types. The amount of resources in at least one dimension is different in different resource specifications.
- the resources required by the virtual machine specifications may not be completely equal to the resources of the physical machine, which leads to resource fragmentation in the physical machine. Based on this, when it is determined that the resources occupied by the first type of virtual machine alone are deployed on the physical machine, it can also be determined whether resource fragmentation will occur if the physical machine alone deploys the first type of virtual machine.
- the resources occupied by the first type of virtual machine deployed alone on the physical machine are less than the total resources of the physical machine; if the resources occupied by the first type of virtual machine deployed alone on the physical machine are less than the total resources of the physical machine, it can be determined that the resources occupied by the physical machine alone are less than the total resources of the physical machine. Deploying the first type of virtual machine will create resource fragmentation.
- the virtual machines of the physical machine can be The deployment mode is set to support a mixed deployment mode of dedicated virtual machines and shared virtual machines.
- the virtual machine deployment mode of the virtual machine can be set to support the independent deployment of the first type of virtual machine.
- step S103 with the goal of maximizing the total resource utilization of the physical machine, simulation scheduling is performed on the total resources of the physical machine according to the resource specifications of the first type virtual machine and the resource specifications of the second type virtual machine, so as to Determine the target resource type and quantity of the first type of virtual machine and the second type of virtual machine supported by the physical machine.
- the above-mentioned second type of virtual machine is a type different from the first type of virtual machine among exclusive virtual machines and shared virtual machines.
- the specific implementation method of determining the target resource type and quantity of the first type virtual machine and the second type virtual machine supported by the physical machine please refer to the relevant content of the above system embodiment, and will not be described again here.
- step S104 After determining the resource specifications and quantity of the first type virtual machine and the second type virtual machine supported by the physical machine, in step S104, the resource specification and quantity of the first type virtual machine and the second type virtual machine can be determined.
- Physical machines are deployed with a mixture of dedicated virtual machines and shared virtual machines.
- the mixed deployment of exclusive virtual machines and shared virtual machines is realized, which is helpful to To reduce the amount of natural resource fragmentation caused by limited virtual machine specifications.
- the resource specifications and quantities of the first type of virtual machines and the second type of virtual machines supported by the physical machine are pre-scheduled by simulating the total resources of the physical machine with the goal of maximizing the resource utilization of the physical machine. , Therefore, deploying the simulated number and specifications of dedicated virtual machines and shared virtual machines in the physical machine can reduce resource fragmentation during actual resource scheduling of the physical machine and help improve the resource utilization of the physical machine.
- the total resources may be divided into a first resource pool and a second resource pool according to the resource specifications and quantities of the first type virtual machine and the second type virtual machine supported by the physical machine.
- the first resource pool is used to support the deployment of a first type of virtual machine
- the second resource pool is used to support the deployment of a second type of virtual machine.
- the first resource pool and the second resource pool may be isolated for subsequent deployment of the first type virtual machine and the second type virtual machine in the first resource pool and the second resource pool respectively.
- a forced mixing of shared virtual machines and exclusive virtual machines can also be implemented.
- the resources of physical machines are dynamically divided in real time rather than physically isolated, and the scheduler can be used to ensure the SLA requirements of exclusive virtual machines.
- the physical cores in the shared resource pool can be virtualized to obtain Multiple logical cores are used for shared virtual machines that are subsequently deployed in the shared resource pool to share the physical cores in the shared resource pool.
- the specific implementation manner of virtualizing the physical cores in the shared resource pool is not limited.
- the number M of logical cores that need to be virtualized can be determined based on the set virtualization ratio. M ⁇ 2, and is an integer.
- the corresponding relationship between the model of the physical machine and the virtual scale can be preset. Based on this corresponding relationship, in this embodiment, the virtual proportion corresponding to the physical machine model can be determined according to the model of the physical machine.
- the number M of logical cores that need to be virtualized can be determined according to the virtual ratio corresponding to the machine model.
- hyper-threading technology can be used to virtualize each physical core in the second resource into M logical cores.
- the number of logical cores required by the shared virtual machine can be determined based on the resource specifications of the shared virtual machine; and the corresponding number of logical cores can be used to deploy the shared virtual machine in the shared resource pool.
- the number of shared resource pools can be one or more. Multiple means 2 or more. Multiple shared resource pools correspond to different virtual ratios, that is, the number M of logical cores virtualized from physical cores in different shared resource pools is different.
- the above embodiment predetermines the virtual machine deployment method of the physical machine.
- the resource specifications and quantity of the shared virtual machines supported by the physical machine can also be predetermined.
- the resource specifications and quantity of exclusive virtual machines can be determined.
- resource scheduling can be performed on the physical machine according to the virtual machine deployment request, so that virtual machines that meet the virtual machine deployment request can be deployed in the physical machine.
- the following is an exemplary description of the resource scheduling method in the virtual machine deployment process provided by the embodiments of this application.
- the client can provide a virtual machine deployment request to the management and control node.
- the virtual machine deployment request may include the type of virtual machine to be deployed (exclusive virtual machine or shared virtual machine), target resource specifications and quantity, etc.
- virtual machine deployment requests can be obtained.
- the target type and target resource specifications of the virtual machine to be deployed can be obtained from the virtual machine deployment request; then, a physical machine that supports the target type and target resource specifications can be selected from the physical machines of the computing system.
- the target resource pool in the physical machine that supports the target type and target resource specifications can be of idle resources, select a target physical machine whose idle resources meet the target resource specification requirements; and deploy the virtual machine to be deployed in the target resource pool of the target physical machine.
- the target resource pool is a resource pool that supports the deployment of virtual machines of the target type.
- the target type is an exclusive virtual machine and the target resource pool is an exclusive resource pool.
- the target type is a shared virtual machine, the target resource pool is a shared resource pool.
- the management and control node in addition to pre-setting the virtual machine deployment mode of the physical machine, can also flexibly switch the virtual machine deployment mode of the physical machine according to the online real-time load condition of the physical machine.
- the following is an exemplary description of the specific implementation method of the management and control node switching the virtual machine deployment mode of the physical machine.
- the computing cluster there are physical machines in the computing cluster whose current virtual machine deployment mode is a mixed deployment mode of dedicated virtual machines and shared virtual machines. Accordingly, the inventory levels of dedicated virtual machines and shared virtual machines in the computing cluster can be monitored.
- the inventory water level please refer to the relevant content of the above embodiments, and will not be described again here.
- the first water level threshold is smaller than the second water level threshold.
- the first water level threshold is less than 50%; the second water level threshold is greater than 50%.
- Another type of virtual machine refers to another type of virtual machine other than the target type virtual machine among exclusive virtual machines and shared virtual machines. For example, if the target type of virtual machine is an exclusive virtual machine, the other type of virtual machine is a shared virtual machine. If the target type of virtual machine is a shared virtual machine, the other type of virtual machine is an exclusive virtual machine.
- the target type virtual machine can be deployed separately on the target physical machine.
- the virtual machine of the other type may be migrated to support the other type of virtual machine.
- a virtual machine of one type is deployed on another physical machine (defined as the second physical machine).
- a physical machine that supports the deployment of another type of virtual machine can be selected from other physical machines in the computing cluster; and from other physical machines that support the deployment of another type of virtual machine; Among the physical machines for virtual machine deployment, select a physical machine that supports the resource specifications of another type of virtual machine; then, select idle resources from the physical machines that support the resource specifications of another type of virtual machine to meet the above requirements of supporting another type of virtual machine.
- the resource specifications of the type of virtual machine are the resource requirements of the physical machine, as the second physical machine. Further, resource specifications of another type of virtual machine deployed on the first physical machine may be migrated from the first physical machine to the second physical machine.
- another type of virtual machine deployed on the first physical machine may not be processed.
- the idle resources of the first physical machine can be used to deploy the target type virtual machine, and another virtual machine deployed on the first physical machine can be deployed.
- One type of virtual machine is not processed.
- the virtual machine deployment methods currently supported by physical machines may be a mixed deployment of the above shared virtual machines and dedicated virtual machines, or they may be deployed separately for either type of virtual machine.
- the following is an exemplary description of the resource scheduling method of a physical machine in which a certain type of virtual machine is separately deployed in the current virtual machine deployment mode with reference to Figure 11.
- FIG 11 is a schematic flowchart of another resource scheduling method provided by an embodiment of the present application. As shown in Figure 11, the method includes:
- the second type of virtual machine is a type of exclusive virtual machine or shared virtual machine that is different from the first type of virtual machine.
- the virtual machine inventory level of the physical machine (defined as the third physical machine) on which the first type of virtual machine is deployed separately can be obtained.
- the first type of virtual machine is an exclusive virtual machine or a shared virtual machine.
- the third physical machine is all or part of the physical machine on which the first type of virtual machine is separately deployed in the computing cluster.
- step S112 idle resources can be selected from physical machines that separately deploy the second type virtual machine to satisfy the requirements of the first type virtual machine.
- the resource requirements of the fourth physical machine are included in the second type of virtual machine.
- the second type of virtual machine is an exclusive virtual machine or a shared virtual machine, which is different from the first type of virtual machine.
- the specific value of the first lower water level threshold is not limited. Generally, the first water level threshold is less than 50%.
- a fifth physical machine whose model supports the first type of virtual machine can be selected from the physical machines that separately deploy the second type of virtual machine; and from the fifth physical machine, select idle resources that meet the requirements of the first type of virtual machine.
- the resource requirements of a virtual machine are those of a fourth physical machine.
- the fifth physical machine includes: the fourth physical machine.
- step S113 the virtual machine deployment mode of the fourth physical machine can be switched to a mixed deployment mode that supports exclusive virtual machines and shared virtual machines; and then, in step S114, the virtual machine deployment mode of the fourth physical machine can be used. Use idle resources to deploy the first type of virtual machine in the fourth physical machine to achieve mixed deployment of exclusive virtual machines and shared virtual machines in the fourth physical machine.
- the virtual machine deployment mode of the fourth physical machine is switched to support
- the mixed deployment mode of exclusive virtual machines and shared virtual machines realizes the mixed deployment of exclusive virtual machines and shared virtual machines in the fourth physical machine, which helps to reduce idle resources in the fourth physical machine and improve the efficiency of the fourth physical machine. Resource utilization of four physical machines.
- the idle state of the fourth physical machine can be Target resources that meet the resources required by the deployment request are scheduled among the resources; further, the target resources can be used to deploy the first type of virtual machine in the fourth physical machine.
- the fourth physical machine can also be used. Idle resources are used to construct a first resource pool; and the resources occupied by the second type of virtual machine deployed in the fourth physical machine are used to construct a second resource pool; after that, the first resource pool and the second resource pool can be isolated to The first type virtual machine and the second type virtual machine are respectively deployed in the first resource pool and the second resource pool.
- Idle resources are used to construct a first resource pool; and the resources occupied by the second type of virtual machine deployed in the fourth physical machine are used to construct a second resource pool; after that, the first resource pool and the second resource pool can be isolated to The first type virtual machine and the second type virtual machine are respectively deployed in the first resource pool and the second resource pool.
- the inventory level of the first type virtual machine in the third physical machine is less than or equal to the duration of the set second water level threshold. If the duration is greater than or equal to the set duration threshold, the virtual machine deployment mode of the third physical machine can also be switched to a mixed deployment mode that supports exclusive virtual machines and shared virtual machines. Further, the resource specification and quantity of the second type of virtual machines supported by the first physical machine can be determined with the goal of maximizing the resource utilization of the third physical machine.
- the second type virtual machine can be deployed in the third physical machine in response to the deployment request for the second type virtual machine, thereby realizing the mixed deployment of the exclusive virtual machine and the shared virtual machine in the third physical machine. Reducing idle resources in the third physical machine helps improve resource utilization of the third physical machine.
- the execution subject of each step of the method provided in the above embodiments may be the same device, or the method may also be executed by different devices.
- the execution subject of steps S101 and S102 may be device A; for another example, the execution subject of step S101 may be device A, the execution subject of step S102 may be device B; and so on.
- embodiments of the present application also provide a computer-readable storage medium storing computer instructions.
- the computer instructions are executed by one or more processors, the one or more processors are caused to execute each of the above resource scheduling methods. step.
- Figure 12 is a schematic structural diagram of a computing device provided by an embodiment of the present application. As shown in Figure 12, the computing device includes: a memory 12a and a processor 12b; wherein the memory 12a is used to store computer programs.
- the processor 12b is coupled to the memory 12a and is used to execute a computer program for: obtaining the first resource occupied by the first physical machine to separately deploy the first type of virtual machine; the first type of virtual machine is an exclusive virtual machine or a shared virtual machine. machine; when the first resource is less than the total resources of the physical machine, set the virtual machine deployment mode of the first physical machine In order to support the mixed deployment mode of dedicated virtual machines and shared virtual machines; with the goal of maximizing total resource utilization, the physical machine is configured based on the resource specifications of the first type of virtual machine and the resource specifications of the second type of virtual machine.
- the total resources are simulated and scheduled to determine the target resource specifications and quantities of the first type of virtual machine and the second type of virtual machine supported by the physical machine; the second type of virtual machine is an exclusive virtual machine and a shared virtual machine that are the same as the first type.
- Different types of virtual machines according to the target resource specifications and quantities of the first type virtual machine and the second type virtual machine supported by the first physical machine, perform a mixed deployment of exclusive virtual machines and shared virtual machines on the physical machine;
- an exclusive virtual machine refers to a virtual machine in which a virtual processor exclusively occupies the physical processor resources of a physical machine
- a shared virtual machine refers to a virtual machine in which a virtual processor shares physical processor resources.
- the processor 12b when acquiring the first resources required by the first physical machine to deploy the first type virtual machine, is specifically configured to: based on the preset resource specifications of the first type virtual machine, configure the first physical machine based on the preset resource specifications of the first type virtual machine.
- the total resources are greedily boxed to determine the resources occupied by the first type of virtual machine in greedy boxing; the resources occupied by the first type of virtual machine in greedy boxing are determined as the first resources.
- the processor 12b is also configured to: divide the total resources into a first resource pool and a second resource pool according to the target resource specifications and quantity of the first type of virtual machine supported by the first physical machine; Perform isolation processing with the second resource pool to deploy the first type virtual machine and the second type virtual machine in the first resource pool and the second resource pool respectively.
- the physical processor resources are physical cores of the physical processor.
- the processor 12b is also configured to perform virtualization processing on the physical cores in the shared resource pool in which the shared virtual machine is deployed in the first resource pool and the second resource pool to obtain multiple logical cores for use. Shared virtual machines deployed in a shared resource pool share the physical cores in the shared resource pool.
- the processor 12b when the processor 12b performs virtualization processing on the physical cores in the shared resource pool, it is specifically used to: determine the number M of logical cores that need to be virtualized according to the set virtual ratio; the virtual ratio represents 1 physical core.
- the ratio of cores to virtualized logical cores; hyper-threading technology is used to virtualize each physical core in the second resource into M logical cores; M ⁇ 2, and is an integer.
- the number of shared resource pools is 1 or more. Multiple means 2 or more. Multiple shared resource pools correspond to different virtual ratios.
- the processor 12b is also configured to: monitor the inventory levels of exclusive virtual machines and shared virtual machines in the computing cluster; When the inventory water level is less than the set first water level threshold and the inventory level of another type of virtual machine is greater than the set second water level threshold, select the target of the current virtual machine deployment mode as the virtual machine hybrid deployment mode from the computing cluster Physical machine; switch the virtual machine deployment mode of the target physical machine to the virtual machine independent deployment mode of the first target type.
- the processor 12b is also configured to: in the process of switching the virtual machine deployment mode of the target physical machine to the virtual machine independent deployment mode of the first target type, migrate another type of virtual machine deployed on the target physical machine. to a second physical machine that supports the deployment of another type of virtual machine; or, after switching the virtual machine deployment mode of the target physical machine to a separate virtual machine deployment mode of any type, use the idle resources of the target physical machine to deploy the first Target type of virtual machine.
- the processor 12b is also used to: obtain a virtual machine deployment request; obtain the second target type and target resource specification of the virtual machine to be deployed from the virtual machine deployment request; obtain the second target type and target resource specifications of the virtual machine to be deployed; and obtain the target resource specification from the physical machine of the computing cluster. Determine that there is a target resource pool that supports the second target type and a target physical machine that supports the target resource specifications; and deploy the to-be-deployed virtual machine of the second target type in the target resource pool of the target physical machine according to the target resource specifications.
- the computing device provided in this embodiment realizes the mixed deployment of exclusive virtual machines and shared virtual machines by pre-planning the specifications and quantities of exclusive virtual machines and shared virtual machines that can be mixedly deployed on the physical machine. Helps reduce the amount of natural resource fragmentation caused by limited virtual machine specifications.
- the resource specifications and quantities of the first type of virtual machines and the second type of virtual machines supported by the physical machine are pre-scheduled by simulating the total resources of the physical machine with the goal of maximizing the resource utilization of the physical machine. , Therefore, deploying the simulated number and specifications of dedicated virtual machines and shared virtual machines in the physical machine can reduce resource fragmentation during actual resource scheduling of the physical machine and help improve the resource utilization of the physical machine.
- the processor 12b is also used to: obtain the virtual machine inventory level of the first physical machine in the computing cluster where the first type of virtual machine is separately deployed; the first type of virtual machine is an exclusive virtual machine or a shared virtual machine. type of virtual machine; when the virtual machine inventory level is less than the set first water level threshold, select a second physical machine with idle resources that meets the resource requirements of the first type of virtual machine from the physical machines that separately deploy the second type of virtual machine.
- the second type of virtual machine is a type of exclusive virtual machine and shared virtual machine that is different from the first type of virtual machine; switch the virtual machine deployment mode of the second physical machine to support exclusive virtual machines and shared virtual machines Hybrid deployment mode of virtual machines; utilizing the idle resources of the second physical machine, deploying the first type of virtual machine in the second physical machine; wherein, the exclusive virtual machine refers to a virtual processor that exclusively occupies the physical processor resources of the physical machine.
- Virtual machine; a shared virtual machine refers to a virtual machine in which a virtual processor shares physical processor resources.
- the processor 12b when selecting a second physical machine whose idle resources meet the resource requirements of the first type of virtual machine, is specifically configured to: select a model that supports the first type of physical machine from the physical machines that separately deploy the second type of virtual machine. a third physical machine of type virtual machine; and select a second physical machine whose idle resources meet the resource requirements of the first type virtual machine from the third physical machine.
- the processor 12b when the processor 12b deploys the first type of virtual machine in the second physical machine, it is specifically configured to: in response to a deployment request for the first type of virtual machine, schedule from idle resources of the second physical machine that satisfies the requirements. Deploy the target resource required by the requested resource; use the target resource to deploy the first type of virtual machine in the second physical machine.
- the processor 12b is also configured to: utilize the idle resources of the second physical machine to construct a first resource pool;
- a second resource pool is constructed; the first resource pool and the second resource pool are isolated for use in the first resource pool and the second resource pool respectively. Deploy the first type of virtual machine and the second type of virtual machine.
- the second The virtual machine deployment mode of the physical machine is switched to a mixed deployment mode that supports dedicated virtual machines and shared virtual machines. This enables mixed deployment of dedicated virtual machines and shared virtual machines in the second physical machine, which helps reduce the cost of the second physical machine.
- the idle resources in the second physical machine improve the resource utilization of the second physical machine.
- the computing device may also include: a communication component 12c, a power supply component 12d and other optional components. Only some components are schematically shown in FIG. 12 , which does not mean that the computing device must include all the components shown in FIG. 12 , nor does it mean that the computing device can only include the components shown in FIG. 12 .
- the memory is used to store computer programs, and can be configured to store various other data to support operations on the device where it is located.
- the processor can execute the computer program stored in the memory to implement the corresponding The logic should be controlled.
- Memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable memory Read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read-only memory
- EPROM erasable programmable memory Read-only memory
- PROM programmable read-only memory
- ROM read-only memory
- magnetic memory flash memory
- flash memory magnetic or optical disk.
- the processor may be any hardware processing device that can execute the logic of the above method.
- the processor can be a central processing unit (Central Processing Unit, CPU), a graphics processor (Graphics Processing Unit, GPU) or a microcontroller unit (Microcontroller Unit, MCU); it can also be a field programmable gate array (Field -Programmable Gate Array (FPGA), Programmable Array Logic (PAL), General Array Logic (GAL), Complex Programmable Logic Device (CPLD) and other programmable devices ; Or advanced reduced instruction set (RISC) processors (Advanced RISC Machines, ARM) or system on chip (System on Chip, SoC), etc., but are not limited to this.
- RISC advanced reduced instruction set
- the communication component is configured to facilitate wired or wireless communication between the device where it is located and other devices.
- the device where the communication component is located can access a wireless network based on communication standards, such as WiFi, 2G or 3G, 4G, 5G or their combination.
- the communication component receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
- the communication component may also be based on near field communication (NFC) technology, radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology or other technologies to achieve this.
- NFC near field communication
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- the power supply component is configured to provide power to various components of the device where it is located.
- a power component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power component resides.
- embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
- computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
- These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
- the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
- These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
- Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
- a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
- processors CPUs
- input/output interfaces network interfaces
- memory volatile and non-volatile memory
- Memory may include non-permanent storage in computer-readable media, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
- RAM random access memory
- ROM read-only memory
- flash RAM flash random access memory
- the storage medium of a computer is a readable storage medium, which can also be called a readable medium.
- Readable storage media includes permanent and non-permanent, removable and non-removable media and can be implemented by any method or technology to store information. Information may be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), and read-only memory.
- PRAM phase change memory
- SRAM static random access memory
- DRAM dynamic random access memory
- RAM random access memory
- ROM read-only memory
- EEPROM electrically erasable programmable read-only memory
- flash memory or other memory technology
- compact disc read-only memory CD-ROM
- DVD digital versatile disc
- Magnetic tape cassettes disk storage or other magnetic storage devices, or any other non-transmission medium, can be used to store information that can be accessed by a computing device.
- computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
Des modes de réalisation de la présente demande concernent un procédé de planification de ressources, un dispositif et un support de stockage. Dans les modes de réalisation de la présente demande, par pré-planification, pour une machine physique, des spécifications et de la quantité de machines virtuelles exclusives et de machines virtuelles partagées qui peuvent être déployées de manière hybride, un déploiement hybride de machines virtuelles exclusives et de machines virtuelles partagées est réalisé, ce qui facilite la réduction de la quantité de fragments de ressources naturelles provoquée par la limitation des spécifications de machines virtuelles. De plus, étant donné que les spécifications de ressources et la quantité de machines virtuelles de premier type et de machines virtuelles de second type prises en charge par une machine physique sont obtenues par réalisation d'une simulation et d'une planification sur les ressources totales de la machine physique à l'avance avec la maximisation du taux d'utilisation de ressources de la machine physique en tant que cible, le déploiement de machines virtuelles exclusives et de machines virtuelles partagées selon la quantité simulée et les spécifications dans la machine physique peuvent réduire des fragments de ressources pendant la planification de ressources réelle de la machine physique, ce qui facilite l'amélioration du taux d'utilisation de ressources de la machine physique.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210530246.4A CN114880077B (zh) | 2022-05-16 | 2022-05-16 | 资源调度方法、设备及存储介质 |
CN202210530246.4 | 2022-05-16 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023221844A1 true WO2023221844A1 (fr) | 2023-11-23 |
Family
ID=82676705
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2023/093401 WO2023221844A1 (fr) | 2022-05-16 | 2023-05-11 | Procédé de planification de ressources, dispositif et support de stockage |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114880077B (fr) |
WO (1) | WO2023221844A1 (fr) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117573373A (zh) * | 2024-01-15 | 2024-02-20 | 中诚华隆计算机技术有限公司 | 一种基于云计算的cpu虚拟化调度方法及系统 |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114880077B (zh) * | 2022-05-16 | 2024-08-30 | 阿里巴巴(中国)有限公司 | 资源调度方法、设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130275975A1 (en) * | 2010-10-27 | 2013-10-17 | Hitachi, Ltd. | Resource management server, resource management method and storage medium in which resource management program is stored |
CN109144706A (zh) * | 2017-06-15 | 2019-01-04 | 阿里巴巴集团控股有限公司 | 一种cpu资源的动态分配方法、装置及物理机 |
US20210089362A1 (en) * | 2018-02-19 | 2021-03-25 | Nippon Telegraph And Telephone Corporation | Virtual resource management device, virtual resource allocation method, and virtual resource allocation program |
CN113342534A (zh) * | 2021-06-29 | 2021-09-03 | 中国电信股份有限公司 | 图形处理资源调配方法、装置、设备及存储介质 |
CN114880077A (zh) * | 2022-05-16 | 2022-08-09 | 阿里巴巴(中国)有限公司 | 资源调度方法、设备及存储介质 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107870802B (zh) * | 2016-09-27 | 2021-09-07 | 阿里巴巴集团控股有限公司 | 一种虚拟机迁移方法和装置 |
CN117632361A (zh) * | 2019-12-31 | 2024-03-01 | 华为技术有限公司 | 一种资源调度方法、装置及相关设备 |
CN113849259A (zh) * | 2020-06-28 | 2021-12-28 | 华为技术有限公司 | 一种虚拟机和容器混合调度系统、方法、调度器及装置 |
-
2022
- 2022-05-16 CN CN202210530246.4A patent/CN114880077B/zh active Active
-
2023
- 2023-05-11 WO PCT/CN2023/093401 patent/WO2023221844A1/fr unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130275975A1 (en) * | 2010-10-27 | 2013-10-17 | Hitachi, Ltd. | Resource management server, resource management method and storage medium in which resource management program is stored |
CN109144706A (zh) * | 2017-06-15 | 2019-01-04 | 阿里巴巴集团控股有限公司 | 一种cpu资源的动态分配方法、装置及物理机 |
US20210089362A1 (en) * | 2018-02-19 | 2021-03-25 | Nippon Telegraph And Telephone Corporation | Virtual resource management device, virtual resource allocation method, and virtual resource allocation program |
CN113342534A (zh) * | 2021-06-29 | 2021-09-03 | 中国电信股份有限公司 | 图形处理资源调配方法、装置、设备及存储介质 |
CN114880077A (zh) * | 2022-05-16 | 2022-08-09 | 阿里巴巴(中国)有限公司 | 资源调度方法、设备及存储介质 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117573373A (zh) * | 2024-01-15 | 2024-02-20 | 中诚华隆计算机技术有限公司 | 一种基于云计算的cpu虚拟化调度方法及系统 |
CN117573373B (zh) * | 2024-01-15 | 2024-03-26 | 中诚华隆计算机技术有限公司 | 一种基于云计算的cpu虚拟化调度方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN114880077B (zh) | 2024-08-30 |
CN114880077A (zh) | 2022-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2023221844A1 (fr) | Procédé de planification de ressources, dispositif et support de stockage | |
US9268394B2 (en) | Virtualized application power budgeting | |
CN112148489B (zh) | 游戏资源调度方法、装置、设备及存储介质 | |
US10193963B2 (en) | Container virtual machines for hadoop | |
US9898794B2 (en) | Host-based GPU resource scheduling | |
EP3253027B1 (fr) | Procédé et appareil d'attribution de ressources pour machines virtuelles | |
JP6564838B2 (ja) | インダストリアル・インターネットオペレーティングシステムに基づくマルチオペレーティングシステム運行方法および装置 | |
US9875124B2 (en) | Data assignment and data scheduling for physical machine in a virtual machine environment | |
CN111880750A (zh) | 磁盘读写资源的分配方法、装置、设备及存储介质 | |
US20130343399A1 (en) | Offloading virtual machine flows to physical queues | |
CN111796908A (zh) | 一种资源自动弹性伸缩的系统、方法及云平台 | |
CN113674131B (zh) | 硬件加速器设备管理方法、装置及电子设备和存储介质 | |
CN111176829B (zh) | 虚拟化处理系统中的物理功能和虚拟功能的灵活资源分配 | |
WO2023093843A1 (fr) | Dispositif de configuration, dispositif de planification, procédé de configuration, et procédé de planification | |
WO2023050819A1 (fr) | Système sur puce, procédé et dispositif de traitement de tâche de machine virtuelle, et support de stockage | |
US11169844B2 (en) | Virtual machine migration to multiple destination nodes | |
CN113296926B (zh) | 一种资源分配方法、计算设备及存储介质 | |
CA2982132A1 (fr) | Systeme de gestion d'infrastructure de service de reseau et procede de fonctionnement | |
CN103034526A (zh) | 一种虚拟化服务的实现方法和装置 | |
CN109697105A (zh) | 一种容器云环境物理机选择方法及其系统、虚拟资源配置方法及迁移方法 | |
WO2018137363A1 (fr) | Procédé et appareil permettant de régler la capacité d'accélération d'une machine virtuelle | |
CN113064695A (zh) | 显存资源的处理方法和装置 | |
US11954534B2 (en) | Scheduling in a container orchestration system utilizing hardware topology hints | |
CN114942846A (zh) | Gpu资源调度方法、装置、设备及存储介质 | |
US20240354140A1 (en) | Mapping virtual processor cores to heterogeneous physical processor cores |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23806796 Country of ref document: EP Kind code of ref document: A1 |