Bare metal hardware dynamic adaptation method and device, equipment and medium

Through dynamic adaptation methods, filter and verify the operating system image media, automatically identify and load hardware resources, solving the problem of hardware resource management and adaptation complexity of bare metal servers, and improving resource utilization and system stability.

CN119105818AActive Publication Date: 2024-12-10SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing bare metal hardware adaptation methods rely on static configuration and are difficult to meet the dynamic requirements of hardware resources in multi-tenant environments, resulting in low resource utilization and slow response speed, and hardware heterogeneity increases the complexity of adaptation and management.

Method used

The target operating system image media filtering instructions and hardware parameters are filtered through pre-acquisitioned operating system image media, and the bare metal server is guided to deploy, and the hardware is automatically identified and loaded, and hardware detection and dynamic adaptation are carried out according to the dynamic adaptation mechanism. If the adaptation is successful, the functional verification test will be performed until the preset adaptation conditions are met.

Benefits of technology

It realizes efficient management and flexible adaptation of bare metal server hardware resources, improves resource adaptation efficiency and system stability, and simplifies the hardware management and maintenance of data centers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105818A_ABST
    Figure CN119105818A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic adaptation method and device for bare metal hardware, equipment and a medium, and relates to the technical field of cloud computing, and the method comprises the steps: screening a target operating system mirror image medium according to an operating system mirror image medium screening instruction, hardware and operating system parameters which are obtained in advance; using the target operating system mirror image medium to guide the bare metal server, and deploying the bare metal server; performing hardware automatic identification and hardware loading on hardware in the deployed bare metal server to obtain target hardware, determining a current dynamic adaptation mechanism, and performing hardware detection and dynamic adaptation on the target hardware to obtain an adaptation result; and if the state of the adaptation result is successful adaptation, testing the target hardware, if the test is passed, judging whether the target hardware meets a preset adaptation condition, and if the target hardware meets the preset adaptation condition, completing dynamic adaptation of the target hardware of the bare metal, so that efficient management and flexible adaptation of hardware resources of the bare metal server are realized, the resource adaptation efficiency is improved, and the user experience is improved. The system stability is enhanced.
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 in particular to a bare metal hardware dynamic adaptation method, device, equipment and medium. 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 needs of different users for hardware resources, resulting in low resource utilization and slow response. 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, Advanced Reduced Instruction Set Machine), 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, it is usually involved in the procurement of servers from multiple manufacturers, multiple models, and different product lines. These servers may have significant differences in key hardware components such as CPU (Central Processing Unit), memory, network interface card, RAID (Redundant Array of Independent Disks) controller, HBA (Host Bus Adapter, Fibre Channel) card, etc., 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 are issues 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 bare metal hardware dynamic adaptation method, device, equipment and medium, which can realize efficient management and flexible adaptation of bare metal server hardware resources, improve resource adaptation efficiency, and enhance system stability. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a bare metal hardware dynamic adaptation method, comprising:

[0006] Filter the target operating system image medium according to the pre-acquired operating system image medium filtering instruction, hardware and operating system parameters;

[0007] 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;

[0008] 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;

[0009] 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, the dynamic adaptation of the bare metal target hardware is completed.

[0010] Optionally, 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:

[0011] Physical assembly of local hardware units;

[0012] 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.

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

[0014] 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;

[0015] 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.

[0016] Optionally, the automatic hardware identification and hardware loading of the hardware in the bare metal server after deployment includes:

[0017] 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.

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

[0019] Obtain current hardware resources, dynamic adaptation strategies for human intervention feedback, and current dynamic scheduling execution tasks;

[0020] A current dynamic adaptation mechanism is determined based on the current hardware resources, the dynamic adaptation strategy, and the current dynamic scheduling execution task.

[0021] Optionally, if the state of the adaptation result is successful adaptation, testing the target hardware, and if the test passes, determining whether the target hardware meets a preset adaptation condition includes:

[0022] 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;

[0023] 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.

[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, the rollback operation is automatically performed and the number of adaptation failures or response timeouts is recorded;

[0026] 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.

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

[0028] 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;

[0029] 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;

[0030] 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;

[0031] The 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, comprising:

[0033] Memory, used to store computer programs;

[0034] A processor is used to execute the computer program to implement the aforementioned 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 above-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 filtering target operating system image media according to pre-acquired operating system image media filtering instructions, 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; performing hardware automatic identification and hardware loading on 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, and 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 response to the complexity and diversity of hardware in cloud computing scenarios, this application uses operating system image media screening instructions, hardware and operating system parameters to screen target operating system image media to guide bare metal servers, deploy bare metal servers, automatically identify and load the hardware in the deployed bare metal servers 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, and achieve efficient management, flexible adaptation and rapid response of bare metal server hardware resources through automated adaptation process, efficient media management, hardware automatic identification and dynamic loading, and dynamic adaptation, thereby improving resource adaptation efficiency, enhancing system stability, meeting market demand, and providing technical support for data center operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0038] Figure 1 A flowchart of a bare metal hardware dynamic adaptation method disclosed in this application;

[0039] Figure 2 A structural diagram of a bare metal hardware dynamic adaptation system disclosed in this application;

[0040] Figure 3 A specific flow chart of bare metal hardware dynamic adaptation disclosed in this application;

[0041] Figure 4 This is a schematic diagram of the structure of a bare metal hardware dynamic adaptation device disclosed in this application;

[0042] Figure 5 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0043] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within 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 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 needs of different users for hardware resources, resulting in low resource utilization and slow response. 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 practices of large-scale data centers, it is usually involved to purchase servers from multiple manufacturers, multiple models, and different product lines. These servers may have significant differences in key hardware components such as CPU, memory, network interface card, RAID controller, HBA card, etc., 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 are issues to be solved in this field.

[0045] See also Figure 1 As shown, the embodiment of the present invention discloses a bare metal hardware dynamic adaptation method, which may specifically include:

[0046] Step S11: Filter the target operating system image medium according to the pre-acquired operating system image medium screening instructions, hardware and operating system parameters.

[0047] In this embodiment, the local hardware unit is physically assembled; the assembled hardware unit is initialized and configured, and a preset adaptation sequence is started to obtain the operating system image media screening instruction, hardware and operating system parameters, and then the operating system image media 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; the operating system image media screening instruction is responded to, and the 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.

[0048] The bare metal hardware dynamic adaptation method proposed in this application can be applied to the bare metal hardware dynamic adaptation system, which includes five main modules: controller module, hardware discovery agent module, fault recovery module, manual interaction module, and media storage module, to achieve dynamic adaptation of bare metal server hardware.

[0049] Specifically, the hardware unit needs to be integrated and initialized first. After the physical assembly of the hardware unit is completed, it is initialized and configured through the controller module to start the adaptation sequence. The controller module receives predefined hardware configuration parameters and 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 the appropriate target operating system image media for the next adaptation process.

[0050] Step S12: 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.

[0051] Step S13: Automatically identify and load the hardware in the bare metal server after deployment 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 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 to obtain the target hardware, obtain the current hardware resources, the dynamic adaptation strategy of manual intervention feedback, and the current dynamic scheduling execution task; based on the current hardware resources, the dynamic adaptation strategy and the current dynamic scheduling execution task, the current dynamic adaptation mechanism is determined, and the target hardware is hardware detected and dynamically adapted according to the current dynamic adaptation mechanism to obtain the adaptation result.

[0053] Specifically, the controller module uses the target operating system image medium to boot the bare metal server and deploy the hardware discovery agent module on it. After the deployment is completed, the adaptation process officially begins. After the hardware discovery agent module is started, the udev mechanism is used to automatically identify the hardware. According to the configuration, the module will execute kexec to hot load the operating system, or use cold start to load the hardware, and execute the diagnostic script to verify the functionality of the hardware, obtain the target hardware, and then determine the current dynamic adaptation mechanism; wherein the dynamic adaptation mechanism includes but is not limited to real-time monitoring of hardware resources, dynamic adjustment of adaptation strategies, and dynamic scheduling of task execution. To ensure the dynamic nature of the adaptation process, the system provides a manual intervention interface, allowing administrators to adjust the adaptation strategy based on real-time feedback. In addition, the system supports dynamic configuration of task parameters to adapt to the ever-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 executing the detection and adaptation instructions, the hardware discovery agent module 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 based on the execution results.

[0054] Step S14: 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, the dynamic adaptation of the bare metal target hardware is completed.

[0055] In this embodiment, if the status of the adaptation result is successful adaptation, the target hardware is subjected to functional verification test, consistency repetition test and durability aging test; if the test passes, it is determined whether the target hardware meets the preset adaptation conditions; if the target hardware does not meet the preset adaptation conditions, the process of screening the target operating system image medium is repeated until the target hardware meets the preset adaptation conditions.

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

[0057] In this embodiment, the bare metal hardware dynamic adaptation method 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 the current adaptation failure or response timeout are marked as incompatible.

[0058] Specifically, if the status of the adaptation result is adaptation failure or response timeout, the controller module uses Kexec technology to trigger the immediate switching 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. The module will perform a rollback operation to the most recent stable adaptation state and retry the adaptation. If the adaptation fails three times in a row, the system will record the failure and mark the hardware and operating system combination as incompatible. At this stage, the manual interaction module provides an interface for system administrators to perform manual troubleshooting and hardware status intervention. Administrators can choose to continue the adaptation process or reset the adaptation environment.

[0059] In this embodiment, the bare metal hardware dynamic adaptation system structure is as follows: Figure 2 As shown, it includes five main modules: controller module, hardware discovery agent module, fault recovery module, manual interaction module, and media storage module. The specific functions are described as follows:

[0060] Controller module: The controller module is the core of this application and is responsible for coordinating and managing the operation of the entire system. It ensures efficient use of hardware resources by defining and managing resource allocation strategies. The module is also responsible for monitoring the system status, including resource utilization, performance indicators, and system health status, and making decisions based on 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 new or changed hardware resources in the data center. The module collects information such as the model, specification, and status of the hardware through the interface communication with the hardware device, and registers it in the system. In addition, the module also supports plug-and-play of hardware devices, so that newly added hardware devices can be quickly identified 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 is designed to improve the reliability and stability of the system. By monitoring the hardware status in real time, the module can automatically trigger the failover and recovery mechanism when hardware failure or performance degradation is detected. It can quickly migrate services from a faulty hardware to healthy hardware, thereby minimizing service interruption time and ensuring data integrity and business continuity. The fault recovery module can automatically perform fallback operations and record incompatible hardware and operating system combinations when adaptation failures are detected.

[0063] Manual Interaction Module: The manual interaction module provides a user interface that enables system administrators to manually intervene in the management and adaptation process of hardware resources. The module supports users to customize hardware adaptation policies, set performance monitoring thresholds, and perform manual troubleshooting when the automated system cannot solve the problem. In addition, the module also provides logging and auditing functions for system operations to facilitate tracking and analysis of historical system operations. The manual 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 efficient data storage solutions to ensure the persistence and security of information. It also supports data backup and recovery functions to prevent data loss or damage and provide data consistency and integrity assurance. 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 follows Figure 3 As shown, first, the local hardware unit is physically assembled, the assembled hardware unit is initialized and configured, the operating system image media screening instructions, hardware configuration parameters and operating system adaptation list sent by the administrator are obtained to screen the target operating system image media, and then the preset bare metal server is booted using the target operating system image media, and the bare metal server is deployed, and then the hardware in the deployed bare metal server is automatically identified and loaded to obtain the target hardware, and the target hardware is detected and dynamically adapted according to the current dynamic adaptation mechanism to obtain the adaptation result. If the status of the adaptation result is successful adaptation, the target hardware is subjected to functional verification test, consistency repetition test and durability aging test. If the test passes, it is determined whether the target hardware meets the preset adaptation conditions. If so, the process of dynamic adaptation of bare metal hardware is completed. If not, the process of screening the target operating system image media is repeated. If the status of the adaptation result is adaptation failure or response timeout, it is immediately switched to the next pre-configured environment to ensure the automation and seamlessness of the process, and the rollback operation is automatically performed.

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

[0067] The advantages of this application are: improving resource utilization, ensuring that hardware resources are optimally allocated according to real-time needs through automated adaptation processes and dynamic resource scheduling, thereby improving resource utilization of bare metal servers in cloud computing environments; enhancing system response speed, using hardware discovery agent modules and instant operating system switching technology to significantly reduce system startup and recovery time, and speed up response to user needs; improving system stability, ensuring system stability and business continuity when encountering 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 of data centers, and reduces 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. The continuity and accuracy of adaptation tasks are ensured through stable instruction transmission and execution feedback mechanisms. The present invention not only improves the startup efficiency of bare metal servers, but also enhances the stability and reliability of the system, provides strong technical support for the operation of data centers, and meets the market demand for flexible and efficient hardware resource management.

[0069] In this embodiment, the target operating system image medium is filtered according to the operating system image medium filtering instructions, hardware and operating system parameters obtained in advance; 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 identified and loaded to obtain the target hardware, and the current dynamic adaptation mechanism is determined; the target hardware is hardware-detected and dynamically adapted according to the current dynamic adaptation mechanism to obtain the 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, the dynamic adaptation of the target hardware of the bare metal is completed. In response to the complexity and diversity of hardware in cloud computing scenarios, this application uses operating system image media screening instructions, hardware and operating system parameters to screen target operating system image media to guide bare metal servers, deploy bare metal servers, automatically identify and load the hardware in the deployed bare metal servers 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, and achieve efficient management, flexible adaptation and rapid response of bare metal server hardware resources through automated adaptation process, efficient media management, hardware automatic identification and dynamic loading, and dynamic adaptation, thereby improving resource adaptation efficiency, enhancing system stability, meeting market demand, and providing technical support for data center operations.

[0070] See also 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 is used to screen a target operating system image medium according to pre-acquired operating system image medium screening instructions, hardware and operating system parameters;

[0072] A deployment module 12 is 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;

[0073] The automatic identification and loading module 13 is used to perform hardware automatic identification and hardware loading on the hardware in the bare metal server after deployment 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;

[0074] The dynamic adaptation module 14 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 bare metal target hardware is completed.

[0075] In this embodiment, the target operating system image medium is filtered according to the operating system image medium filtering instructions, hardware and operating system parameters obtained in advance; 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 identified and loaded to obtain the target hardware, and the current dynamic adaptation mechanism is determined; the target hardware is hardware-detected and dynamically adapted according to the current dynamic adaptation mechanism to obtain the 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, the dynamic adaptation of the target hardware of the bare metal is completed. In response to the complexity and diversity of hardware in cloud computing scenarios, this application uses operating system image media screening instructions, hardware and operating system parameters to screen target operating system image media to guide bare metal servers, deploy bare metal servers, automatically identify and load the hardware in the deployed bare metal servers 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, and achieve efficient management, flexible adaptation and rapid response of bare metal server hardware resources through automated adaptation process, efficient media management, hardware automatic identification and dynamic loading, and dynamic adaptation, thereby improving resource adaptation efficiency, enhancing system stability, meeting market demand, and providing technical support for data center operations.

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

[0077] Physical assembly module, used to physically assemble local hardware units;

[0078] The initialization configuration module is used to initialize the configuration of the assembled hardware unit and start a preset adaptation sequence to obtain operating system image medium screening instructions, hardware and operating system parameters.

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

[0080] An acquisition module, used to acquire an operating system image media screening instruction, hardware configuration parameters, and an operating system adapter list sent by an administrator; the hardware and operating system parameters include the hardware configuration parameters and the operating system adapter list;

[0081] The instruction response module is used to respond to the operating system image medium screening instruction and screen the target operating system image medium from all the 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] The hardware automatic identification and hardware loading module is used to use the Udev mechanism to automatically identify the hardware in the bare metal server after deployment, and to load the hardware in the bare metal server after deployment; 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] Resource, strategy and task acquisition module, used to obtain current hardware resources, dynamic adaptation strategy of manual intervention feedback and current dynamic scheduling execution tasks;

[0086] The current dynamic adaptation mechanism determination module is used to determine the current dynamic adaptation mechanism based on the current hardware resources, the dynamic adaptation strategy and the current dynamic scheduling execution task.

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

[0088] A testing module, for performing a functional verification test, a consistency repetition test, and a durability aging test on the target hardware if the state of the adaptation result is that the adaptation is successful;

[0089] The repeated execution module is used to determine whether the target hardware meets the preset adaptation condition if the test passes, and if the target hardware does not meet the preset adaptation condition, repeatedly execute 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 further include:

[0091] A rollback module is used to automatically perform a rollback operation if the status of the adaptation result is an adaptation failure or a response timeout, and record the number of adaptation failures or response timeouts;

[0092] The module is used to mark the target hardware and operating system with current adaptation failure or response timeout as incompatible when the number is not less than a preset adaptation number.

[0093] Figure 5 A schematic diagram of the structure of an electronic device provided in 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. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the bare metal hardware dynamic adaptation method performed by the electronic device disclosed in any of the aforementioned embodiments.

[0094] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

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

[0096] Among them, the operating system 221 is used to manage and control the hardware devices and computer programs 222 on the electronic device 20 to realize the calculation and processing of the data 223 in the memory 22 by the processor 21, which can be Windows, Unix, Linux, etc. In addition to including a computer program that can be used to complete the bare metal hardware dynamic adaptation method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks. In addition to including data transmitted from an external device and received by the bare metal hardware dynamic adaptation device, the data 223 can also include data collected by its own input and output interface 25, etc.

[0097] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

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

[0099] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0100] The above is a detailed introduction to 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 illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on 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, the dynamic adaptation of the bare metal target hardware is completed.

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; The 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.

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

  • A method and equipment for detecting a bare metal server in a cloud computing environment

    CN109697142A

  • Deployment method of bare metal server

    CN112395084A

  • Bare metal server deployment method and device, and medium

    CN116954638A

  • Data processing system and method having an improved device initialisation process

    EP1351144A1