A bare-metal resource management method, apparatus, device, and readable storage medium
By monitoring the utilization rate of virtualized nodes and virtual machine clusters in the cloud computing management platform, and starting the virtualized nodes and virtual machine operating systems from idle bare metal, the problems of reduced transmission rate and waste of bare metal resources are solved, and more efficient resource utilization and performance improvement are achieved.
Patent Information
- Application Number
- CN202210602052.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-30
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2042-05-30
AI Technical Summary
In a cloud computing management platform, excessive virtual machine resources may lead to a reduction in transmission rate, and bare metal may easily cause resource waste.
By monitoring the virtualized node storage space utilization and virtual machine cluster utilization in the cloud management platform, when the preset value is reached, the virtualized node operating system and/or virtual machine operating system of the target virtualized node is retrieved from the bare metal cluster to start the virtualized node's virtualized node operating system and/or virtual machine operating system to alleviate the pressure of virtual machine usage and improve bare metal utilization.
Effectively utilize bare metal resources, reduce the pressure on virtual machines, and improve the overall performance and resource utilization of cloud management platforms.
Smart Images

Figure CN114995951B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of virtualization technology, and in particular, to a method, device, equipment and computer-readable storage medium for managing bare-metal resources. Background Art
[0002] In a cloud computing management platform, virtual machines, as the most important resources in the platform, provide services to platform users. According to user requirements and following the principle of on-demand allocation, virtual machines can be quickly created and put into use, and can be quickly created and upgraded without the user's perception. When not needed by the user, they can be deleted to release resources. However, there are also certain disadvantages. For example, when there are too many virtual machine resources under the platform, the transmission rate may be reduced. At the same time, sharing the server with other virtual machines may be affected by other multiple virtual machines, and the security is average.
[0003] The emergence of bare metal effectively makes up for the above disadvantages of virtual machines. Bare metal is usually an effective supplement to virtual machine services. Compared with virtual machines, bare metal can be independently and quickly deployed, supports network communication with virtual machines, and can avoid performance loss. Bare metal can be managed into the cloud management platform, but at the same time, it has isolation from virtual machines under the cloud management platform, so the security is high. Although bare metal has the above advantages, it also has certain disadvantages. First, because it occupies the entire physical machine exclusively, the cost is expensive. At the same time, bare metal will not be deleted and released when idle like a virtual machine, so resources will be wasted when idle.
[0004] In summary, how to effectively solve the problems such as the reduction of the transmission rate when there are too many virtual machine resources under the platform and the easy waste of resources by bare metal is an urgent problem for those skilled in the art at present. Summary of the Invention
[0005] The purpose of the present invention is to provide a method for managing bare-metal resources, which makes full use of bare metal, alleviates the pressure of virtual machine usage, and can provide better services for hosts or virtual machines in the cloud management platform; another purpose of the present invention is to provide a device, equipment and computer-readable storage medium for managing bare-metal resources.
[0006] To solve the above technical problems, the present invention provides the following technical solutions:
[0007] When it is monitored that the storage space usage rate of a virtualization node in the cloud management platform reaches a first preset value, the virtualization node with the storage space usage rate reaching the first preset value is determined as the target virtualization node;
[0008] When it is monitored that the usage rate of the virtual machine cluster in the cloud management platform reaches the second preset value, search for the virtual machine operating system of the spare disk pre-deployed in the cloud management platform; wherein, the spare disk is obtained by partitioning a preset raw device storage pool.
[0009] Invoke an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or the virtual machine operating system of the target virtualization node.
[0010] In a specific embodiment of the present invention, invoking an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or the virtual machine operating system of the target virtualization node includes:
[0011] Determine whether the idle bare machines in the bare machine cluster meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system.
[0012] If not, then according to the startup priority of starting the virtualization node operating system first and then starting the virtual machine operating system, invoke an idle bare machine from the bare machine cluster to start the virtualization node operating system.
[0013] In a specific embodiment of the present invention, after invoking an idle bare machine from the bare machine cluster to start the virtualization node operating system, it further includes:
[0014] Use the disk of the idle bare machine to establish an image library to provide image library services to the hosts and virtual machines in the cloud management platform by using the image library.
[0015] In a specific embodiment of the present invention, after invoking an idle bare machine from the bare machine cluster to start the virtualization node operating system, it further includes:
[0016] When it is monitored that the storage space usage rate of the target virtualization node is lower than the third preset value, use the idle bare machine to release the virtualization node operating system; wherein, the third preset value is less than the first preset value.
[0017] In a specific embodiment of the present invention, after invoking an idle bare machine from the bare machine cluster to start the virtualization node operating system, it further includes:
[0018] Monitor whether an idle bare machine is recovered in the bare machine cluster.
[0019] If so, then invoke an idle bare machine from the bare machine cluster to start the virtual machine operating system.
[0020] In a specific embodiment of the present invention, after invoking an idle bare machine from the bare machine cluster to start the virtual machine operating system, it further includes:
[0021] When it is monitored that the utilization rate of the virtual machine cluster is lower than the fourth preset value, search for the virtual machines converted from bare machines in the virtual machine cluster; wherein, the fourth preset value is less than the second preset value.
[0022] Control the virtual machines converted from bare machines to shut down, so that the virtual machines converted from bare machines are converted back to bare machines.
[0023] In a specific embodiment of the present invention, it further includes:
[0024] When it is detected that there are spare disks that have not been used for more than a preset duration, perform a deletion operation on the spare disks that have not been used for more than the preset duration.
[0025] A bare machine resource management device includes:
[0026] A target virtualization node determination module, configured to, when it is monitored that the storage space utilization rate of a virtualization node in the cloud management platform reaches the first preset value, determine the virtualization node with the storage space utilization rate reaching the first preset value as the target virtualization node.
[0027] A virtual machine operating system search module, configured to, when it is monitored that the utilization rate of the virtual machine cluster in the cloud management platform reaches the second preset value, search for the virtual machine operating systems of the spare disks pre-deployed in the cloud management platform; wherein, the spare disks are obtained by partitioning a preset raw device storage pool.
[0028] An operating system startup module, configured to retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or the virtual machine operating system of the target virtualization node.
[0029] A bare machine resource management device includes:
[0030] A memory, configured to store a computer program.
[0031] A processor, configured to implement the steps of the bare machine resource management method as described above when executing the computer program.
[0032] A computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the bare machine resource management method as described above.
[0033] The bare machine resource management method provided by the present invention determines a virtualization node with a storage space utilization rate reaching a first preset value as a target virtualization node when it is detected that the storage space utilization rate of a virtualization node in the cloud management platform reaches the first preset value; when it is detected that the utilization rate of the virtual machine cluster in the cloud management platform reaches a second preset value, it searches for the virtual machine operating system of a spare disk pre-deployed in the cloud management platform; wherein, the spare disk is obtained by partitioning a preset bare device storage pool; and it invokes an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or the virtual machine operating system of the target virtualization node.
[0034] As can be seen from the above technical solution, by monitoring the storage space usage of virtualization nodes and the utilization rate of the virtual machine cluster in the cloud management platform. When it is determined that the storage space of the virtualization node is insufficient or the utilization rate of the virtual machine cluster is too high, according to the remaining situation of idle bare machines in the bare machine cluster, if there are sufficient idle bare machines remaining, it invokes an idle bare machine from the bare machine cluster to start the virtualization node operating system and the virtual machine operating system of the target virtualization node. If there are insufficient idle bare machines remaining, it invokes an idle bare machine from the bare machine cluster to start the virtualization node operating system or the virtual machine operating system of the target virtualization node. Thus, the bare machines can be utilized more fully in the cloud management platform. When the bare machines are idle, the bare machines can be converted into virtual machines to relieve the pressure of virtual machine usage, or the bare machines can be converted into virtualization nodes, and then provide services for the hosts or virtual machines in the cloud management platform.
[0035] Correspondingly, the present invention also provides a bare machine resource management device, a device, and a computer-readable storage medium corresponding to the above bare machine resource management method, which have the above technical effects and will not be elaborated herein. Description of the Drawings
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0037] Figure 1 It is a flowchart of an implementation of the bare machine resource management method in an embodiment of the present invention;
[0038] Figure 2 It is another flowchart of an implementation of the bare machine resource management method in an embodiment of the present invention;
[0039] Figure 3 It is a structural block diagram of a bare machine resource management device in an embodiment of the present invention;
[0040] Figure 4Block diagram of a bare machine resource management device in an embodiment of the present invention;
[0041] Figure 5 Specific structural schematic diagram of a bare machine resource management device provided in this embodiment. Detailed implementation manners
[0042] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation manners. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0043] See Figure 1 , Figure 1 It is an implementation flowchart of a bare machine resource management method in an embodiment of the present invention. The method may include the following steps:
[0044] S101: When it is monitored that the storage space usage rate of a virtualization node in the cloud management platform reaches a first preset value, the virtualization node with the storage space usage rate reaching the first preset value is determined as the target virtualization node.
[0045] The cloud management platform is deployed on multiple hosts. Usually, a management node icenter is deployed on one of the multiple hosts in the cloud management platform, and virtualization nodes inode are deployed on the remaining hosts. The management node is responsible for scheduling multiple virtualization nodes, and multiple virtual machines are pre-created in each host. The storage space usage rate threshold of the virtualization nodes in the cloud management platform is preset, and the storage space usage rate of each virtualization node in the cloud management platform can be monitored in real time or at a preset time interval. When it is monitored that the storage space usage rate of a virtualization node in the cloud management platform reaches the first preset value, the virtualization node with the storage space usage rate reaching the first preset value is determined as the target virtualization node.
[0046] It should be noted that the first preset value can be set and adjusted according to actual situations, and the embodiments of the present invention do not limit this, for example, it can be set to 85%.
[0047] S102: When it is monitored that the usage rate of the virtual machine cluster in the cloud management platform reaches a second preset value, search for the virtual machine operating system of the spare disk pre-deployed in the cloud management platform.
[0048] Among them, the spare disk is obtained by partitioning a preset raw device storage pool.
[0049] Pre-set a raw device storage pool in the cloud management platform, divide multiple spare disk LUNs in the raw device storage pool, pre-install multiple virtual machine operating systems (Operating System, OS) into the spare disks, and the spare disks with the same type of operating system can also be divided into one block for easy use. The virtual machines deployed on each host in the cloud management platform form a virtual machine cluster, and the usage rate threshold of the virtual machine cluster in the cloud management platform is pre-set. It is possible to monitor the usage rate of the virtual machine cluster in the cloud management platform in real time or at a pre-set time interval. When it is detected that the usage rate of the virtual machine cluster in the cloud management platform reaches the second preset value, search for the virtual machine operating system of the spare disk pre-deployed in the cloud management platform.
[0050] It should be noted that the second preset value can be set and adjusted according to the actual situation, and the embodiments of the present invention do not limit this, for example, it can be set to 90%.
[0051] It should be noted that the first and second in the first preset value and the second preset value in the embodiments of the present invention are only used to distinguish the storage space usage rate threshold of the virtualization node and the usage rate threshold of the virtual machine cluster, and there is no distinction in size or order.
[0052] S103: Retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or virtual machine operating system of the target virtualization node.
[0053] Pre-configure the Baseboard Management Controller (BMC) of the bare machine to support booting from the disk LUN surface where the virtualization node operating system and / or virtual machine operating system of the remote end is located when starting, so as to manage the bare machine into the cloud management platform. When the storage space usage rate of the virtualization node in the cloud management platform is relatively high, start the bare machine from the disk LUN at a fixed point, and the virtualization node operating system of the target virtualization node is installed on this LUN. When the usage rate of the virtual machines in the cloud management platform is high and the virtual machine cluster is under a large workload, the bare machine can be started from the disk LUN at a fixed point, and the operating system of the virtual machine is installed on this LUN.
[0054] When it is only determined that there is a virtualization node in the cloud management platform whose storage space usage rate reaches the first preset value, or it is only determined that the usage rate of the virtual machine cluster in the cloud management platform reaches the second preset value, or it is determined that there is a virtualization node in the cloud management platform whose storage space usage rate reaches the first preset value and the usage rate of the virtual machine cluster reaches the second preset value, retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or virtual machine operating system of the corresponding target virtualization node.
[0055] That is, when there is only a virtualization node in the cloud management platform whose storage space utilization rate reaches the first preset value, the virtualization node operating system of the target virtualization node is started by retrieving an idle bare machine from the bare machine cluster. When the utilization rate of the virtual machine cluster in the cloud management platform reaches the second preset value, it indicates that the virtual machines are in a high-load working mode. An idle bare machine is retrieved from the bare machine cluster, the services of the idle bare machine are shut down, and the virtual machine operating system is started using the idle bare machine. When there is a virtualization node in the cloud management platform whose storage space utilization rate reaches the first preset value and the utilization rate of the virtual machine cluster reaches the second preset value, it is possible to determine whether to start only the virtualization node operating system of the target virtualization node, or only the virtual machine operating system, or start both the virtualization node operating system of the target virtualization node and the virtual machine operating system, depending on the remaining situation of the idle bare machines in the bare machine cluster. By converting idle bare machines into virtual machines, the utilization rate of the bare machines can be effectively increased. When the need for bare machines or the pressure on virtual machines is small, the virtual machines can be converted back into bare machines for use, alleviating the pressure on the use of virtual machines.
[0056] As can be seen from the above technical solution, by monitoring the storage space usage of virtualization nodes and the utilization rate of the virtual machine cluster in the cloud management platform. When it is determined that the storage space of the virtualization node is insufficient or the utilization rate of the virtual machine cluster is too high, according to the remaining situation of the idle bare machines in the bare machine cluster, if there are sufficient idle bare machines remaining, idle bare machines are retrieved from the bare machine cluster to start the virtualization node operating system and the virtual machine operating system of the target virtualization node. If there are insufficient idle bare machines remaining, idle bare machines are retrieved from the bare machine cluster to start the virtualization node operating system or the virtual machine operating system of the target virtualization node. Thus, the bare machines can be more fully utilized in the cloud management platform. When the bare machines are idle, the bare machines can be converted into virtual machines to alleviate the pressure on the use of virtual machines, or the bare machines can be converted into virtualization nodes to provide services for the hosts or virtual machines in the cloud management platform.
[0057] It should be noted that based on the above embodiments, the embodiments of the present invention also provide corresponding improvement solutions. In the subsequent embodiments, the same steps or corresponding steps involved in the above embodiments can be referred to each other, and the corresponding beneficial effects can also be referred to each other. They will not be elaborated one by one in the following improved embodiments.
[0058] In a specific implementation manner of the present invention, the method may further include the following steps:
[0059] When it is detected that there is a spare disk that has not been used for more than a preset duration, a deletion operation is performed on the spare disk that has not been used for more than the preset duration.
[0060] After partitioning multiple spare disk LUNs from the raw device storage pool, it is possible to detect whether there are spare disks that have not been used for a long time. When it is detected that there are spare disks that have not been used for more than a preset duration, delete operations are performed on the spare disks that have not been used for more than the preset duration. This ensures that a certain number of operating system spare disks are reserved as spares, and the spare disks that have not been used for a long time are deleted to prevent space occupation.
[0061] See Figure 2 , Figure 2 FIG. is another flowchart of the bare metal resource management method in an embodiment of the present invention. The method may include the following steps:
[0062] S201: When it is monitored that the storage space utilization rate of a virtualization node in the cloud management platform reaches a first preset value, determine the virtualization node with the storage space utilization rate reaching the first preset value as the target virtualization node.
[0063] S202: When it is monitored that the utilization rate of the virtual machine cluster in the cloud management platform reaches a second preset value, search for the virtual machine operating system of the spare disk pre-deployed in the cloud management platform.
[0064] Among them, the spare disk is obtained by partitioning a preset raw device storage pool.
[0065] S203: Determine whether the idle bare machines in the bare metal cluster meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system. If so, execute step S204; if not, execute step S205.
[0066] When it is determined that there is a virtualization node in the cloud management platform with a storage space utilization rate reaching the first preset value and the utilization rate of the virtual machine cluster reaches the second preset value, determine whether the idle bare machines in the bare metal cluster meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system. If so, it means that there are sufficient idle bare machines in the bare metal cluster, and execute step S204; if not, it means that the idle bare machines in the bare metal cluster are temporarily insufficient, and execute step S205.
[0067] S204: Invoke idle bare machines from the bare metal cluster to start the virtualization node operating system and the virtual machine operating system of the target virtualization node.
[0068] When it is determined that the idle bare machines in the bare metal cluster meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system, it means that there are sufficient idle bare machines in the bare metal cluster. Invoke idle bare machines from the bare metal cluster to start the virtualization node operating system and the virtual machine operating system of the target virtualization node. This not only alleviates the pressure on virtual machine usage but also realizes the conversion of bare machines into virtualization nodes, thereby providing services for hosts or virtual machines in the cloud management platform.
[0069] S205: According to the startup priority of starting the virtualization node operating system first and then the virtual machine operating system, retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system.
[0070] Preset the startup priorities of the virtual machine operating system and the virtualization node operating system when it is determined that the idle bare machines in the bare machine cluster do not meet the startup conditions for both starting the virtualization node operating system and the virtual machine operating system. When it is determined that the idle bare machines in the bare machine cluster do not meet the startup conditions for both starting the virtualization node operating system and the virtual machine operating system, it indicates that the idle bare machines in the bare machine cluster are temporarily insufficient. According to the startup priority of starting the virtualization node operating system first and then the virtual machine operating system, retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system.
[0071] In a specific embodiment of the present invention, after step S205, the method may further include the following steps:
[0072] When it is monitored that the storage space utilization rate of the target virtualization node is lower than the third preset value, use the idle bare machine to release the virtualization node operating system; wherein, the third preset value is less than the first preset value.
[0073] After retrieving an idle bare machine from the bare machine cluster to start the virtualization node operating system, it can be monitored in real time or at a preset time interval whether the storage space utilization rate of the target virtualization node has been lower than the preset third preset value, and the third preset value is less than the first preset value, such as it can be set to 65%. When it is monitored that the storage space utilization rate of the target virtualization node is lower than the third preset value, use the idle bare machine to release the virtualization node operating system, so that the idle bare machine is converted back to a bare machine from the virtualization node and is subsequently used to provide bare machine services.
[0074] In a specific embodiment of the present invention, after step S205, the method may further include the following steps:
[0075] Step 1: Monitor whether an idle bare machine is recovered in the bare machine cluster. If so, execute Step 2; if not, do nothing.
[0076] Step 2: Retrieve an idle bare machine from the bare machine cluster to start the virtual machine operating system.
[0077] For ease of description, the above two steps can be combined for explanation.
[0078] After retrieving an idle bare machine from the bare machine cluster to start the virtualization node operating system, since the current utilization rate of the virtual machine cluster is still at a high level and has not been resolved, it is possible to monitor in real time or at a preset time interval whether an idle bare machine is retrieved in the bare machine cluster. If so, it means there is an available bare machine in the bare machine cluster, and an idle bare machine is retrieved from the bare machine cluster to start the virtual machine operating system. If not, it means there is still no available bare machine in the bare machine cluster, and no processing is performed.
[0079] In a specific embodiment of the present invention, after retrieving an idle bare machine from the bare machine cluster to start the virtual machine operating system, the method may further include the following steps:
[0080] Step 1: When it is monitored that the utilization rate of the virtual machine cluster is lower than a fourth preset value, search for the virtual machines converted from bare machines in the virtual machine cluster; wherein, the fourth preset value is less than the second preset value;
[0081] Step 2: Control the virtual machines converted from bare machines to shut down, so that the virtual machines converted from bare machines are converted back to bare machines.
[0082] For ease of description, the above two steps can be combined for explanation.
[0083] After retrieving an idle bare machine from the bare machine cluster to start the virtual machine operating system, it is possible to monitor in real time or at a preset time interval whether the utilization rate of the virtual machine cluster is lower than a fourth preset value, where the fourth preset value is less than the second preset value. When it is monitored that the utilization rate of the virtual machine cluster is lower than the fourth preset value, search for the virtual machines converted from bare machines in the virtual machine cluster, and control the virtual machines converted from bare machines to shut down, so that the virtual machines converted from bare machines are converted back to bare machines.
[0084] S206: Establish an image library using the disk of the idle bare machine, so as to provide image library services to the hosts and virtual machines in the cloud management platform using the image library.
[0085] After retrieving an idle bare machine from the bare machine cluster to start the virtualization node operating system, establish an image library using the disk of the idle bare machine, thereby providing image library services to the hosts and virtual machines in the cloud management platform using the image library, such as establishing a storage pool using the disk on the bare machine to provide storage pool services, or further converting the storage pool into an image library to provide image library services to other virtualization nodes or virtual machines in the cloud management platform.
[0086] Corresponding to the above method embodiment, the present invention also provides a bare machine resource management device, and the bare machine resource management device described below can be correspondingly referred to the bare machine resource management method described above.
[0087] See Figure 3 , Figure 3The following is a structural block diagram of a bare-metal resource management device in an embodiment of the present invention. The device may include:
[0088] A target virtualization node determination module 31, configured to determine a virtualization node with a storage space usage rate reaching a first preset value as a target virtualization node when it is detected that the storage space usage rate of a virtualization node in the cloud management platform reaches the first preset value;
[0089] A virtual machine operating system search module 32, configured to search for the virtual machine operating system of a spare disk pre-deployed in the cloud management platform when it is detected that the usage rate of the virtual machine cluster in the cloud management platform reaches a second preset value; wherein, the spare disk is obtained by partitioning a preset raw device storage pool;
[0090] An operating system startup module 33, configured to retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or the virtual machine operating system of the target virtualization node.
[0091] As can be seen from the above technical solutions, by monitoring the storage space usage of virtualization nodes and the usage rate of the virtual machine cluster in the cloud management platform. When it is determined that the storage space of the virtualization node is insufficient or the usage rate of the virtual machine cluster is too high, according to the remaining situation of idle bare machines in the bare machine cluster, if there are sufficient idle bare machines, retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system and the virtual machine operating system of the target virtualization node. If there are insufficient idle bare machines, retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system or the virtual machine operating system of the target virtualization node. Thus, the bare machines can be more fully utilized in the cloud management platform. When the bare machines are idle, the bare machines can be converted into virtual machines to relieve the pressure of virtual machine usage, or the bare machines can be converted into virtualization nodes, and then provide services for the hosts or virtual machines in the cloud management platform.
[0092] In a specific embodiment of the present invention, the operating system startup module 33 includes:
[0093] A judgment sub-module, configured to judge whether the idle bare machines in the bare machine cluster meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system;
[0094] An operating system startup sub-module, configured to, when it is determined that the idle bare machines in the bare machine cluster do not meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system, retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system according to the startup priority of starting the virtualization node operating system first and then starting the virtual machine operating system.
[0095] In a specific embodiment of the present invention, the device may further include:
[0096] An image library building module, configured to build an image library using the disk of the idle bare machine after starting the virtualization node operating system by retrieving an idle bare machine from the bare machine cluster, so as to provide image library services to the hosts and virtual machines in the cloud management platform using the image library.
[0097] In a specific embodiment of the present invention, the device may further include:
[0098] An operating system releasing module, configured to release the virtualization node operating system using the idle bare machine when it is detected that the storage space utilization rate of the target virtualization node is lower than a third preset value after starting the virtualization node operating system by retrieving an idle bare machine from the bare machine cluster; wherein, the third preset value is less than the first preset value.
[0099] In a specific embodiment of the present invention, the device may further include:
[0100] An idle bare machine monitoring module, configured to monitor whether an idle bare machine is recovered in the bare machine cluster after starting the virtualization node operating system by retrieving an idle bare machine from the bare machine cluster;
[0101] A virtual machine operating system starting module, configured to start the virtual machine operating system by retrieving an idle bare machine from the bare machine cluster when it is monitored that an idle bare machine is recovered in the bare machine cluster.
[0102] In a specific embodiment of the present invention, the device may further include:
[0103] A virtual machine conversion module, configured to search for a virtual machine converted from a bare machine in the virtual machine cluster when it is detected that the utilization rate of the virtual machine cluster is lower than a fourth preset value after starting the virtual machine operating system by retrieving an idle bare machine from the bare machine cluster; wherein, the fourth preset value is less than the second preset value;
[0104] A virtual machine shutdown module, configured to control the virtual machine converted from a bare machine to shut down, so that the virtual machine converted from a bare machine is converted back to a bare machine.
[0105] In a specific embodiment of the present invention, the device may further include:
[0106] A disk deletion module, configured to perform a deletion operation on a spare disk that has not been used for more than a preset duration when it is detected that there is a spare disk that has not been used for more than a preset duration.
[0107] Corresponding to the above method embodiment, refer to Figure 4 , Figure 4 which is a schematic diagram of the bare machine resource management device provided by the present invention. The device may include:
[0108] A memory 332 for storing computer programs;
[0109] A processor 322 for implementing the steps of the bare-metal resource management method in the above method embodiments when executing the computer program.
[0110] Specifically, please refer to Figure 5 , Figure 5 FIG.
[0111] The bare-metal resource management device 301 may further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341.
[0112] The steps in the above-described bare-metal resource management method can be implemented by the structure of the bare-metal resource management device.
[0113] Corresponding to the above method embodiments, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0114] When it is detected that the storage space usage rate of a virtualization node in the cloud management platform reaches a first preset value, the virtualization node with the storage space usage rate reaching the first preset value is determined as the target virtualization node; when it is detected that the usage rate of the virtual machine cluster in the cloud management platform reaches a second preset value, search for the virtual machine operating system of the spare disk pre-deployed in the cloud management platform; wherein, the spare disk is obtained by partitioning a preset raw device storage pool; and retrieve an idle bare machine from the bare machine cluster to start the virtualization node operating system and / or the virtual machine operating system of the target virtualization node.
[0115] The computer-readable storage medium may include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.
[0116] For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, and the present invention will not be elaborated herein.
[0117] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the devices, equipment, and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and reference can be made to the description in the method part for the relevant parts.
[0118] Specific examples are used in this article to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the technical solution and its core idea of the present invention. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
Claims
1. A bare-metal resource management method, characterized in that, Including: When it is monitored that the storage space utilization rate of a virtualization node in the cloud management platform reaches a first preset value, determining the virtualization node with the storage space utilization rate reaching the first preset value as a target virtualization node; When it is monitored that the utilization rate of the virtual machine cluster in the cloud management platform reaches a second preset value, searching for the virtual machine operating system of a spare disk pre-deployed in the cloud management platform; wherein, the spare disk is obtained by partitioning a preset raw device storage pool; Judging whether the idle bare machines in the bare machine cluster meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system; If not, then according to the startup priority of starting the virtualization node operating system first and then starting the virtual machine operating system, calling an idle bare machine from the bare machine cluster to start the virtualization node operating system; Using the disk of the idle bare machine to establish an image library to provide image library services to the hosts and virtual machines in the cloud management platform by using the image library; When it is monitored that the storage space utilization rate of the target virtualization node is lower than a third preset value, using the idle bare machine to release the virtualization node operating system, so that the idle bare machine is converted back from a virtualization node to a bare machine for providing bare machine services; wherein, the third preset value is less than the first preset value.
2. The bare-metal resource management method according to claim 1, characterized in that, After calling an idle bare machine from the bare machine cluster to start the virtualization node operating system, it further includes: Monitoring whether an idle bare machine is recovered in the bare machine cluster; If so, then calling an idle bare machine from the bare machine cluster to start the virtual machine operating system.
3. The bare-metal resource management method according to claim 2, characterized in that, After calling an idle bare machine from the bare machine cluster to start the virtual machine operating system, it further includes: When it is monitored that the utilization rate of the virtual machine cluster is lower than a fourth preset value, searching for the virtual machines converted from bare machines in the virtual machine cluster; wherein, the fourth preset value is less than the second preset value; Controlling the virtual machines converted from bare machines to shut down, so that the virtual machines converted from bare machines are converted back to bare machines.
4. The bare-metal resource management method according to any one of claims 1 to 3, characterized in that, It further includes: When it is detected that there is a spare disk that has not been used for more than a preset duration, performing a deletion operation on the spare disk that has not been used for more than the preset duration.
5. A bare-metal resource management device, characterized in that, Including: A target virtualization node determination module, configured to determine a virtualization node with a storage space utilization rate reaching a first preset value as a target virtualization node when it is monitored that there is a virtualization node in the cloud management platform whose storage space utilization rate reaches the first preset value; A virtual machine operating system search module, configured to search for the virtual machine operating system of a spare disk pre-deployed in the cloud management platform when it is monitored that the utilization rate of the virtual machine cluster in the cloud management platform reaches a second preset value; wherein, the spare disk is obtained by partitioning a preset raw device storage pool; An operating system startup module, and the operating system startup module includes: A judgment sub-module, configured to judge whether the idle bare machines in the bare machine cluster meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system; An operating system startup sub-module, configured to, when it is determined that the idle bare machines in the bare machine cluster do not meet the startup conditions for starting both the virtualization node operating system and the virtual machine operating system, according to the startup priority of starting the virtualization node operating system first and then starting the virtual machine operating system, retrieve idle bare machines from the bare machine cluster to start the virtualization node operating system; An image library establishment module, configured to, after retrieving idle bare machines from the bare machine cluster to start the virtualization node operating system, use the disks of the idle bare machines to establish an image library, so as to provide image library services to the hosts and virtual machines in the cloud management platform by using the image library; An operating system release module, configured to, after retrieving idle bare machines from the bare machine cluster to start the virtualization node operating system, when it is monitored that the storage space utilization rate of the target virtualization node is lower than a third preset value, use the idle bare machines to release the virtualization node operating system, so that the idle bare machines are converted back from virtualization nodes to bare machines for providing bare machine services; wherein, the third preset value is less than the first preset value.
6. A bare-metal resource management device, characterized in that, Comprising: A memory, configured to store a computer program; A processor, configured to implement the steps of the bare machine resource management method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the bare machine resource management method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Bare computer server management method and system, electronic equipment and storage medium
CN110795158A
Unified management method and system for computing resources
CN111857960A