Bare metal online management method and device, computer equipment, readable storage medium and program product
By scanning and collecting bare metal hardware information and generating specification tables, the problem of manually entering hardware information before initialization of bare metal servers is solved, and automated management is realized and manual intervention is reduced.
Patent Information
- Application Number
- CN202411701979.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-07
AI Technical Summary
Bare metal servers are usually shut down before initialization and have no operating system installed, which causes the equipment on the shelves to manually enter hardware information and specifications through the background, which is prone to the problem of failed machine ordering.
Through scanning service scanning platform management of bare metal instance information, hardware index information is collected, stored in monitoring service queue, and bare metal specification table is generated based on hardware information to achieve automated management.
It realizes automatic acquisition and information arrangement of bare metal hardware information, generates specification attribute tables, and puts bare metal online, reducing intervention of manual and machine failures.
Smart Images

Figure CN119576697A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of bare metal management technology, and in particular to a bare metal online management method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] Bare Metal Server (BMS) is a cloud computing service that provides users with physical server computing resources exclusively for use. Since there is no overhead of the virtualization layer, it can provide computing power without performance loss, is suitable for high-performance computing, big data processing and other businesses, and provides excellent security.
[0003] Bare metal specifications refer to the information table generated based on the hardware resources of the target bare metal server after it is put on the shelf. This information table contains detailed information such as the current specifications of the CPU, GPU, memory, network card, and the number of available bare metals.
[0004] However, since bare metal servers are usually powered off and have no operating system installed before initialization, these devices often need to be manually entered into the backend for hardware information and specifications. If the bare metal servers listed have a fault, users may order a faulty machine. This method is obviously very inconvenient and prone to errors. Summary of the invention
[0005] Based on this, it is necessary to provide a bare metal online management method, device, computer equipment, computer-readable storage medium and computer program product that can automatically manage bare metal in response to the above technical problems.
[0006] In a first aspect, the present application provides a bare metal online management method, the method comprising:
[0007] Scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification;
[0008] Collect the hardware information corresponding to the bare metal service information through a hardware indicator information collection tool;
[0009] The hardware information collected is stored in a monitoring service queue through a scanning service;
[0010] The hardware information in the monitoring service queue is obtained through the platform management service, and a bare metal specification table is generated based on the hardware information.
[0011] In one embodiment, before scanning the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification, the method includes:
[0012] Receive a bare metal creation instruction, where the bare metal creation instruction carries bare metal service information;
[0013] Verifying the bare metal based on the bare metal service information;
[0014] When the bare metal verification is successful, the bare metal service information is stored in a database, and the bare metal is installed based on the bare metal service information.
[0015] In one embodiment, the step of installing the bare metal based on the bare metal service information includes:
[0016] Prefabricate the hardware indicator information collection tool into the bare metal installation image;
[0017] Based on the bare metal installation image, the bare metal corresponding to the bare metal service information is installed.
[0018] In one of the embodiments, scanning bare metal instance information in a platform management service through a scanning service to obtain bare metal service information that is not bound to a specification includes any of the following:
[0019] After the bare metal installation is completed, actively call the scanning service to scan the bare metal instance information in the platform management service to obtain the bare metal service information that is not bound to the specification; or
[0020] The bare metal instance information in the platform management service is periodically scanned by the scanning service to obtain the bare metal service information that is not bound to the specification.
[0021] In one of the embodiments, the hardware indicator information collection tool includes at least one of a hardware information collection tool and a custom indicator collection script; the hardware information collection tool is used to collect at least one of the GPU model, quantity, video memory size, memory size, disk information, network card model, and rate; the custom indicator collection script is used to collect hardware indicator information corresponding to the custom indicator.
[0022] In one embodiment, generating a bare metal specification table based on the hardware information includes:
[0023] Classify the obtained hardware information corresponding to each of the bare metals, and obtain the quantity of the bare metals in each category;
[0024] Obtain a specification sheet template, fill the specification sheet template with the hardware information corresponding to the bare metal of the same category and the quantity of the bare metal, and obtain a bare metal specification sheet.
[0025] In a second aspect, the present application further provides a bare metal online management device, the device comprising:
[0026] A scanning module, used to scan bare metal instance information in the platform management service through a scanning service to obtain bare metal service information that is not bound to a specification;
[0027] A collection module, used to collect hardware information corresponding to the bare metal service information through a hardware indicator information collection tool;
[0028] A cache module, used for storing the hardware information collected through a scanning service into a monitoring service queue;
[0029] The specification sheet generation module is used to obtain the hardware information in the monitoring service queue through the platform management service, and generate a bare metal specification sheet based on the hardware information.
[0030] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method in any one of the above-mentioned embodiments when executing the computer program.
[0031] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method in any one of the above-mentioned embodiments.
[0032] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of the method in any one of the above embodiments when executed by a processor.
[0033] The above-mentioned bare metal online management method, device, computer equipment, computer-readable storage medium and computer program product scan the bare metal instance information in the platform management service through a scanning service to obtain bare metal service information that is not bound to specifications; collect the hardware information corresponding to the bare metal service information through a hardware indicator information collection tool; store the collected hardware information in a monitoring service queue through a scanning service; obtain the hardware information in the monitoring service queue through a platform management service, and generate a bare metal specification table based on the hardware information. The whole process can automatically obtain bare metal hardware information, organize information, generate a specification attribute table, manage bare metal online, and reduce the intervention of factors such as human labor and machine failure. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0035] Figure 1 A schematic diagram of a bare metal management method in traditional technology;
[0036] Figure 2 A diagram of an application environment of a bare metal online management method in an embodiment;
[0037] Figure 3 A schematic diagram of a bare metal online management method in one embodiment;
[0038] Figure 4 A schematic diagram of a process of a bare metal online management method in another embodiment;
[0039] Figure 5 is a timing diagram of a bare metal online management method in one embodiment;
[0040] Figure 6 is a structural block diagram of a bare metal online management device in an embodiment;
[0041] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] Combination Figure 1 As shown, Figure 1 This is a schematic diagram of a bare metal management method in conventional technology. In this embodiment, the backend server imports a bare metal specification information table, which includes bare metal basic hardware information and inventory quantity. The bare metal specification information table is automatically entered by the backend. However, if the bare metal on the shelf is faulty, the user may order a faulty machine.
[0044] In order to solve the above problems, the bare metal online management method provided in the embodiment of the present application can be applied to Figure 2In the application environment shown, the backend 202 communicates with the bare metal server 204 through the network. The data storage system can store the data that the backend 202 needs to process. The data storage system can be integrated on the backend 202, or placed on the cloud or other network servers.
[0045] The backend 202 is deployed with a monitoring service and a management service, wherein the monitoring service is used to scan the management service to obtain bare metal service information that is not bound by specifications, and obtain hardware information corresponding to the bare metal service information based on the bare metal service information that is not bound by specifications. The management service is used to generate a bare metal specification table based on the bare metal service information that is not bound by specifications and the hardware information.
[0046] The backend 202 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0047] The bare metal server 204 is a cloud computing service that provides users with physical server computing resources exclusively for use. Since there is no overhead of the virtualization layer, it can provide computing power without performance loss, is suitable for high-performance computing, big data processing and other businesses, and provides excellent security guarantees.
[0048] In an exemplary embodiment, Figure 3 As shown, a bare metal online management method is provided, which is applied to Figure 2 The background 202 in the example is used as an example to illustrate, including the following steps 302 to 308. Among them:
[0049] S302: Scan bare metal instance information in the platform management service through a scanning service to obtain bare metal service information that is not bound to a specification.
[0050] The scanning service is pre-deployed in the background. The scanning service can be a component that collects the total entrance of monitoring data. It can scan the bare metal instance information in the platform management service to obtain the bare metal service information that is not bound by specifications.
[0051] The platform management service can receive a bare metal creation request and verify the bare metal based on the bare metal creation request. After the bare metal verification passes, the bare metal instance information corresponding to the bare metal creation request is stored and marked as bare metal service information that is not bound to specifications, so that the scanning service can scan and obtain the bare metal service information that is not bound to specifications.
[0052] S304: Collect hardware information corresponding to the bare metal service information through a hardware indicator information collection tool.
[0053] The scanning service can call the hardware indicator information collection tool to collect the hardware information corresponding to the bare metal service information.
[0054] The hardware indicator information collection tool includes at least one of a hardware information collection tool and a custom indicator collection script; the hardware information collection tool is used to collect at least one of the GPU model, quantity, video memory size, memory size, disk information, network card model, and rate; the custom indicator collection script is used to collect hardware indicator information corresponding to the custom indicator. The custom indicator collection script can be a component in the Prometheus ecosystem, which is used to collect and expose system-level measurement data on Linux / Unix systems.
[0055] In addition, it should be noted that the hardware indicator information collection tool was loaded into the bare metal server during Luo Jinshui's installation process.
[0056] The hardware information corresponding to the bare metal service information may include, but is not limited to, at least one of: GPU model, quantity, video memory size, memory size, disk information, network card model, speed, and custom hardware indicators.
[0057] The scanning service calls the hardware indicator information collection tool, for example, sends the bare metal service information to the hardware indicator information collection tool, so that the hardware indicator information collection tool can collect the hardware indicators of the corresponding bare metal server based on the bare metal service information. In one optional embodiment, the scanning service can call the hardware indicator information collection tools in multiple bare metal servers in parallel based on the metal service information to collect the hardware indicators of the bare metal servers, and the hardware indicator information collection tool sends the collected hardware indicators to the scanning service.
[0058] S306: The hardware information collected by the scanning service is stored in the monitoring service queue.
[0059] The monitoring service queue is used to store the hardware information received by the scanning service from the hardware indicator information collection tool. The monitoring service queue can be an open source system monitoring and alarm toolkit, such as Prometheus. In other embodiments, the monitoring service queue can also be other services, which are not specifically limited here. The scanning service sends the hardware information to the monitoring service queue. The monitoring service queue stores the hardware information for the platform management service to generate a bare metal specification table.
[0060] S308: Obtain hardware information in the monitoring service queue through the platform management service, and generate a bare metal specification table based on the hardware information.
[0061] Among them, the platform management service can periodically or be triggered to obtain hardware information in the monitoring service queue, store the hardware information, and subsequently generate a bare metal specification table based on the stored hardware information.
[0062] Optionally, the platform management service may correspond to a database, and the platform management service may store the acquired hardware information in the database, and subsequently read the hardware information from the database to generate a bare metal specification table.
[0063] Optionally, the platform management service may process different functions in a multi-threaded manner, such as reading hardware information from a monitoring service queue through a first thread and storing it in a database, and generating a bare metal specification table based on the hardware information stored in the database through a second thread.
[0064] The above-mentioned bare metal online management method scans the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification; collects the hardware information corresponding to the bare metal service information through the hardware indicator information collection tool; stores the collected hardware information in the monitoring service queue through the scanning service; obtains the hardware information in the monitoring service queue through the platform management service, and generates a bare metal specification table based on the hardware information. The whole process can automatically obtain the bare metal hardware information, organize the information, generate a specification attribute table, and manage the bare metal online, reducing the intervention of factors such as human labor and machine failure.
[0065] In one of the optional embodiments, before obtaining the bare metal service information that is not bound to the specification by scanning the bare metal instance information in the platform management service through the scanning service, it includes: receiving a bare metal creation instruction, the bare metal creation instruction carries the bare metal service information; verifying the bare metal based on the bare metal service information; if the bare metal verification is successful, storing the bare metal service information in a database, and installing the bare metal based on the bare metal service information.
[0066] Among them, when creating a new bare metal, the terminal can send a bare metal creation instruction to the background, and the bare metal creation instruction carries bare metal service information. The bare metal server information may include IPMI information and management IP, where IPMI (Intelligent Platform Management Interface) is an intelligent platform management interface, an open standard interface that defines technologies for managing and monitoring computer hardware.
[0067] The platform management service can verify the bare metal based on the bare metal service information. For example, it can determine the bare metal server based on the management IP, and then send verification information to the bare metal server to determine whether the bare metal server can work normally. If so, the bare metal verification is successful, the bare metal service information is stored in the database, and the bare metal instance information is returned to the terminal to inform the user that the bare metal is successfully created.
[0068] In addition, in order to obtain the hardware information of the bare metal, the platform management service also installs the bare metal based on the successfully created bare metal service information.
[0069] In one of the optional embodiments, installing bare metal based on bare metal service information includes: prefabricating a hardware indicator information collection tool into a bare metal installation image; and installing bare metal corresponding to the bare metal service information based on the bare metal installation image.
[0070] Among them, the installation service can be AXE-Agent, which is a bare metal management application that provides bare metal related underlying capabilities, such as PXE / IPMI installation and server power switch operation.
[0071] Before installation, the CPU model, number of cores, GPU model, number, video memory size, memory size, disk information, network card model, rate and other information collection tools and node exporter custom indicator scripts are prefabricated into the bare metal installation image.
[0072] Subsequently, based on the bare metal installation image, the bare metal corresponding to the bare metal service information is installed.
[0073] Among them, for the sake of ease of understanding, the above-mentioned platform management service, AXE-Agent service and MYSQL database service can be pre-deployed to the background, which can be a management server k8s cluster.
[0074] In one of the optional embodiments, bare metal service information that is not bound to specifications is obtained by scanning bare metal instance information in a platform management service through a scanning service, including any one of the following: after bare metal installation is completed, actively calling a scanning service to scan bare metal instance information in a platform management service to obtain bare metal service information that is not bound to specifications; or periodically scanning bare metal instance information in a platform management service through a scanning service to obtain bare metal service information that is not bound to specifications.
[0075] One point that needs to be explained is that after the bare metal installation is completed, the platform management service can actively call the scanning service to scan the bare metal instance information in the platform management service to obtain the bare metal service information that is not bound to the specification.
[0076] In other embodiments, the nest-outsight component (ie, scanning service) periodically scans the platform management service, obtains unmanaged bare metal monitoring addresses, and pulls node_exporter customized indicator data, and pushes the data to Prometheus.
[0077] For ease of understanding, combined Figure 4 As shown, Figure 4 This is a schematic diagram of a bare metal online management method in another embodiment. In this embodiment, platform management services, AXE-Agent services, and MYSQL database services are deployed to the background, that is, the management server k8s cluster; information collection tools such as CPU model, number of cores, GPU model, quantity, video memory size, memory size, disk information, network card model, rate, and node exporter custom indicator scripts are prefabricated into the bare metal installation image. This step can be a pre-processing step to lay the foundation for the bare metal online management of the defender.
[0078] The administrator defines the IPMI and management IP information and initiates the bare metal creation operation. The platform management service generates the bare metal monitoring address based on the entered IPMI and management IP information, and calls the AXE-Agent client to perform the PXE initialization installation operation. After the installation is completed, the node_exporter service is automatically started.
[0079] The nest-outsight component, i.e. the scanning server, periodically scans the platform management service, obtains the unmanaged bare metal monitoring address, and pulls the customized indicator data of node_exporter (used to pull the bare metal indicator information data after initial installation), and pushes the data to Prometheus.
[0080] The platform management service pulls Prometheus data for analysis and orchestration, and automatically generates a specification information table. After the information is automatically entered, AXE-Agent is called to shut down the machine to save energy. Among them, the platform management service regularly obtains service indicator data of unmanaged machines from Prometheus, orchestrates the information, and generates a specification information table.
[0081] The above embodiment is applicable to the scenario of elastic bare metal resource management on public, private and hybrid clouds. Through this method, detailed information of bare metal hardware can be automatically obtained, and information can be organized to generate a specification attribute table, so that bare metal can be managed online, reducing the intervention of factors such as human labor and machine failure.
[0082] In one of the optional embodiments, a bare metal specification table is generated based on hardware information, including: classifying the obtained hardware information corresponding to each bare metal, and obtaining the quantity of bare metal in each category; obtaining a specification table template, filling the hardware information corresponding to the bare metal of the same category and the quantity of bare metal into the specification table template to obtain a bare metal specification table.
[0083] The obtained hardware information corresponding to each bare metal can be classified based on the bare metal service information of the bare metal to obtain bare metals of different categories and count the number of bare metals of each category. Since the hardware information of bare metals of the same category is the same, the hardware information corresponding to a bare metal in the bare metal of the same category and the number of bare metals are filled into the specification table template to obtain a bare metal specification table.
[0084] The above embodiments can realize automatic collection and processing of bare metal hardware information.
[0085] For ease of understanding, combined Figure 5 As shown, Figure 5 The figure is a timing diagram of a bare metal online management method in an embodiment. In this embodiment, first, the management personnel perform warehousing operations according to the bare metal pre-set IPMI and management IP information. The platform management service periodically discovers the bare metal service information that is not managed, and calls AXE-Agent to perform PXE initialization installation operations. After the installation is completed, the node_exporter service automatically pulls the pre-made image.
[0086] Secondly, Nest-outsight pulls customized hardware information data based on the management IP and Node_exporter service port, including CPU model, number of cores, GPU model, quantity, video memory size, memory, disk identification, size, network card model, rate and other information, and pushes it to the Prometheus service.
[0087] Finally, the platform management service pulls Prometheus data, stores the customized indicator information data in the database, arranges resource information according to the specification template to generate a specification information table, and updates the bare metal service information.
[0088] In the above embodiment, without human intervention, the target bare metal is automatically initialized and installed, the custom hardware indicator information is collected, and the information is compiled to generate a specification information table.
[0089] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0090] Based on the same inventive concept, the embodiment of the present application also provides a bare metal online management device for implementing the bare metal online management method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in one or more bare metal online management device embodiments provided below can refer to the limitations of the bare metal online management method above, and will not be repeated here.
[0091] In an exemplary embodiment, Figure 6 As shown, a bare metal online management device is provided, including: a scanning module 601, a collection module 602, a cache module 603 and a specification table generation module 604, wherein:
[0092] The scanning module 601 is used to scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification;
[0093] The collection module 602 is used to collect hardware information corresponding to the bare metal service information through a hardware indicator information collection tool;
[0094] The cache module 603 is used to store the hardware information collected by the scanning service into the monitoring service queue;
[0095] The specification table generation module 604 is used to obtain the hardware information in the monitoring service queue through the platform management service, and generate a bare metal specification table based on the hardware information.
[0096] In one of the optional embodiments, the above-mentioned device also includes: a creation module, used to receive a bare metal creation instruction, the bare metal creation instruction carries bare metal service information; verify the bare metal based on the bare metal service information; if the bare metal verification is successful, store the bare metal service information in a database, and install the bare metal based on the bare metal service information.
[0097] In one of the optional embodiments, the creation module is further specifically used to prefabricate the hardware indicator information collection tool into the bare metal installation image; based on the bare metal installation image, the bare metal corresponding to the bare metal service information is installed.
[0098] In one of the optional embodiments, the scanning module 601 is also specifically used to actively call the scanning service to scan the bare metal instance information in the platform management service after the bare metal installation is completed, so as to obtain the bare metal service information that is not bound to the specifications; or to periodically scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specifications.
[0099] In one of the optional embodiments, the hardware indicator information collection tool includes at least one of a hardware information collection tool and a custom indicator collection script; the hardware information collection tool is used to collect at least one of the GPU model, quantity, video memory size, memory size, disk information, network card model, and rate; the custom indicator collection script is used to collect hardware indicator information corresponding to the custom indicator.
[0100] In one of the optional embodiments, the specification table generation module 604 is also specifically used to classify the obtained hardware information corresponding to each bare metal and obtain the quantity of bare metal in each category; obtain a specification table template, fill the hardware information corresponding to the bare metal of the same category and the quantity of bare metal into the specification table template, and obtain a bare metal specification table.
[0101] Each module in the above bare metal online management device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0102] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store bare metal service information, hardware information and bare metal specification tables. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a bare metal online management method is implemented.
[0103] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0104] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: scanning bare metal instance information in a platform management service through a scanning service to obtain bare metal service information that is not bound to specifications; collecting hardware information corresponding to the bare metal service information through a hardware indicator information collection tool; storing the collected hardware information in a monitoring service queue through a scanning service; obtaining the hardware information in the monitoring service queue through a platform management service, and generating a bare metal specification table based on the hardware information.
[0105] In one embodiment, the processor executes a computer program to scan bare metal instance information in a platform management service through a scanning service, and before obtaining bare metal service information that is not bound to specifications, the process includes: receiving a bare metal creation instruction, the bare metal creation instruction carrying bare metal service information; verifying the bare metal based on the bare metal service information; if the bare metal verification is successful, storing the bare metal service information in a database, and installing the bare metal based on the bare metal service information.
[0106] In one embodiment, the installation of bare metal based on bare metal service information implemented when the processor executes a computer program includes: prefabricating a hardware indicator information collection tool into a bare metal installation image; and installing the bare metal corresponding to the bare metal service information based on the bare metal installation image.
[0107] In one embodiment, the processor executes a computer program to scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification, including any one of the following: after the bare metal installation is completed, actively call the scanning service to scan the bare metal instance information in the platform management service to obtain the bare metal service information that is not bound to the specification; or periodically scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification.
[0108] In one embodiment, the hardware indicator information collection tool involved when the processor executes a computer program includes at least one of a hardware information collection tool and a custom indicator collection script; the hardware information collection tool is used to collect at least one of the GPU model, quantity, video memory size, memory size, disk information, network card model, and rate; the custom indicator collection script is used to collect hardware indicator information corresponding to the custom indicator.
[0109] In one embodiment, the generation of a bare metal specification table based on hardware information implemented when a processor executes a computer program includes: classifying the obtained hardware information corresponding to each bare metal, and obtaining the quantity of bare metal in each category; obtaining a specification table template, filling the hardware information corresponding to the bare metal of the same category and the quantity of bare metal into the specification table template to obtain a bare metal specification table.
[0110] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: scanning bare metal instance information in a platform management service through a scanning service to obtain bare metal service information that is not bound to specifications; collecting hardware information corresponding to the bare metal service information through a hardware indicator information collection tool; storing the collected hardware information in a monitoring service queue through a scanning service; obtaining the hardware information in the monitoring service queue through a platform management service, and generating a bare metal specification table based on the hardware information.
[0111] In one embodiment, the computer program implemented by the processor when executed by the processor scans the bare metal instance information in the platform management service through the scanning service, and before obtaining the bare metal service information that is not bound to the specification, includes: receiving a bare metal creation instruction, the bare metal creation instruction carries the bare metal service information; verifying the bare metal based on the bare metal service information; if the bare metal verification is successful, storing the bare metal service information in a database, and installing the bare metal based on the bare metal service information.
[0112] In one embodiment, the installation of bare metal based on bare metal service information implemented when a computer program is executed by a processor includes: prefabricating a hardware indicator information collection tool into a bare metal installation image; and installing the bare metal corresponding to the bare metal service information based on the bare metal installation image.
[0113] In one embodiment, the computer program executed by the processor scans the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification, including any one of the following: after the bare metal installation is completed, actively call the scanning service to scan the bare metal instance information in the platform management service to obtain the bare metal service information that is not bound to the specification; or periodically scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification.
[0114] In one embodiment, the hardware indicator information collection tool involved when the computer program is executed by the processor includes at least one of a hardware information collection tool and a custom indicator collection script; the hardware information collection tool is used to collect at least one of the GPU model, quantity, video memory size, memory size, disk information, network card model, and rate; the custom indicator collection script is used to collect hardware indicator information corresponding to the custom indicator.
[0115] In one embodiment, the computer program generated based on the hardware information when executed by the processor includes: classifying the obtained hardware information corresponding to each bare metal, and obtaining the quantity of bare metal in each category; obtaining a specification table template, filling the hardware information corresponding to the bare metal of the same category and the quantity of bare metal into the specification table template, and obtaining a bare metal specification table.
[0116] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: scanning bare metal instance information in a platform management service through a scanning service to obtain bare metal service information that is not bound to specifications; collecting hardware information corresponding to the bare metal service information through a hardware indicator information collection tool; storing the collected hardware information in a monitoring service queue through a scanning service; obtaining the hardware information in the monitoring service queue through a platform management service, and generating a bare metal specification table based on the hardware information.
[0117] In one embodiment, the computer program implemented by the processor when executed by the processor scans the bare metal instance information in the platform management service through the scanning service, and before obtaining the bare metal service information that is not bound to the specification, includes: receiving a bare metal creation instruction, the bare metal creation instruction carries the bare metal service information; verifying the bare metal based on the bare metal service information; if the bare metal verification is successful, storing the bare metal service information in a database, and installing the bare metal based on the bare metal service information.
[0118] In one embodiment, the installation of bare metal based on bare metal service information implemented when a computer program is executed by a processor includes: prefabricating a hardware indicator information collection tool into a bare metal installation image; and installing the bare metal corresponding to the bare metal service information based on the bare metal installation image.
[0119] In one embodiment, the computer program executed by the processor scans the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification, including any one of the following: after the bare metal installation is completed, actively call the scanning service to scan the bare metal instance information in the platform management service to obtain the bare metal service information that is not bound to the specification; or periodically scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification.
[0120] In one embodiment, the hardware indicator information collection tool involved when the computer program is executed by the processor includes at least one of a hardware information collection tool and a custom indicator collection script; the hardware information collection tool is used to collect at least one of the GPU model, quantity, video memory size, memory size, disk information, network card model, and rate; the custom indicator collection script is used to collect hardware indicator information corresponding to the custom indicator.
[0121] In one embodiment, the computer program generated based on the hardware information when executed by the processor includes: classifying the obtained hardware information corresponding to each bare metal, and obtaining the quantity of bare metal in each category; obtaining a specification table template, filling the hardware information corresponding to the bare metal of the same category and the quantity of bare metal into the specification table template, and obtaining a bare metal specification table.
[0122] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0123] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0124] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0125] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A bare metal online management method, characterized in that: The method comprises: Scan the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification; Collect the hardware information corresponding to the bare metal service information through a hardware indicator information collection tool; The hardware information collected is stored in a monitoring service queue through a scanning service; The hardware information in the monitoring service queue is obtained through the platform management service, and a bare metal specification table is generated based on the hardware information.
2. The method according to claim 1, characterized in that Before the bare metal instance information in the platform management service is scanned by the scanning service to obtain the bare metal service information that is not bound to the specification, the following steps are included: Receive a bare metal creation instruction, where the bare metal creation instruction carries bare metal service information; Verifying the bare metal based on the bare metal service information; When the bare metal verification is successful, the bare metal service information is stored in a database, and the bare metal is installed based on the bare metal service information.
3. The method according to claim 2, characterized in that The installing the bare metal based on the bare metal service information includes: Prefabricate the hardware indicator information collection tool into the bare metal installation image; Based on the bare metal installation image, the bare metal corresponding to the bare metal service information is installed.
4. The method according to claim 3, characterized in that Scanning the bare metal instance information in the platform management service through the scanning service to obtain the bare metal service information that is not bound to the specification includes any of the following: After the bare metal installation is completed, actively call the scanning service to scan the bare metal instance information in the platform management service to obtain the bare metal service information that is not bound to the specification; or The bare metal instance information in the platform management service is periodically scanned by the scanning service to obtain the bare metal service information that is not bound to the specification.
5. The method according to claim 3, characterized in that: The hardware indicator information collection tool includes at least one of a hardware information collection tool and a custom indicator collection script; the hardware information collection tool is used to collect at least one of the GPU model, quantity, video memory size, memory size, disk information, network card model, and rate; the custom indicator collection script is used to collect hardware indicator information corresponding to the custom indicator.
6. The method according to any one of claims 1 to 5, characterized in that: Generating a bare metal specification table based on the hardware information includes: Classify the obtained hardware information corresponding to each of the bare metals, and obtain the quantity of the bare metals in each category; Obtain a specification sheet template, fill the specification sheet template with the hardware information corresponding to the bare metal of the same category and the quantity of the bare metal, and obtain a bare metal specification sheet.
7. A bare metal online management device, characterized in that: The device comprises: A scanning module, used to scan bare metal instance information in the platform management service through a scanning service to obtain bare metal service information that is not bound to a specification; A collection module, used to collect hardware information corresponding to the bare metal service information through a hardware indicator information collection tool; A cache module, used for storing the hardware information collected through a scanning service into a monitoring service queue; The specification sheet generation module is used to obtain the hardware information in the monitoring service queue through the platform management service, and generate a bare metal specification sheet based on the hardware information.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.