A bare metal server control method, device, and medium

By obtaining the service load information of the cloud computing cluster, we judge the performance of the bare metal cluster and virtual machine cluster. If the conditions are met, the system disk will be mapped to the bare metal server to build a bare metal instance, which solves the problem of bare metal server computing resources sharing the business pressure of cloud platform and improves the performance and resource utilization of the cloud computing cluster.

CN114995954BActive Publication Date: 2025-07-25JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210611772.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-31
Publication Date
2025-07-25
Estimated Expiration
2042-05-31

AI Technical Summary

Technical Problem

The existing technology cannot effectively utilize the computing resources of bare metal servers to share the business pressure of the cloud platform, resulting in wasted computing resources.

Method used

By obtaining the service load information of the cloud computing cluster, we can determine whether the performance of the bare metal cluster and virtual machine cluster meets the preset conditions. If so, map the system disk to the bare metal server to add the virtual disk, and build a bare metal instance, and call the bare metal instance to handle the business of the cloud computing cluster.

Benefits of technology

It realizes the use of the computing resources of bare metal servers to reduce business pressure, improve the overall performance of cloud computing clusters, and improve the utilization rate of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114995954B_ABST
    Figure CN114995954B_ABST
Patent Text Reader

Abstract

This application relates to the field of cloud computing, and discloses a bare metal server control method, device, and medium, including: obtaining the business load information of a cloud computing cluster to determine whether the virtual machine cluster can bear the current business pressure and whether the bare machine cluster has remaining computing resources according to the business load information. If both meet the preset conditions, map the system disk to the bare metal server to add a virtual disk to the bare metal server, and construct a bare machine instance, so that the cloud platform can call the bare machine instance to process the business of the cloud computing cluster. In this application, when the performance of the cloud computing cluster cannot bear the current business pressure, map the system disk to the bare metal server to construct a bare machine instance based on the bare metal server, and process the business of the cloud computing cluster through the bare machine instance, so as to achieve the purpose of reducing the business pressure by using the computing resources of the bare metal server, improving the overall performance of the cloud computing cluster and the utilization rate of computing resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing, and particularly to a method, device, and medium for controlling a bare metal server. Background Art

[0002] A bare metal server is a physical server used to provide cloud computing services for a single tenant, with strong computing performance, and is mostly used to build a bare metal cluster to provide services such as high-performance computing and big data processing for users.

[0003] Both the bare metal cluster and the virtual machine cluster work under the control of the cloud platform. Due to the poor performance of the virtual machine cluster, it may occur that the number or performance of virtual machines cannot meet the computing needs of users, while the computing resources of the bare metal cluster are excessive. However, the currently used method for controlling bare metal servers cannot utilize the bare metal services to relieve the business pressure of the cloud platform, resulting in waste of computing resources.

[0004] Therefore, how to provide a method for controlling a bare metal server that can utilize the computing resources of the bare metal server to share the business pressure of the cloud platform is an urgent problem to be solved by those skilled in the art. Summary of the Invention

[0005] The purpose of this application is to provide a method, device, and medium for controlling a bare metal server, so as to utilize the computing resources of the bare metal cluster to share the computing pressure of the cloud platform and improve the utilization rate of the computing resources of the cloud platform.

[0006] To solve the above technical problems, this application provides a method for controlling a bare metal server, including:

[0007] Obtain the business load information of the cloud computing cluster;

[0008] Judge whether the performance of the bare metal cluster and the performance of the virtual machine cluster in the cloud computing cluster both meet the preset conditions according to the business load information;

[0009] If both meet the preset conditions, map the system disk to the bare metal server to add a virtual disk to the bare metal server, and build a bare machine instance;

[0010] Call the bare machine instance to process the business of the cloud computing cluster.

[0011] Preferably, the judging whether the performance of the bare metal cluster and the performance of the virtual machine cluster in the cloud computing cluster both meet the preset conditions according to the business load information includes:

[0012] Determine the virtual machine quantity requirement value and the virtual machine performance requirement value according to the business load information;

[0013] If the number of virtual machines in the cloud computing cluster is less than the required value of the number of virtual machines and the business pressure on the bare metal cluster is lower than the pressure threshold, or the performance of each virtual machine in the cloud computing cluster is less than the required value of the virtual machine performance and the business pressure on the bare metal cluster is lower than the pressure threshold, it is determined that the preset conditions are all met.

[0014] Preferably, the mapping the system disk to the bare metal server to add a virtual disk to the bare metal server includes:

[0015] Mapping the system disk to the bare metal server through the SNAP service interface of the smart network card, where the smart network card is a network card with a CPU;

[0016] When the number of virtual machines is less than the required value of the number of virtual machines, the virtual disk is a virtual disk installed with a virtualization operating system, and the virtualization operating system integrates the Universal Plug and Play protocol;

[0017] When the performance of each virtual machine is less than the required value of the virtual machine performance, the virtual disk is a virtual disk installed with a user operating system.

[0018] Preferably, the calling the bare metal instance to process the business of the cloud computing cluster specifically is:

[0019] If the virtual disk is a virtual disk installed with the virtualization operating system, construct a network virtualization running environment for the bare metal instance and run the virtual machine in the bare metal instance;

[0020] If the virtual disk is a virtual disk installed with the user operating system, run the user operating system to provide cloud computing services for users.

[0021] Preferably, after the step of mapping the system disk to the bare metal server, it further includes:

[0022] Call the virtual network card control service of the smart network card to add a virtual network card to the bare metal server.

[0023] Preferably, after the step of calling the bare metal instance to process the business of the cloud computing cluster, it further includes:

[0024] When the performance of the virtual machine cluster does not meet the preset conditions, uninstall the virtual disk.

[0025] Preferably, the mapping the system disk to the bare metal server includes:

[0026] Map the disks in the logical disk set to the bare metal server.

[0027] To solve the above technical problems, the present application also provides a bare metal server control device, including:

[0028] An acquisition module, configured to acquire the business load information of the cloud computing cluster;

[0029] A judgment module, configured to judge whether the performance of the bare machine cluster and the performance of the virtual machine cluster in the cloud computing cluster both meet the preset conditions according to the business load information;

[0030] A mapping module, configured to, if both meet the preset conditions, map the system disk to the bare metal server to add a virtual disk to the bare metal server and construct a bare machine instance;

[0031] An invocation module, configured to invoke the bare machine instance to process the business of the cloud computing cluster.

[0032] To solve the above technical problems, the present application also provides a bare metal server control device, including a memory for storing a computer program;

[0033] A processor, configured to implement the steps of the bare metal server control method when executing the computer program.

[0034] To solve the above technical problems, the present application also provides 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 metal server control method.

[0035] The present application provides a bare metal server control method, and the method includes: acquiring the business load information of the cloud computing cluster, so as to judge whether the performance of the virtual machine cluster and the bare machine cluster meets the preset conditions according to the business load information, thereby determining whether the virtual machine cluster can bear the current business pressure and whether the bare machine cluster has remaining computing resources. If both meet the preset conditions, it indicates that the virtual machine cluster cannot bear the current business pressure, then the system disk is mapped to the bare metal server to add a virtual disk to the bare metal server and construct a bare machine instance, so that the cloud platform can invoke the bare machine instance to process the business of the cloud computing cluster. Thus, in the solution provided by the present application, when the performance of the cloud computing cluster cannot bear the current business pressure, the system disk is mapped to the bare metal server to construct a bare machine instance based on the bare metal server, and the bare machine instance is used to process the business of the cloud computing cluster, thereby achieving the purpose of reducing the business pressure by using the computing resources of the bare metal server, improving the overall performance of the cloud computing cluster and improving the utilization rate of the computing resources.

[0036] In addition, the present application also provides a bare metal server control device and medium, corresponding to the above method, with the same effect. Description of the Drawings

[0037] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0038] Figure 1 It is a flowchart of an application scenario of a bare metal server provided by an embodiment of the present application;

[0039] Figure 2 It is a schematic diagram of another application scenario of a bare metal server provided by an embodiment of the present application

[0040] Figure 3 It is a flowchart of a control method for a bare metal server provided by an embodiment of the present application;

[0041] Figure 4 It is a structural diagram of a control device for a bare metal server provided by an embodiment of the present application;

[0042] Figure 5 It is a structural diagram of another control device for a bare metal server provided by an embodiment of the present application. Detailed implementation manners

[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0044] The core of the present application is to provide a control method, device, and medium for a bare metal server, so as to utilize the computing resources of the bare metal cluster to share the computing pressure of the cloud platform and improve the utilization rate of the computing resources of the cloud platform.

[0045] In the application scenario of bare metal servers, the cloud platform includes a bare metal cluster and a virtual machine cluster. Among them, the bare metal cluster is used to provide physical servers for users in a single-tenant environment, and the virtual machine cluster is used to provide virtual machine services for users. The performance of the bare metal cluster is far better than that of the virtual machine cluster. However, due to the inability to convert between the bare metal cluster and the virtual machine cluster in the traditional cloud platform, there is often a situation where the virtual machine cluster cannot meet the computing needs of users while the computing resources of the bare metal cluster are surplus. To solve this problem and improve the utilization rate of computing resources, this application provides a control method for bare metal servers. By mapping the system disk to the bare metal server to add a virtual disk to the bare metal server and constructing a bare machine instance; and by calling the bare machine instance to process the business of the cloud computing cluster, the purpose of reducing the business pressure by using the computing resources of the bare metal server is achieved, improving the overall performance of the cloud computing cluster and the utilization rate of computing resources.

[0046] Figure 1 FIG. is a schematic diagram of an application scenario of a bare metal server provided by an embodiment of this application. Figure 2 FIG. is a schematic diagram of another application scenario of a bare metal server provided by an embodiment of this application. As Figure 1 or Figure 2 shown, when the performance of the virtual machine cluster in the cloud computing platform is insufficient to meet the user's needs and there are idle computing resources in the bare metal cluster, the idle bare metal servers in the bare metal cluster are reused as computing nodes or virtual machines through the intelligent network card, so as to meet the user's needs. Specifically, when the number of virtual machines in the cloud platform cannot meet the user's needs, the virtual disk in the bare device storage pool is mapped to the bare metal server through the intelligent network card, and a virtualized operating system is written in the virtual disk to convert the bare metal server into a computing node; when the performance of the virtual machines in the cloud platform cannot meet the user's needs, the virtual disk in the bare device storage pool is mapped to the bare metal server through the intelligent network card, and the user operating system is written in the virtual disk, so that the bare metal server can provide virtual machine services for users. In the solution provided by this application, when the performance of the cloud computing cluster cannot bear the current business pressure, the system disk is mapped to the bare metal server to build a bare machine instance based on the bare metal server, and the business of the cloud computing cluster is processed through the bare machine instance, so as to achieve the purpose of reducing the business pressure by using the computing resources of the bare metal server, improving the overall performance of the cloud computing cluster and the utilization rate of computing resources.

[0047] In order to enable those skilled in the art to better understand the solution of this application, the following further details this application in conjunction with the accompanying drawings and specific embodiments.

[0048] Figure 3 FIG. is a flowchart of a control method for a bare metal server provided by an embodiment of this application. As Figure 3As shown in the figure, the method includes:

[0049] S10: Obtain the business load information of the cloud computing cluster.

[0050] S11: Determine whether the performance of the bare metal cluster and the performance of the virtual machine cluster in the cloud computing cluster both meet the preset conditions according to the business load information.

[0051] In a specific implementation, in order to accurately judge the business pressure of the cloud computing cluster, the total number of request messages obtained by the cloud computing cluster can be obtained, so as to judge the business pressure of the cloud computing cluster according to the number of request messages; it is also possible to judge the business pressure of the cloud computing cluster by the number of processes running in each virtual machine in the cloud computing cluster. Compared with the latter, obtaining the total number of request messages of the cloud computing cluster is more concise and intuitive.

[0052] It can be understood that the purpose of the bare metal server control method provided in this application is to call the remaining computing resources of the bare metal cluster to share the business pressure of the virtual machine cluster. Therefore, when obtaining the business load information of the cloud computing cluster, it is necessary to separately obtain the business load information of the virtual machine cluster and the bare metal cluster. In order to more accurately and quickly judge the business pressure of the virtual machine cluster, in this embodiment, the number of requests received by the bare metal cluster and the number of requests received by the virtual machine cluster are respectively obtained, so as to judge whether the performance of the bare metal cluster and the performance of the virtual machine cluster meet the preset conditions.

[0053] Further, when the number of requests received by the virtual machine cluster is higher than the first request threshold and the number of requests received by the bare metal cluster is lower than the second request threshold, it indicates that the virtual machine cluster cannot bear the current business load and there are remaining computing resources in the bare metal cluster. It is necessary for the cloud computing platform to control the bare metal cluster to provide virtual machine services for users.

[0054] It should be noted that the situations where the virtual machine cluster of the cloud computing platform cannot meet the user's needs include: the performance of a single virtual machine cannot meet the user's needs, and the number of virtual machines in the cluster cannot meet the user's needs.

[0055] S12: If both meet the preset conditions, map the system disk to the bare metal server to add a virtual disk to the bare metal server, and construct a bare metal instance.

[0056] S13: Call the bare metal instance to process the business of the cloud computing cluster.

[0057] If both the virtual machine cluster and the bare metal cluster meet the preset conditions, map the system disk to the bare metal server to build a bare metal instance. It can be understood that the process of mapping the system disk to the bare metal server can be implemented using a Data Processing Unit (DPU) or a smart network card based on the Peripheral Component Interconnect (PCI) standard. Among them, the smart network card is a network card with a CPU. Considering the relatively low cost of the smart network card, the smart network card is selected in this embodiment to complete the disk mapping work. It can be understood that the smart network card is installed in the bare metal server and can be regarded as a part of the bare metal server. The system disk mentioned in this embodiment is a bare device storage pool. In specific implementation, map the logical disk in the bare device storage pool to the smart network card, and add a virtual disk to the bare metal server by invoking the SNAP protocol of the smart network card.

[0058] It should be noted that in order to better utilize the computing resources of the bare metal server to share the business pressure of the virtual machine cluster, different bare metal instances need to be created according to the working state of the virtual machine cluster.

[0059] When the number of virtual machines in the virtual machine cluster is too small to meet the user's needs, the number of virtual machines in the virtual machine cluster needs to be increased. Therefore, the bare metal server can be used as a computing node to mount virtual machines. Specifically, map the logical disk to the smart network card. The cloud platform calls the SNAP service of the smart network card to dynamically add the mapped disk as a virtual hard disk to the bare metal server, and dynamically adds a virtio network card to the bare metal server through the virtio-net-controller service of the smart network card, so that the bare metal server can be used as a computing node of the virtual machine cluster to provide computing services for users. After completing the virtual disk mapping work, it is also necessary to write a virtualized operating system (iNode OS in this embodiment) into the virtual disk and make the bare metal server boot with the virtual disk as the system disk. Since the virtualized operating system integrates the upnp protocol, when the bare metal server starts, the cloud platform automatically discovers the new computing node and constructs a network virtualization running environment for the new computing node, including network resources such as a management network, a service network, and a storage network. In addition, it is also necessary to mount the CFS storage pool for the new computing node so that the cloud platform can schedule virtual machines to run on this new computing node.

[0060] When the performance of each virtual machine in the virtual machine cluster cannot meet the user's requirements, it is necessary to add virtual machines with stronger performance to the virtual machine cluster. At this time, the bare metal server can be added to the virtual machine cluster as a virtual machine. In specific implementation, the logical disk is mapped to the intelligent network card, and the cloud platform calls the intelligent network card SNAP service to dynamically add the mapped disk to the bare metal server as a virtual hard disk, and dynamically adds a virtio network card to the bare metal server through the virtio-net-controller service of the intelligent network card. After completing the virtual disk mapping work, it is also necessary to write the user operating system into the virtual disk to create a bare metal instance for use as a virtual machine and add the bare metal instance to the virtual machine cluster to provide computing services for users.

[0061] In this embodiment, a method for controlling a bare metal server is provided. The method includes: obtaining the service load information of the cloud computing cluster, so as to determine whether the performance of the virtual machine cluster and the bare metal cluster meets the preset conditions according to the service load information, and thus determine whether the virtual machine cluster can bear the current service pressure and whether the bare metal cluster has remaining computing resources. If both meet the preset conditions, it indicates that the virtual machine cluster cannot bear the current service pressure, then the system disk is mapped to the bare metal server to add a virtual disk to the bare metal server, and a bare metal instance is constructed, so that the cloud platform can call the bare metal instance to process the services of the cloud computing cluster. It can be seen that in the solution provided by this application, when the performance of the cloud computing cluster cannot bear the current service pressure, the system disk is mapped to the bare metal server to construct a bare metal instance based on the bare metal server, and the services of the cloud computing cluster are processed through the bare metal instance, so as to achieve the purpose of reducing the service pressure by using the computing resources of the bare metal server, improving the overall performance of the cloud computing cluster and improving the utilization rate of computing resources.

[0062] In specific implementation, in order to better call the computing resources of the bare metal server to reduce the service pressure brought to the cloud computing platform due to insufficient performance of the virtual machine cluster, it is necessary to quickly and accurately determine the working state of the virtual machine cluster of the cloud computing platform.

[0063] Based on the above embodiment, determining whether the performance of the bare metal cluster and the virtual machine cluster of the cloud computing cluster meets the preset conditions according to the service load information includes:

[0064] Determine the virtual machine quantity requirement value and the virtual machine performance requirement value according to the service load information;

[0065] If the number of virtual machines in the cloud computing cluster is less than the virtual machine quantity requirement value and the service pressure of the bare metal cluster is lower than the pressure threshold, or the performance of each virtual machine in the cloud computing cluster is less than the virtual machine performance requirement value and the service pressure of the bare metal cluster is lower than the pressure threshold, it is determined that both meet the preset conditions.

[0066] In a specific implementation, the required value of the number of virtual machines and the required value of the virtual machine performance are determined based on the number of requests and request information obtained from the virtual machine cluster. When the working states of both the virtual machine cluster and the bare metal cluster meet the preset conditions, the bare metal server is controlled to be converted into a virtual machine or a computing node.

[0067] In a specific implementation, in order to better utilize the computing resources of the bare metal cluster, it is also necessary to determine the types of bare metal instances to be created according to the actual working state of the virtual machine cluster. Map the logical disk to the intelligent network card, and map the system disk to the bare metal server through the SNAP service interface of the intelligent network card;

[0068] When the number of virtual machines is less than the required value of the number of virtual machines, the virtual disk is a virtual disk installed with a virtualized operating system, and the virtualized operating system integrates the Universal Plug and Play protocol, enabling the cloud platform to automatically discover new computing nodes;

[0069] When the performance of each virtual machine is less than the required value of the virtual machine performance, the virtual disk is a virtual disk installed with a user operating system.

[0070] Correspondingly, if the virtual disk is a virtual disk installed with a virtualized operating system, a network virtualization operating environment is constructed for the bare metal instance, including the construction of network resources such as the management network, service network, and storage network, and a CFS storage pool is mounted for the new computing node, and a virtual machine runs in the bare metal instance;

[0071] If the virtual disk is a virtual disk installed with a user operating system, the user operating system is run to provide cloud computing services for users.

[0072] It should be noted that when the performance of the virtual machine cluster does not meet the preset conditions, the virtual disk in the bare metal server is uninstalled, and the bare metal server is returned to the bare metal cluster. Specifically, if the bare metal server is used as a computing node at this time, the virtual machine running on this computing node is deleted or scheduled to other computing nodes by the cloud computing platform; if the bare metal server is used as a virtual machine at this time, the virtual machine is deleted. It can be understood that during the operation of the cloud platform, when the bare metal server is scheduled to the virtual machine cluster, if the performance of the bare metal cluster cannot meet the user's requirements, the bare metal server is immediately returned to the bare metal cluster.

[0073] In this embodiment, the number requirement value of virtual machines and the performance requirement value of virtual machines are determined based on the service load information, and different bare metal instances are created according to the working state of the virtual machine cluster to convert the bare metal server into a computing node or a virtual machine, so as to provide computing services for users and relieve the service pressure on the cloud computing platform. When the service pressure of the virtual machine cluster is relatively low, the bare metal server is returned to the bare metal cluster. Thereby improving the computing resource utilization rate and overall performance of the cloud computing platform.

[0074] In the above embodiment, the control method of the bare metal server is described in detail. The present application also provides an embodiment corresponding to the bare metal server control device. It should be noted that the present application describes the embodiments of the device part from two perspectives, one is from the perspective of functional modules, and the other is from the perspective of hardware.

[0075] Figure 4 The structural diagram of a bare metal server control device provided by an embodiment of the present application is as Figure 4 shown, and the device includes:

[0076] An acquisition module 10, configured to acquire the service load information of the cloud computing cluster;

[0077] In order to accurately judge the service pressure of the cloud computing cluster, the total number of request messages acquired by the cloud computing cluster can be obtained, and then the service pressure of the cloud computing cluster can be judged according to the number of request messages; or the service pressure of the cloud computing cluster can be judged by the number of processes running in each virtual machine in the cloud computing cluster. Compared with the latter, obtaining the total number of request messages of the cloud computing cluster is more concise and intuitive.

[0078] A judgment module 11, configured to judge whether the performance of the bare metal cluster and the performance of the virtual machine cluster of the cloud computing cluster both meet the preset conditions according to the service load information;

[0079] A mapping module 12, configured to, if both meet the preset conditions, map the system disk to the bare metal server to add a virtual disk to the bare metal server and construct a bare metal instance;

[0080] When the number of virtual machines in the virtual machine cluster is too small to meet the user's needs, it is necessary to increase the number of virtual machines in the virtual machine cluster. Therefore, the bare metal server can be used as a computing node to mount virtual machines. When the bare metal server is started, the cloud platform automatically discovers the new computing node and constructs a network virtualization running environment for the new computing node, including: network resources such as a management network, a service network, and a storage network. In addition, it is also necessary to mount a CFS storage pool for the new computing node so that the cloud platform can schedule virtual machines to run on this new computing node.

[0081] When the performance of each virtual machine in the virtual machine cluster cannot meet the user's requirements, it is necessary to add virtual machines with stronger performance to the virtual machine cluster. At this time, the bare metal server can be added to the virtual machine cluster as a virtual machine. In the specific implementation, the logical disk is mapped to the smart network card, and the cloud platform calls the SNAP service of the smart network card to dynamically add the mapped disk to the bare metal server as a virtual hard disk, and dynamically adds a virtio network card to the bare metal server through the virtio-net-controller service of the smart network card. After completing the virtual disk mapping work, it is also necessary to write the user operating system into the virtual disk to create a bare metal instance for use as a virtual machine and add the bare metal instance to the virtual machine cluster to provide computing services for users.

[0082] The calling module 13 is used to call the bare metal instance to process the services of the cloud computing cluster.

[0083] In addition, the bare metal server control method provided in this embodiment further includes a virtual network card adding module and a virtual disk unloading module. The virtual network card adding module is used to call the virtual network card control service of the smart network card to add a virtual network card to the bare metal server after executing the step of mapping the system disk to the bare metal server; the virtual disk unloading module is used to unload the virtual disk when the performance of the virtual machine cluster does not meet the preset conditions after executing the step of calling the bare metal instance to process the services of the cloud computing cluster.

[0084] If both the virtual machine cluster and the bare metal cluster meet the preset conditions, map the system disk to the bare metal server to construct a bare metal instance. It can be understood that the process of mapping the system disk to the bare metal server can be implemented by a data processor or a smart network card based on the local bus standard. Among them, the smart network card is a network card with a CPU. Considering the lower cost of the smart network card, the smart network card is selected in this embodiment to complete the disk mapping work. It can be understood that the smart network card is installed in the bare metal server and can be regarded as a part of the bare metal server. The system disk mentioned in this embodiment is a bare device storage pool. In the specific implementation, the logical disk in the bare device storage pool is mapped to the smart network card, and a virtual disk is added to the bare metal server by calling the SNAP protocol of the smart network card.

[0085] Since the embodiments of the device part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be elaborated here.

[0086] In this embodiment, a bare metal server control device is provided. The device includes: obtaining the service load information of a cloud computing cluster, so as to determine whether the performance of the virtual machine cluster and the bare machine cluster meets the preset conditions according to the service load information, thereby determining whether the virtual machine cluster can bear the current service pressure and whether the bare machine cluster has remaining computing resources. If both meet the preset conditions, it indicates that the virtual machine cluster cannot bear the current service pressure, then the system disk is mapped to the bare metal server to add a virtual disk to the bare metal server, and a bare machine instance is constructed, so that the cloud platform can call the bare machine instance to process the services of the cloud computing cluster. Thus, in the device provided in this application, when the performance of the cloud computing cluster cannot bear the current service pressure, the system disk is mapped to the bare metal server to construct a bare machine instance based on the bare metal server, and the services of the cloud computing cluster are processed through the bare machine instance, thereby achieving the purpose of reducing the service pressure by using the computing resources of the bare metal server, improving the overall performance of the cloud computing cluster and the utilization rate of computing resources.

[0087] Figure 5 The structural diagram of the bare metal server control device provided in another embodiment of this application is as Figure 5 shown. The bare metal server control device includes: a memory 20 for storing computer programs;

[0088] a processor 21 for implementing the steps of the method for obtaining the service load information of the cloud computing platform and creating a bare machine instance as described in the above embodiment when executing the computer program.

[0089] The terminal device provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a laptop computer, or a desktop computer, etc.

[0090] Among them, the processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 21 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the wake state, also known as the central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 21 may be integrated with a graphics processing unit (GPU), and the GPU is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 21 may further include an artificial intelligence (AI) processor, and the AI processor is used to process computational operations related to machine learning.

[0091] The memory 20 may include one or more computer-readable storage media, and the computer-readable storage media may be non-transitory. The memory 20 may further include high-speed random access memory and non-volatile memory, such as one or more disk storage devices and flash storage devices. In this embodiment, the memory 20 is at least used to store the following computer program 201. After the computer program is loaded and executed by the processor 21, it can implement the relevant steps of the bare metal server control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, business load information, etc.

[0092] In some embodiments, the bare metal server control device may further include a display screen 22, an input / output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.

[0093] Those skilled in the art can understand that Figure 5 the structure shown in

[0094] The bare metal server control device provided by the embodiment of the present application includes a memory and a processor. When the processor executes the program stored in the memory, the following method can be implemented:

[0095] Obtain the business load information of the cloud computing cluster;

[0096] Judge whether the performance of the bare machine cluster and the performance of the virtual machine cluster in the cloud computing cluster both meet the preset conditions according to the business load information;

[0097] If both meet the preset conditions, map the system disk to the bare metal server to add a virtual disk to the bare metal server, and construct a bare machine instance;

[0098] Call the bare machine instance to process the business of the cloud computing cluster.

[0099] In this embodiment, a bare metal server control device is provided. The device includes: obtaining the business load information of the cloud computing cluster, so as to judge whether the performance of the virtual machine cluster and the bare machine cluster meets the preset conditions according to the business load information, so as to determine whether the virtual machine cluster can bear the current business pressure and whether the bare machine cluster has remaining computing resources. If both meet the preset conditions, it indicates that the virtual machine cluster cannot bear the current business pressure, then map the system disk to the bare metal server to add a virtual disk to the bare metal server, and construct a bare machine instance, so that the cloud platform can call the bare machine instance to process the business of the cloud computing cluster. It can be seen that in the device provided by the present application, when the performance of the cloud computing cluster cannot bear the current business pressure, the system disk is mapped to the bare metal server to construct a bare machine instance based on the bare metal server, and the bare machine instance is used to process the business of the cloud computing cluster, so as to achieve the purpose of reducing the business pressure by using the computing resources of the bare metal server, improving the overall performance of the cloud computing cluster and improving the utilization rate of the computing resources.

[0100] Finally, the present application also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps recorded in the above method embodiment are implemented.

[0101] It can be understood that if the methods in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.

[0102] The above has introduced in detail the bare metal server control method, device, and medium provided by the present application. The various embodiments in the specification 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 device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple. For the relevant parts, reference can be made to the description in the method part. 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 application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

[0103] It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements not only includes those elements but also includes other elements not explicitly listed, or further includes elements inherent to such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising one..." does not exclude the existence of additional identical elements in the process, method, article, or device comprising the said element.

Claims

1. A bare metal server control method, characterized in that, Including: Obtain the business load information of the cloud computing cluster; Judge whether the performance of the bare metal cluster and the virtual machine cluster of the cloud computing cluster both meet the preset conditions according to the business load information; If both meet the preset conditions, map the system disk to the bare metal server to add a virtual disk to the bare metal server, and build a bare metal instance; Call the bare metal instance to process the business of the cloud computing cluster; The mapping of the system disk to the bare metal server to add a virtual disk to the bare metal server includes: Map the system disk to the bare metal server through the SNAP service interface of the intelligent network card, and the intelligent network card is a network card with a CPU; When the number of virtual machines is less than the required value of the number of virtual machines, the virtual disk is a virtual disk installed with a virtualized operating system, and the virtualized operating system integrates the Universal Plug and Play protocol; When the performance of each virtual machine is less than the required value of the virtual machine performance, the virtual disk is a virtual disk installed with a user operating system; Specifically, calling the bare metal instance to process the business of the cloud computing cluster is: If the virtual disk is a virtual disk installed with the virtualized operating system, build a network virtualization running environment for the bare metal instance, mount a CFS storage pool for the new computing node, and run the virtual machine in the bare metal instance; the network virtualization running environment includes the virtualization running environments of the management network, the service network, and the storage network; If the virtual disk is a virtual disk installed with the user operating system, run the user operating system to provide cloud computing services for users.

2. The bare metal server control method according to claim 1, wherein The judging whether the performance of the bare metal cluster and the virtual machine cluster of the cloud computing cluster both meet the preset conditions according to the business load information includes: Determine the required value of the number of virtual machines and the required value of the virtual machine performance according to the business load information; If the number of virtual machines in the cloud computing cluster is less than the required value of the number of virtual machines and the business pressure of the bare metal cluster is lower than the pressure threshold, or the performance of each virtual machine in the cloud computing cluster is less than the required value of the virtual machine performance and the business pressure of the bare metal cluster is lower than the pressure threshold, it is determined that both meet the preset conditions.

3. The bare metal server control method according to claim 1, wherein, After the step of mapping the system disk to the bare metal server, it further includes: Call the virtual network card control service of the intelligent network card to add a virtual network card to the bare metal server.

4. The bare metal server control method according to any one of claims 1 to 3, characterized in that, After the step of calling the bare metal instance to process the business of the cloud computing cluster, it further includes: When the performance of the virtual machine cluster does not meet the preset conditions, unmount the virtual disk.

5. The bare metal server control method according to claim 1, characterized in that, The mapping of the system disk to the bare metal server includes: Map the disks in the logical disk set to the bare metal server.

6. A bare metal server control device, characterized in that, Including: An acquisition module for acquiring the business load information of the cloud computing cluster; A judgment module for judging whether the performance of the bare metal cluster and the virtual machine cluster of the cloud computing cluster both meet the preset conditions according to the business load information; A mapping module for, if both meet the preset conditions, mapping the system disk to the bare metal server to add a virtual disk to the bare metal server, and building a bare metal instance; A calling module, configured to call the bare-metal instance to process the services of the cloud computing cluster; The mapping module is configured to map the system disk to the bare-metal server through the SNAP service interface of the smart network card, where the smart network card is a network card with a CPU; when the number of virtual machines is less than the required value of the number of virtual machines, the virtual disk is a virtual disk installed with a virtualized operating system, and the virtualized operating system integrates the Universal Plug and Play protocol; when the performance of each virtual machine is less than the required value of the virtual machine performance, the virtual disk is a virtual disk installed with a user operating system; The calling module is configured to, if the virtual disk is a virtual disk installed with the virtualized operating system, construct a network virtualization running environment for the bare-metal instance, mount a CFS storage pool for a new computing node, and run the virtual machine in the bare-metal instance; the network virtualization running environment includes the virtualization running environments of the management network, the service network, and the storage network; if the virtual disk is a virtual disk installed with the user operating system, run the user operating system to provide cloud computing services for users.

7. A bare metal server control device, characterized in that, It includes a memory for storing computer programs; A processor, configured to implement the steps of the bare-metal server control method according to any one of claims 1 to 5 when executing the computer program.

8. 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 the processor, the steps of the bare-metal server control method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Server conversion method and apparatus

    CN107766154A

  • Bare computer disk management method and device and medium

    CN114443223A