A method, device, equipment and medium for dynamically adapting bare metal hardware

Through a dynamic adaptation method of bare metal hardware, the problem of bare metal hardware adaptation relies on static configuration in the prior art is solved, efficient management and flexible adaptation of bare metal server hardware resources are achieved, and resource adaptation efficiency and system stability are improved.

CN119105818BActive Publication Date: 2025-06-24SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411570736.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-06-24
Estimated Expiration
2044-11-06

AI Technical Summary

Technical Problem

The existing bare metal hardware adaptation methods rely on static configuration, which is difficult to meet the dynamic demands of different users for hardware resources in a multi-tenant environment, resulting in low resource utilization and slow response speed, and hardware heterogeneity increases the complexity of adaptation and management.

Method used

Through a bare metal hardware dynamic adaptation method, it includes filtering the target operating system image media based on pre-acquisitioned operating system image media filtering instructions, hardware and operating system parameters, using the target operating system image media to guide the bare metal server for deployment, and automatically identify and load the hardware, and perform hardware detection and dynamic adaptation according to the dynamic adaptation mechanism. If the adaptation is successful and the preset conditions are met, dynamic adaptation will be completed.

Benefits of technology

It realizes efficient management and flexible adaptation of bare metal server hardware resources, improves resource adaptation efficiency, enhances system stability, and meets the management needs of diversified hardware resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105818B_ABST
    Figure CN119105818B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, device and medium for dynamically adapting bare-metal hardware, which relates to the technical field of cloud computing, including screening a target operating system image medium according to a pre-obtained operating system image medium screening instruction, hardware and operating system parameters; using the target operating system image medium to boot a bare-metal server and deploy the bare-metal server; automatically identifying and loading the hardware in the deployed bare-metal server to obtain target hardware, determining the current dynamic adaptation mechanism, performing hardware detection and dynamic adaptation on the target hardware to obtain an adaptation result; if the status of the adaptation result is successful adaptation, then testing the target hardware, if the test passes, then determining whether the target hardware meets a preset adaptation condition, if it meets, then completing the dynamic adaptation of the target hardware of the bare-metal, realizing the efficient management and flexible adaptation of the hardware resources of the bare-metal server, improving the resource adaptation efficiency, and enhancing the system stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing technology, and particularly to a method, device, equipment and medium for dynamically adapting bare metal hardware. Background Art

[0002] With the rapid development of cloud computing technology, bare metal servers have gradually become a popular choice for enterprise applications because they provide the same flexibility and scalability as virtualized servers while maintaining the performance and characteristics of traditional physical servers. Existing bare metal hardware adaptation methods usually rely on static configuration, which limits the flexible allocation and optimization of hardware resources. In a multi-tenant environment, static configuration is difficult to meet the dynamic requirements of different users for hardware resources, resulting in low resource utilization and slow response speed. In addition, the heterogeneity of hardware also increases the complexity of adaptation and management. Hardware devices of different models and manufacturers, such as X86 (The X86 architecture), ARM (Advanced RISC Machine), and RSIC-V architecture (open source instruction set architecture), may require different adaptation strategies. This exclusive hardware feature also brings high requirements for adaptability and compatibility. In the construction and operation and maintenance practice of large-scale data centers, the procurement of servers from multiple manufacturers, various models, and different product lines is usually involved. These servers may have significant differences in key hardware components such as CPU (Central Processing Unit), memory, network interface cards, RAID (Redundant Array of Independent Disks) controllers, and HBA (Host Bus Adapter) cards, so it is impossible to flexibly manage and adapt the diverse hardware resources in the data center.

[0003] As can be seen from the above, how to achieve efficient management and flexible adaptation of bare metal server hardware resources, improve resource adaptation efficiency, and enhance system stability is an issue to be solved in this field. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for dynamically adapting bare metal hardware, which can achieve efficient management and flexible adaptation of bare metal server hardware resources, improve resource adaptation efficiency, and enhance system stability. The specific solutions are as follows:

[0005] In a first aspect, the present application discloses a method for dynamically adapting bare metal hardware, including:

[0006] Screening a target operating system image medium according to a pre-obtained operating system image medium screening instruction and hardware and operating system parameters;

[0007] Boot a preset bare metal server using the target operating system image medium, and deploy the bare metal server to obtain the deployed bare metal server;

[0008] Automatically identify and load the hardware in the deployed bare metal server to obtain target hardware, determine the current dynamic adaptation mechanism, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result;

[0009] If the status of the adaptation result is successful adaptation, test the target hardware. If the test passes, determine whether the target hardware meets the preset adaptation conditions. If the target hardware meets the preset adaptation conditions, complete the dynamic adaptation of the target hardware of the bare metal.

[0010] Optionally, before screening the target operating system image medium according to the pre-obtained operating system image medium screening instruction, hardware, and operating system parameters, it further includes:

[0011] Physically assemble the local hardware units;

[0012] Perform initialization configuration on the assembled hardware units, and start a preset adaptation sequence to obtain an operating system image medium screening instruction, hardware, and operating system parameters.

[0013] Optionally, screening the target operating system image medium according to the pre-obtained operating system image medium screening instruction, hardware, and operating system parameters includes:

[0014] Obtain an operating system image medium screening instruction, hardware configuration parameters, and an operating system adaptation list sent by the administrator; the hardware and operating system parameters include the hardware configuration parameters and the operating system adaptation list;

[0015] Respond to the operating system image medium screening instruction, and screen the target operating system image medium from all operating system image media according to the hardware configuration parameters and the operating system adaptation list.

[0016] Optionally, automatically identifying and loading the hardware in the deployed bare metal server includes:

[0017] Use the Udev mechanism to automatically identify the hardware in the deployed bare metal server, and load the hardware in the deployed bare metal server; the hardware loading includes kexec hot loading or cold start hardware loading.

[0018] Optionally, the determining of the current dynamic adaptation mechanism includes:

[0019] Obtain the current hardware resources, the dynamic adaptation strategy fed back by manual intervention, and the current dynamically scheduled execution tasks;

[0020] Determine the current dynamic adaptation mechanism based on the current hardware resources, the dynamic adaptation strategy, and the current dynamically scheduled execution tasks.

[0021] Optionally, if the status of the adaptation result is successful adaptation, then test the target hardware. If the test passes, then determine whether the target hardware meets the preset adaptation conditions, including:

[0022] If the status of the adaptation result is successful adaptation, then conduct functional verification tests, consistency repeat tests, and durability aging tests on the target hardware;

[0023] If the test passes, then determine whether the target hardware meets the preset adaptation conditions. If the target hardware does not meet the preset adaptation conditions, then repeat the process of screening the target operating system image medium until the target hardware meets the preset adaptation conditions.

[0024] Optionally, the bare metal hardware dynamic adaptation method further includes:

[0025] If the status of the adaptation result is adaptation failure or response timeout, then automatically perform a rollback operation and record the number of times of adaptation failure or response timeout;

[0026] When the number is not less than the preset adaptation number, mark the target hardware and the operating system with the current adaptation failure or response timeout as incompatible.

[0027] In a second aspect, the present application discloses a bare metal hardware dynamic adaptation device, including:

[0028] A screening module, configured to screen a target operating system image medium according to a pre-obtained operating system image medium screening instruction, hardware, and operating system parameters;

[0029] A deployment module, configured to use the target operating system image medium to boot a preset bare metal server and deploy the bare metal server to obtain the deployed bare metal server;

[0030] An automatic recognition and loading module, configured to perform hardware automatic recognition and hardware loading on the hardware in the deployed bare metal server to obtain target hardware, determine the current dynamic adaptation mechanism, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result;

[0031] A dynamic adaptation module is used to test the target hardware if the status of the adaptation result is successful adaptation. If the test passes, it is determined whether the target hardware meets the preset adaptation conditions. If the target hardware meets the preset adaptation conditions, the dynamic adaptation of the target hardware of the bare metal is completed.

[0032] In a third aspect, the present application discloses an electronic device, including:

[0033] A memory for storing a computer program;

[0034] A processor for executing the computer program to implement the foregoing bare metal hardware dynamic adaptation method.

[0035] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the foregoing disclosed bare metal hardware dynamic adaptation method are implemented.

[0036] It can be seen that the present application provides a bare metal hardware dynamic adaptation method, including screening a target operating system image medium according to a pre-acquired operating system image medium screening instruction, hardware, and operating system parameters; using the target operating system image medium to boot a preset bare metal server and deploying the bare metal server to obtain the deployed bare metal server; automatically identifying and loading the hardware in the deployed bare metal server to obtain target hardware, determining the current dynamic adaptation mechanism, and performing hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result; if the status of the adaptation result is successful adaptation, testing the target hardware, if the test passes, determining whether the target hardware meets the preset adaptation conditions, and if the target hardware meets the preset adaptation conditions, completing the dynamic adaptation of the target hardware of the bare metal. In view of the complexity and diversity of hardware in the cloud computing scenario, the present application screens a target operating system image medium through an operating system image medium screening instruction, hardware, and operating system parameters to boot a bare metal server, deploy the bare metal server, automatically identify and load the hardware in the deployed bare metal server to obtain target hardware, perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism, and if the adaptation is successful and meets the preset adaptation conditions, complete the dynamic adaptation of the target hardware of the bare metal. Through an automated adaptation process, efficient medium management, automatic hardware identification and dynamic loading, and dynamic adaptation, the efficient management, flexible adaptation, and rapid response of the hardware resources of the bare metal server are realized, the resource adaptation efficiency is improved, the system stability is enhanced, the market demand is met, and technical support is provided for the operation of the data center. Description of the Drawings

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

[0038] Figure 1 Flowchart of a method for dynamically adapting bare-metal hardware disclosed in this application;

[0039] Figure 2 Structural diagram of a system for dynamically adapting bare-metal hardware disclosed in this application;

[0040] Figure 3 Specific flowchart of a method for dynamically adapting bare-metal hardware disclosed in this application;

[0041] Figure 4 Schematic structural diagram of a device for dynamically adapting bare-metal hardware disclosed in this application;

[0042] Figure 5 Structural diagram of an electronic device provided by this application. Detailed implementation manners

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

[0044] With the rapid development of cloud computing technology, bare-metal servers have gradually become a popular choice for enterprise applications because they offer the same flexibility and scalability as virtualized servers while maintaining the performance and characteristics of traditional physical servers. Existing bare-metal hardware adaptation methods usually rely on static configuration, which limits the flexible allocation and optimization of hardware resources. In a multi-tenant environment, static configuration is difficult to meet the dynamic requirements of different users for hardware resources, resulting in low resource utilization and slow response speed. In addition, the heterogeneity of hardware also increases the complexity of adaptation and management. Hardware devices of different models and manufacturers, such as X86, ARM, and RSIC-V architectures, may require different adaptation strategies. This exclusive hardware feature also brings high requirements for adaptability and compatibility. In the construction and operation and maintenance practice of large-scale data centers, the procurement of servers from multiple manufacturers, multiple models, and different product lines is usually involved. These servers may have significant differences in key hardware components such as CPUs, memory, network interface cards, RAID controllers, and HBA cards, so it is impossible to flexibly manage and adapt the diverse hardware resources in the data center. As can be seen from the above, how to achieve efficient management and flexible adaptation of bare-metal server hardware resources, improve resource adaptation efficiency, and enhance system stability is an issue to be solved in this field.

[0045] See Figure 1 As shown, an embodiment of the present invention discloses a method for dynamically adapting bare-metal hardware, which may specifically include:

[0046] Step S11: Screen the target operating system image medium according to the pre-obtained operating system image medium screening instruction, hardware, and operating system parameters.

[0047] In this embodiment, the local hardware units are physically assembled; the assembled hardware units are initialized and configured, and a preset adaptation sequence is started to obtain the operating system image medium screening instruction, hardware, and operating system parameters, and then the operating system image medium screening instruction, hardware configuration parameters, and operating system adaptation list sent by the administrator are obtained; the hardware and operating system parameters include the hardware configuration parameters and the operating system adaptation list; respond to the operating system image medium screening instruction, and screen the target operating system image medium from all operating system image media according to the hardware configuration parameters and the operating system adaptation list.

[0048] The method for dynamically adapting bare-metal hardware proposed in this application can be applied to a bare-metal hardware dynamic adaptation system, which includes five main modules: a controller module, a hardware discovery agent module, a fault recovery module, a human-computer interaction module, and a medium storage module. It realizes the dynamic adaptation of bare-metal server hardware.

[0049] Specifically, first, it is necessary to integrate and initialize the hardware unit. After the physical assembly of the hardware unit is completed, it is initialized and configured through the controller module, and the adaptation sequence is started. The controller module receives the predefined hardware configuration parameters and the operating system adaptation list from the system administrator. Based on these parameters, the controller module triggers the start of the adaptation task. The media storage module responds to the operating system image media screening instruction sent by the controller module, selects and allocates an appropriate target operating system image media for the subsequent adaptation process.

[0050] Step S12: Use the target operating system image media to boot the preset bare-metal server and deploy the bare-metal server to obtain the deployed bare-metal server.

[0051] Step S13: Automatically identify and load the hardware in the deployed bare-metal server to obtain the target hardware, determine the current dynamic adaptation mechanism, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain the adaptation result.

[0052] In this embodiment, the Udev mechanism is used to automatically identify the hardware in the deployed bare-metal server and load the hardware in the deployed bare-metal server; the hardware loading includes kexec hot loading or cold start hardware loading to obtain the target hardware, obtain the current hardware resources, the dynamic adaptation strategy fed back by manual intervention, and the current dynamic scheduling execution task; determine the current dynamic adaptation mechanism based on the current hardware resources, the dynamic adaptation strategy, and the current dynamic scheduling execution task, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain the adaptation result.

[0053] Specifically, the controller module is responsible for booting the bare-metal server using the target operating system image medium and deploying the hardware discovery agent module thereon. After the deployment is completed, the adaptation process officially starts. After the hardware discovery agent module is started, it uses the udev mechanism to automatically identify the hardware. According to the configuration, this module will execute kexec to hot-load the operating system or perform a cold start to load the hardware, and execute diagnostic scripts to verify the functionality of the hardware, obtain the target hardware, and then determine the current dynamic adaptation mechanism; among them, the dynamic adaptation mechanism includes but is not limited to real-time monitoring of hardware resources, dynamic adjustment of adaptation policies, and dynamic scheduling of task execution. To ensure the dynamics of the adaptation process, the system provides an interface for manual intervention, allowing the administrator to adjust the adaptation policy according to real-time feedback. In addition, the system supports dynamic configuration of task parameters to adapt to the changing hardware environment, and then the controller module sends hardware detection and adaptation instructions to the hardware discovery agent module. These instructions are transmitted through a stable communication protocol, and the hardware discovery agent module performs hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain the adaptation result. After the hardware discovery agent module finishes executing the detection and adaptation instructions, it feeds back the execution result to the controller module. The controller module records this information and decides whether to transfer to the next adaptation task according to the execution result.

[0054] Step S14: If the status of the adaptation result is adaptation success, test the target hardware. If the test passes, determine whether the target hardware meets the preset adaptation conditions. If the target hardware meets the preset adaptation conditions, complete the dynamic adaptation of the target hardware of the bare metal.

[0055] In this embodiment, if the status of the adaptation result is adaptation success, perform a functional verification test, a consistency repeat test, and a durability aging test on the target hardware; if the test passes, determine whether the target hardware meets the preset adaptation conditions. If the target hardware does not meet the preset adaptation conditions, repeat the process of screening the target operating system image medium until the target hardware meets the preset adaptation conditions.

[0056] Specifically, if the status of the adaptation result is adaptation success, the controller module will execute a series of functional tests to ensure the compatibility between the hardware and the operating system and record the test results. To ensure the reliability of the test results, the system will perform a cold start on the hardware and repeat the adaptation test process to verify the consistency of the results. Considering the test cycle and resource optimization, the durability test will selectively perform on some operating systems, and record the test data through the medium storage module to evaluate the stability and performance degradation of the hardware during long-term operation.

[0057] In this embodiment, the bare-metal hardware dynamic adaptation method further includes: if the status of the adaptation result is adaptation failure or response timeout, automatically perform a rollback operation and record the number of adaptation failures or response timeouts; when the number is not less than a preset adaptation number, mark the target hardware and operating system with the current adaptation failure or response timeout as incompatible.

[0058] Specifically, if the status of the adaptation result is adaptation failure or response timeout, using the Kexec technology, the controller module triggers an immediate switch of the operating system to the next pre-configured environment, ensuring the automation and seamlessness of the process. The fault recovery module will automatically intervene. This module will perform a rollback operation to the nearest stable adaptation state and re-attempt adaptation. If the adaptation fails three times in a row, the system will record the fault and mark the combination of this hardware and the operating system as incompatible. At this stage, the human interaction module provides an interface for the system administrator to perform manual fault troubleshooting and hardware status intervention, and the administrator can choose to continue the adaptation process or reset the adaptation environment.

[0059] In this embodiment, the structure of the bare-metal hardware dynamic adaptation system is as Figure 2 shown, including five main modules: a controller module, a hardware discovery agent module, a fault recovery module, a human interaction module, and a media storage module. The specific function descriptions are as follows:

[0060] Controller module: The controller module is the core of this application, responsible for coordinating and managing the operation of the entire system. It ensures the efficient utilization of hardware resources by defining and managing resource allocation policies. This module is also responsible for monitoring the system status, including resource usage rate, performance metrics, and system health status, and making decisions according to preset rules or automatically learned patterns to achieve dynamic adjustment of resources. The controller module has the function of starting and managing automated adaptation tasks.

[0061] Hardware discovery agent module: The hardware discovery agent module is responsible for automatically detecting and identifying newly added or changed hardware resources in the data center. This module communicates with the interfaces of hardware devices, collects information such as the model, specifications, and status of the hardware, and registers it in the system. In addition, this module also supports plug-and-play of hardware devices, enabling newly added hardware devices to be quickly recognized and utilized by the system. The hardware discovery agent module can be automatically deployed to the bare-metal server and execute the adaptation process.

[0062] Fault Recovery Module: The fault recovery module aims to improve the reliability and stability of the system. By continuously monitoring the hardware status, this module can automatically trigger the failover and recovery mechanism when detecting hardware failures or performance degradation. It can quickly migrate services from a faulty hardware to a healthy one, thus minimizing service interruption time and ensuring data integrity and business continuity. The fault recovery module can automatically perform rollback operations and record incompatible hardware and operating system combinations when detecting adapter failures.

[0063] Human Interaction Module: The human interaction module provides a user interface that enables system administrators to manually intervene in the management and adaptation process of hardware resources. This module supports users to customize hardware adaptation policies, set performance monitoring thresholds, and perform manual troubleshooting when the automated system fails to solve problems. In addition, this module also provides logging and auditing functions for system operations to facilitate the tracking and analysis of the system's historical operations. The human interaction module allows system administrators to manually intervene in the adaptation process and adjust the adaptation policy.

[0064] Media Storage Module: The media storage module is responsible for managing the configuration data and status information of all hardware resources in the data center. This module uses an efficient data storage solution to ensure the persistence and security of information. It also supports data backup and recovery functions to prevent data loss or corruption and provides data consistency and integrity guarantees. The media storage module can efficiently select and allocate operating system image media.

[0065] The specific process of bare-metal hardware dynamic adaptation proposed in this application is as Figure 3 shown. First, physically assemble the local hardware units, initialize the configured hardware units, obtain the operating system image media screening instructions, hardware configuration parameters, and operating system adaptation list sent by the administrator to screen the target operating system image media. Then, use the target operating system image media to boot the preset bare-metal server and deploy the bare-metal server. Next, automatically identify and load the hardware in the deployed bare-metal server to obtain the target hardware, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain the adaptation result. If the status of the adaptation result is successful adaptation, perform functional verification tests, consistency repeated tests, and durability aging tests on the target hardware. If the tests pass, then judge whether the target hardware meets the preset adaptation conditions. If it meets, complete the process of bare-metal hardware dynamic adaptation. If it does not meet, repeat the process of screening the target operating system image media. If the status of the adaptation result is adaptation failure or response timeout, immediately switch to the next pre-configured environment to ensure the automation and seamlessness of the process, and automatically perform rollback operations.

[0066] The innovation of this application lies in: abstracting hardware resources into manageable objects for unified management and scheduling, dynamically adjusting the allocation of hardware resources according to real-time monitoring data and preset resource allocation strategies, providing an adaptation mechanism that can be compatible with hardware devices of different models and manufacturers, predicting users' demand for hardware resources through machine learning algorithms and performing resource scheduling in advance, and improving the utilization efficiency of hardware resources by optimizing the interaction between hardware drivers and the operating system.

[0067] The advantages of this application are as follows: improving resource utilization rate, ensuring the optimal allocation of hardware resources according to real-time needs through automated adaptation processes and dynamic resource scheduling, thereby enhancing the resource utilization rate of bare-metal servers in cloud computing environments; enhancing system response speed, significantly reducing system startup and recovery times and accelerating the response speed to user demands by using the hardware discovery agent module and instant operating system switching technology; enhancing system stability, ensuring system stability and business continuity in case of adaptation problems through fault detection and automatic fallback mechanisms, as well as the possibility of manual intervention; simplifying management operations, the dynamic configuration and task flow mechanism of this application simplifies the hardware management and maintenance work in data centers, reducing operational complexity and costs.

[0068] It is worth noting that this application supports manual intervention and dynamic configuration, allowing system administrators to adjust adaptation strategies based on real-time feedback. Through a stable instruction transmission and execution feedback mechanism, the continuity and accuracy of adaptation tasks are ensured. This invention not only improves the startup efficiency of bare-metal servers but also enhances the stability and reliability of the system, providing strong technical support for the operation of data centers and meeting the market's demand for flexible and efficient hardware resource management.

[0069] In this embodiment, a target operating system image medium is screened according to a pre-acquired operating system image medium screening instruction, hardware and operating system parameters; the target operating system image medium is used to boot a preset bare metal server, and the bare metal server is deployed to obtain the deployed bare metal server; the hardware in the deployed bare metal server is automatically identified and loaded to obtain target hardware, the current dynamic adaptation mechanism is determined, and the target hardware is detected and dynamically adapted according to the current dynamic adaptation mechanism to obtain an adaptation result; if the status of the adaptation result is successful adaptation, the target hardware is tested, if the test passes, it is determined whether the target hardware meets the preset adaptation conditions, and if the target hardware meets the preset adaptation conditions, the dynamic adaptation of the target hardware of the bare metal is completed. In view of the complexity and diversity of hardware in the cloud computing scenario, this application screens a target operating system image medium through an operating system image medium screening instruction, hardware and operating system parameters to boot a bare metal server, deploy the bare metal server, automatically identify and load the hardware in the deployed bare metal server to obtain target hardware, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism. If the adaptation is successful and meets the preset adaptation conditions, the dynamic adaptation of the target hardware of the bare metal is completed. Through an automated adaptation process, efficient medium management, automatic hardware identification and dynamic loading, and dynamic adaptation, the efficient management, flexible adaptation, and rapid response of the hardware resources of the bare metal server are realized, the resource adaptation efficiency is improved, the system stability is enhanced, the market demand is met, and technical support is provided for the operation of the data center.

[0070] See Figure 4 As shown, an embodiment of the present invention discloses a bare metal hardware dynamic adaptation device, which may specifically include:

[0071] A screening module 11, configured to screen a target operating system image medium according to a pre-acquired operating system image medium screening instruction, hardware and operating system parameters;

[0072] A deployment module 12, configured to use the target operating system image medium to boot a preset bare metal server, and deploy the bare metal server to obtain the deployed bare metal server;

[0073] An automatic identification and loading module 13, configured to automatically identify and load the hardware in the deployed bare metal server to obtain target hardware, determine the current dynamic adaptation mechanism, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result;

[0074] The dynamic adaptation module 14 is configured to, if the status of the adaptation result is successful adaptation, test the target hardware. If the test passes, determine whether the target hardware meets the preset adaptation conditions. If the target hardware meets the preset adaptation conditions, complete the dynamic adaptation of the target hardware for the bare metal.

[0075] In this embodiment, a target operating system image medium is screened according to a pre-acquired operating system image medium screening instruction, hardware, and operating system parameters; the preset bare metal server is booted using the target operating system image medium, and the bare metal server is deployed to obtain the deployed bare metal server; the hardware in the deployed bare metal server is automatically recognized and hardware loaded to obtain target hardware, the current dynamic adaptation mechanism is determined, and the target hardware is subjected to hardware detection and dynamic adaptation according to the current dynamic adaptation mechanism to obtain an adaptation result; if the status of the adaptation result is successful adaptation, the target hardware is tested. If the test passes, determine whether the target hardware meets the preset adaptation conditions. If the target hardware meets the preset adaptation conditions, complete the dynamic adaptation of the target hardware for the bare metal. In this application, in view of the complexity and diversity of hardware in the cloud computing scenario, a target operating system image medium is screened through an operating system image medium screening instruction, hardware, and operating system parameters to boot the bare metal server, deploy the bare metal server, automatically recognize and load the hardware in the deployed bare metal server to obtain target hardware, perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism. If the adaptation is successful and meets the preset adaptation conditions, complete the dynamic adaptation of the target hardware for the bare metal. Through an automated adaptation process, efficient medium management, automatic hardware recognition and dynamic loading, and dynamic adaptation, efficient management, flexible adaptation, and rapid response of the hardware resources of the bare metal server are achieved, the resource adaptation efficiency is improved, the system stability is enhanced, the market demand is met, and technical support is provided for the operation of the data center.

[0076] In some specific embodiments, the screening module 11 may specifically include:

[0077] A physical assembly module for physically assembling local hardware units;

[0078] An initialization configuration module for initializing the assembled hardware units and starting a preset adaptation sequence to obtain an operating system image medium screening instruction, hardware, and operating system parameters.

[0079] In some specific embodiments, the screening module 11 may specifically include:

[0080] An acquisition module, configured to acquire an operating system image medium screening instruction, hardware configuration parameters, and an operating system adaptation list sent by an administrator; the hardware and operating system parameters include the hardware configuration parameters and the operating system adaptation list.

[0081] An instruction response module, configured to respond to the operating system image medium screening instruction, and screen a target operating system image medium from all operating system image media according to the hardware configuration parameters and the operating system adaptation list.

[0082] In some specific embodiments, the automatic identification and loading module 13 may specifically include:

[0083] A hardware automatic identification and hardware loading module, configured to automatically identify the hardware in the deployed bare metal server by using the Udev mechanism, and perform hardware loading on the hardware in the deployed bare metal server; the hardware loading includes kexec hot loading or cold start hardware loading.

[0084] In some specific embodiments, the automatic identification and loading module 13 may specifically include:

[0085] A resource, policy, and task acquisition module, configured to acquire current hardware resources, a dynamic adaptation policy fed back by manual intervention, and a current dynamic scheduling execution task.

[0086] A current dynamic adaptation mechanism determination module, configured to determine a current dynamic adaptation mechanism based on the current hardware resources, the dynamic adaptation policy, and the current dynamic scheduling execution task.

[0087] In some specific embodiments, the dynamic adaptation module 14 may specifically include:

[0088] A test module, configured to perform a functional verification test, a consistency repetition test, and a durability aging test on the target hardware if the status of the adaptation result is adaptation success.

[0089] A repeated execution module, configured to determine whether the target hardware meets a preset adaptation condition if the test passes, and if the target hardware does not meet the preset adaptation condition, repeat the process of screening the target operating system image medium until the target hardware meets the preset adaptation condition.

[0090] In some specific embodiments, the bare metal hardware dynamic adaptation device may specifically further include:

[0091] A fallback module, configured to automatically perform a fallback operation if the status of the adaptation result is adaptation failure or response timeout, and record the number of times of adaptation failure or response timeout.

[0092] A module for marking the target hardware with a current adaptation failure or response timeout and the operating system as incompatible when the number of times is not less than a preset adaptation number of times.

[0093] Figure 5 This is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. Among them, the memory 22 is used to store a computer program, and the computer program is loaded and executed by the processor 21 to implement the relevant steps in the bare-metal hardware dynamic adaptation method executed by the electronic device disclosed in any of the foregoing embodiments.

[0094] In this embodiment, the power supply 23 is used to provide operating voltages for the various hardware devices on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows is any communication protocol applicable to the technical solution of the present application, and specific limitations are not imposed thereon here; the input / output interface 25 is used to obtain external input data or output data to the outside, and its specific interface type can be selected according to specific application requirements, and specific limitations are not made here.

[0095] In addition, as a carrier for resource storage, the memory 22 may be a read-only memory, a random access memory, a disk, or an optical disc, etc., and the resources stored thereon include an operating system 221, a computer program 222, and data 223, etc., and the storage method may be short-term storage or permanent storage.

[0096] Among them, the operating system 221 is used to manage and control the various hardware devices and the computer program 222 on the electronic device 20 to implement the operation and processing of the data 223 in the memory 22 by the processor 21, and it may be Windows, Unix, Linux, etc. The computer program 222 may further include a computer program capable of completing other specific tasks in addition to the computer program capable of implementing the bare-metal hardware dynamic adaptation method executed by the electronic device 20 disclosed in any of the foregoing embodiments. The data 223 may include not only the data transmitted from external devices received by the bare-metal hardware dynamic adaptation device, but also the data collected by its own input / output interface 25, etc.

[0097] The steps of the methods or algorithms described in combination with the embodiments disclosed in this article can be implemented directly by hardware, software modules executed by a processor, or a combination of both. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.

[0098] Furthermore, an embodiment of the present application also discloses a computer-readable storage medium. When a computer program stored in the storage medium is loaded and executed by a processor, it implements the steps of the bare-metal hardware dynamic adaptation method disclosed in any of the foregoing embodiments.

[0099] Finally, it should also be noted that in this article, 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 including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0100] The above has introduced in detail a bare-metal hardware dynamic adaptation method, device, equipment and storage medium provided by the present invention. Specific examples are used in this article to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A bare metal hardware dynamic adaptation method, characterized in that: include: Filter the target operating system image medium according to the pre-acquired operating system image medium filtering instruction, hardware and operating system parameters; Booting a preset bare metal server using the target operating system image medium, and deploying the bare metal server to obtain the deployed bare metal server; Performing hardware automatic identification and hardware loading on the hardware in the bare metal server after deployment to obtain target hardware, determining a current dynamic adaptation mechanism, and performing hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result; If the status of the adaptation result is successful adaptation, the target hardware is tested. If the test passes, it is determined whether the target hardware meets the preset adaptation conditions. If the target hardware meets the preset adaptation conditions, dynamic adaptation of the target hardware of the bare metal is completed; The process of testing the target hardware is as follows: perform functional verification tests on the target hardware and record the test results; Cold start the target hardware and repeat the adaptation test process to verify the consistency of the results and complete the consistency repetition test; perform durability aging test on the target hardware's operating system that meets the test conditions; If the status of the adaptation result is adaptation failure or response timeout, Kexec technology is used to instantly switch to the next pre-configured environment.

2. The bare metal hardware dynamic adaptation method according to claim 1, characterized in that: Before screening the target operating system image medium according to the pre-acquired operating system image medium screening instruction, hardware and operating system parameters, the method further includes: Physical assembly of local hardware units; The assembled hardware unit is initialized and configured, and a preset adaptation sequence is started to obtain operating system image medium screening instructions, hardware and operating system parameters.

3. The bare metal hardware dynamic adaptation method according to claim 1, characterized in that: The method of screening the target operating system image medium according to the pre-acquired operating system image medium screening instruction, hardware and operating system parameters includes: Obtaining the operating system image media screening instruction, hardware configuration parameters and operating system adapter list sent by the administrator; the hardware and operating system parameters include the hardware configuration parameters and the operating system adapter list; In response to the operating system image medium screening instruction, a target operating system image medium is screened from all operating system image media according to the hardware configuration parameters and the operating system adaptation list.

4. The bare metal hardware dynamic adaptation method according to claim 1, characterized in that: The automatic hardware identification and hardware loading of the hardware in the deployed bare metal server includes: The Udev mechanism is used to automatically identify the hardware in the bare metal server after deployment, and the hardware in the bare metal server after deployment is loaded with hardware; the hardware loading includes kexec hot loading or cold start hardware loading.

5. The bare metal hardware dynamic adaptation method according to claim 1, characterized in that: The determining of the current dynamic adaptation mechanism includes: Obtain current hardware resources, dynamic adaptation strategies for human intervention feedback, and current dynamic scheduling execution tasks; A current dynamic adaptation mechanism is determined based on the current hardware resources, the dynamic adaptation strategy, and the current dynamic scheduling execution task.

6. The bare metal hardware dynamic adaptation method according to claim 1, characterized in that: If the state of the adaptation result is that the adaptation is successful, the target hardware is tested, and if the test passes, whether the target hardware meets the preset adaptation condition is determined, including: If the status of the adaptation result is successful adaptation, performing a functional verification test, a consistency repetition test, and a durability aging test on the target hardware; If the test passes, it is determined whether the target hardware meets the preset adaptation condition. If the target hardware does not meet the preset adaptation condition, the process of screening the target operating system image medium is repeated until the target hardware meets the preset adaptation condition.

7. The bare metal hardware dynamic adaptation method according to any one of claims 1 to 6, characterized in that: Also includes: If the status of the adaptation result is adaptation failure or response timeout, the rollback operation is automatically performed and the number of adaptation failures or response timeouts is recorded; When the number is not less than the preset adaptation number, the target hardware and operating system with current adaptation failure or response timeout are marked as incompatible.

8. A bare metal hardware dynamic adaptation device, characterized in that: include: A screening module, used to screen the target operating system image medium according to the pre-acquired operating system image medium screening instructions, hardware and operating system parameters; A deployment module, used to boot a preset bare metal server using the target operating system image medium, and deploy the bare metal server to obtain the deployed bare metal server; An automatic identification and loading module, used to perform hardware automatic identification and hardware loading on the hardware in the bare metal server after deployment to obtain target hardware, determine the current dynamic adaptation mechanism, and perform hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result; A dynamic adaptation module, for testing the target hardware if the state of the adaptation result is successful adaptation, and if the test passes, determining whether the target hardware meets the preset adaptation condition, and if the target hardware meets the preset adaptation condition, completing the dynamic adaptation of the target hardware of the bare metal; The process of testing the target hardware is as follows: perform functional verification tests on the target hardware and record the test results; Cold start the target hardware and repeat the adaptation test process to verify the consistency of the results and complete the consistency repetition test; perform durability aging test on the target hardware's operating system that meets the test conditions; If the status of the adaptation result is adaptation failure or response timeout, Kexec technology is used to instantly switch to the next pre-configured environment.

9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, used to execute the computer program to implement the bare metal hardware dynamic adaptation method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, the bare metal hardware dynamic adaptation method as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Client-side hardware environment adaption method, device, server and system

    CN104125206A

  • Bare metal server deployment method and device, and medium

    CN116954638A