[go: up one dir, main page]

CN119105818B - Dynamic adaptation method, device, equipment and medium for bare metal hardware - Google Patents

Dynamic adaptation method, device, equipment and medium for bare metal hardware Download PDF

Info

Publication number
CN119105818B
CN119105818B CN202411570736.2A CN202411570736A CN119105818B CN 119105818 B CN119105818 B CN 119105818B CN 202411570736 A CN202411570736 A CN 202411570736A CN 119105818 B CN119105818 B CN 119105818B
Authority
CN
China
Prior art keywords
hardware
adaptation
operating system
bare metal
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202411570736.2A
Other languages
Chinese (zh)
Other versions
CN119105818A (en
Inventor
陶锐哲
肖雪
宋伟
田雨
高传集
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Inspur Cloud Information Technology Co Ltd
Original Assignee
Inspur Cloud Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Cloud Information Technology Co Ltd filed Critical Inspur Cloud Information Technology Co Ltd
Priority to CN202411570736.2A priority Critical patent/CN119105818B/en
Publication of CN119105818A publication Critical patent/CN119105818A/en
Application granted granted Critical
Publication of CN119105818B publication Critical patent/CN119105818B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4403Processor initialisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application discloses a dynamic adaptation method, a device, equipment and a medium of bare metal hardware, which relate to the technical field of cloud computing and comprise the steps of screening target operating system mirror media according to pre-acquired operating system mirror media screening instructions, hardware and operating system parameters, guiding a bare metal server to deploy the bare metal server by utilizing the target operating system mirror media, automatically identifying hardware in the deployed bare metal server and loading the hardware to obtain target hardware, determining a current dynamic adaptation mechanism, carrying out hardware detection and dynamic adaptation on the target hardware to obtain an adaptation result, testing the target hardware if the state of the adaptation result is successful, judging whether the target hardware meets preset adaptation conditions if the test is successful, and if the test is successful, completing dynamic adaptation of the target hardware of the bare metal, realizing efficient management and flexible adaptation of hardware resources of the bare metal server, improving resource adaptation efficiency and enhancing system stability.

Description

Dynamic adaptation method, device, equipment and medium for bare metal hardware
Technical Field
The invention relates to the technical field of cloud computing, in particular to a bare metal hardware dynamic adaptation method, a device, equipment and a medium.
Background
With the rapid development of cloud computing technology, bare metal servers are becoming popular choices for enterprise-level 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 typically rely on static configuration, which limits flexible allocation and optimization of hardware resources. In a multi-tenant environment, static configuration is difficult to meet the dynamic demands of different users on hardware resources, so that the resource utilization rate is low and the response speed is low. Furthermore, the heterogeneous nature of hardware also increases The complexity of adaptation and management, and different models and vendors of hardware devices, 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 places high demands on suitability and compatibility. In large-scale data center construction and operation practice, server purchase of multiple manufacturers, multiple models and different product lines is generally involved. 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, redundant disk array) controller, HBA (Host Bus Adapter) card, and so on, so management and adaptation of diversified hardware resources in a data center cannot be flexibly performed.
From the above, how to realize efficient management and flexible adaptation of hardware resources of a bare metal server, improve resource adaptation efficiency, and enhance system stability is a problem to be solved in the field.
Disclosure of Invention
In view of the above, the present invention aims to provide a method, an apparatus, a device and a medium for dynamic adaptation of bare metal hardware, which can realize efficient management and flexible adaptation of hardware resources of a bare metal server, improve resource adaptation efficiency, and enhance system stability. The specific scheme is as follows:
in a first aspect, the application discloses a bare metal hardware dynamic adaptation method, comprising:
screening a target operating system mirror medium according to a pre-acquired operating system mirror medium screening instruction, hardware and operating system parameters;
guiding a preset bare metal server by using the mirror image medium of the target operating system, and deploying the bare metal server to obtain the deployed bare metal server;
Performing hardware automatic identification and hardware loading on the deployed hardware in the bare metal server 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;
and if the state of the adapting result is that the adapting is successful, testing the target hardware, if the testing is passed, judging whether the target hardware meets the preset adapting condition, and if the target hardware meets the preset adapting condition, completing the dynamic adapting of the target hardware of the bare metal.
Optionally, before the target operating system image medium is screened according to the pre-acquired operating system image medium screening instruction, hardware and operating system parameters, the method further includes:
performing physical assembly on a local hardware unit;
and initializing and configuring the assembled hardware unit, and starting a preset adaptation sequence to acquire an operating system mirror image medium screening instruction, hardware and operating system parameters.
Optionally, the screening the target operating system image medium according to the pre-acquired operating system image medium screening instruction, hardware and operating system parameters includes:
Acquiring an operating system mirror image medium screening instruction, hardware configuration parameters and an operating system adaptation list which are sent by an administrator, wherein the hardware and operating system parameters comprise the hardware configuration parameters and the operating system adaptation list;
And responding to the operating system mirror image medium screening instruction, and screening target operating system mirror image media from all operating system mirror image media according to the hardware configuration parameters and the operating system adaptation list.
Optionally, the performing hardware automatic identification and hardware loading on the deployed hardware in the bare metal server includes:
and automatically identifying hardware in the deployed bare metal server by using a Udev mechanism, and loading the hardware in the deployed bare metal server, wherein the hardware loading comprises kexec hot loading or cold starting hardware loading.
Optionally, the determining the current dynamic adaptation mechanism includes:
acquiring a current hardware resource, a dynamic adaptation strategy of manual intervention feedback and a current dynamic scheduling execution task;
And determining a current dynamic adaptation mechanism based on the current hardware resource, the dynamic adaptation strategy and the current dynamic scheduling execution task.
Optionally, if the state of the adapting result is that the adapting is successful, testing the target hardware, and if the test passes, judging whether the target hardware meets a preset adapting condition, including:
If the state of the adapting result is that the adapting is successful, performing a functional verification test, a consistency repetition test and a durability aging test on the target hardware;
If the test is passed, judging whether the target hardware meets the preset adaptation condition, and if the target hardware does not meet the preset adaptation condition, repeating the process of screening the mirror image medium of the target operating system until the target hardware meets the preset adaptation condition.
Optionally, the bare metal hardware dynamic adaptation method further includes:
If the state of the adapting result is adapting fault or response overtime, automatically executing rollback operation and recording the times of adapting fault or response overtime;
and when the number of times is not less than the preset adaptation number, marking the target hardware with the current adaptation fault or response overtime and the operating system as incompatible.
In a second aspect, the present application discloses a bare metal hardware dynamic adapting device, comprising:
The screening module is used for screening the target operating system mirror medium according to the pre-acquired operating system mirror medium screening instruction, hardware and operating system parameters;
the deployment module is used for guiding a preset bare metal server by utilizing the mirror image medium of the target operating system and deploying the bare metal server to obtain the deployed bare metal server;
The automatic identification and loading module is used for carrying out hardware automatic identification and hardware loading on the deployed hardware in the bare metal server to obtain target hardware, determining a current dynamic adaptation mechanism, and carrying out hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result;
And the dynamic adaptation module is used for testing the target hardware if the state of the adaptation result is that the adaptation is successful, judging whether the target hardware meets the preset adaptation condition if the test is passed, and completing the dynamic adaptation of the target hardware of the bare metal if the target hardware meets the preset adaptation condition.
In a third aspect, the present application discloses an electronic device, comprising:
a memory for storing a computer program;
And the processor is used for executing the computer program to realize the bare metal hardware dynamic adaptation method.
In a fourth aspect, the present application discloses a computer storage medium for storing a computer program, wherein the computer program when executed by a processor implements the steps of the bare metal hardware dynamic adaptation method disclosed above.
The application provides a bare metal hardware dynamic adaptation method, which comprises the steps of screening target operating system image media according to a pre-acquired operating system image media screening instruction, hardware and operating system parameters, guiding a preset bare metal server by utilizing the target operating system image media, deploying the bare metal server to obtain the deployed bare metal server, automatically identifying hardware in the deployed bare metal server and loading the hardware to obtain target hardware, determining a current dynamic adaptation mechanism, carrying out hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result, testing the target hardware if the state of the adaptation result is that the adaptation is successful, judging whether the target hardware meets preset adaptation conditions or not if the test is passed, and completing the dynamic adaptation of the target hardware of the bare metal if the target hardware meets the preset adaptation conditions. Aiming at the complexity and diversity of hardware in a cloud computing scene, the method screens a target operating system mirror image medium through an operating system mirror image medium screening instruction, hardware and operating system parameters to guide a bare metal server, deploys the bare metal server, automatically identifies hardware in the deployed bare metal server and loads the hardware to obtain target hardware, performs hardware detection and dynamic adaptation on the target hardware according to a current dynamic adaptation mechanism, completes the dynamic adaptation on the target hardware of the bare metal if the adaptation is successful and meets preset adaptation conditions, and realizes efficient management, flexible adaptation and quick response on hardware resources of the bare metal server through an automatic adaptation flow, efficient medium management, automatic hardware identification and dynamic loading and dynamic adaptation, improves the stability of the system, meets market demands and provides technical support for operation of a data center.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a dynamic adaptation method of bare metal hardware according to the present disclosure;
FIG. 2 is a block diagram of a dynamic adaptation system for bare metal hardware according to the present disclosure;
FIG. 3 is a flow chart showing the dynamic adaptation of bare metal hardware according to the present disclosure;
FIG. 4 is a schematic diagram of a dynamic adapting device for bare metal hardware according to the present disclosure;
fig. 5 is a block diagram of an electronic device according to the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
With the rapid development of cloud computing technology, bare metal servers are becoming popular choices for enterprise-level 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 typically rely on static configuration, which limits flexible allocation and optimization of hardware resources. In a multi-tenant environment, static configuration is difficult to meet the dynamic demands of different users on hardware resources, so that the resource utilization rate is low and the response speed is low. Furthermore, the heterogeneous nature of hardware also increases the complexity of adaptation and management, and different models and vendors of hardware devices, e.g., X86, ARM, RSIC-V architectures, may require different adaptation strategies. This exclusive hardware feature also places high demands on suitability and compatibility. In large-scale data center construction and operation practice, server purchase of multiple manufacturers, multiple models and different product lines is generally involved. These servers may have significant differences in key hardware components such as CPU, memory, network interface cards, RAID controllers, HBA cards, etc., and therefore cannot flexibly manage and adapt to the diversified hardware resources within the data center. From the above, how to realize efficient management and flexible adaptation of hardware resources of a bare metal server, improve resource adaptation efficiency, and enhance system stability is a problem to be solved in the field.
Referring to fig. 1, the embodiment of the invention discloses a dynamic adaptation method for bare metal hardware, which specifically comprises the following steps:
and S11, screening a target operating system mirror medium according to a pre-acquired operating system mirror medium screening instruction, hardware and operating system parameters.
In the embodiment, a local hardware unit is physically assembled, the assembled hardware unit is initialized and configured, a preset adaptation sequence is started to obtain an operating system mirror image medium screening instruction, hardware and operating system parameters, then the operating system mirror image medium screening instruction, the hardware configuration parameters and an operating system adaptation list which are sent by an administrator are obtained, the hardware and operating system parameters comprise the hardware configuration parameters and the operating system adaptation list, the operating system mirror image medium screening instruction is responded, and a target operating system mirror image medium is screened from all operating system mirror image media according to the hardware configuration parameters and the operating system adaptation list.
The bare metal hardware dynamic adaptation method provided by the application can be applied to a bare metal hardware dynamic adaptation system, and the system comprises five main modules, namely a controller module, a hardware discovery agent module, a fault recovery module, a manual interaction module and a medium storage module. Dynamic adaptation of bare metal server hardware is achieved.
Specifically, the hardware unit needs to be integrated and initialized, after the physical assembly of the hardware unit is completed, the hardware unit is initialized and configured through the controller module, the adapting sequence is started, and the controller module receives predefined hardware configuration parameters and an operating system adapting list from a system administrator. Based on these parameters, the controller module triggers the start of the adaptation task, and the media storage module responds to the operating system image media screening instruction sent by the controller module to select and allocate an appropriate target operating system image media for use by the next adaptation flow.
And step S12, guiding a preset bare metal server by using the mirror image medium of the target operating system, and deploying the bare metal server to obtain the deployed bare metal server.
And S13, carrying out hardware automatic identification and hardware loading on the deployed hardware in the bare metal server to obtain target hardware, determining a current dynamic adaptation mechanism, and carrying out hardware detection and dynamic adaptation on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result.
In the embodiment, hardware in the deployed bare metal server is automatically identified by utilizing a Udev mechanism, hardware in the deployed bare metal server is loaded, the hardware loading comprises kexec hot loading or cold starting hardware loading so as to obtain target hardware, a dynamic adaptation strategy of current hardware resources and manual intervention feedback and a current dynamic scheduling execution task are obtained, the current dynamic adaptation mechanism is determined based on the current hardware resources, the dynamic adaptation strategy and the current dynamic scheduling execution task, and hardware detection and dynamic adaptation are carried out on the target hardware according to the current dynamic adaptation mechanism so as to obtain an adaptation result.
Specifically, the controller module is responsible for booting the bare metal server using the target operating system image medium and deploying a hardware discovery agent module thereon. After deployment is completed, the adaptation flow formally starts. After the hardware discovery agent module is started, the udev mechanism is utilized to automatically identify the hardware. According to the configuration, the module executes a kexec hot loading operating system or adopts a cold start mode to load hardware, executes a diagnosis script to verify the functionality of the hardware to obtain target hardware, and then determines a current dynamic adaptation mechanism, wherein the dynamic adaptation mechanism comprises but is not limited to real-time monitoring of hardware resources, dynamic adjustment of an adaptation strategy and dynamic scheduling of task execution. To ensure the dynamics of the adaptation process, the system provides a human intervention interface, allowing an administrator to adjust the adaptation strategy according to real-time feedback. In addition, the system supports dynamic configuration of task parameters to accommodate changing hardware environments, and then the controller module issues hardware detection and adaptation instructions to the hardware discovery agent module. The 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 an adaptation result, and the hardware discovery agent module feeds back the execution result to the controller module after the detection and adaptation instructions are executed. The controller module records the information and decides whether to flow to the next adapting task according to the execution result.
And S14, if the state of the adapting result is that the adapting is successful, testing the target hardware, if the testing is passed, judging whether the target hardware meets the preset adapting condition, and if the target hardware meets the preset adapting condition, completing the dynamic adapting of the target hardware of the bare metal.
In this embodiment, if the state of the adaptation result is that the adaptation is successful, performing a functional verification test, a consistency repetition test and a durability aging test on the target hardware, if the test passes, judging whether the target hardware meets a preset adaptation condition, and if the target hardware does not meet the preset adaptation condition, repeating the process of screening the mirror image medium of the target operating system until the target hardware meets the preset adaptation condition.
Specifically, if the state of the adapting result is that the adapting is successful, the controller module will execute a series of functional tests to ensure compatibility of the hardware and the operating system, record the testing result, in order to ensure reliability of the testing result, the system will perform cold start on the hardware, and repeat the adapting test procedure to verify consistency of the result, and considering the testing period and resource optimization, the durability test will selectively perform on part of the operating system, record the testing data through the medium storage module, so as to evaluate stability and performance degradation condition of the hardware in long-term operation.
In this embodiment, the bare metal hardware dynamic adaptation method further includes automatically executing a rollback operation and recording the number of times of adaptation failure or response timeout if the state of the adaptation result is the adaptation failure or response timeout, and marking the target hardware and the operating system of the current adaptation failure or response timeout as incompatible when the number of times is not smaller than the preset adaptation number.
Specifically, if the status of the adapting result is an adapting fault or response time-out, the controller module triggers the operation system to switch to the next pre-configuration environment in real time by utilizing Kexec technology, so as to ensure the automation and the seamless performance of the flow. The failure recovery module will automatically intervene and the module will perform a rollback operation to the most recent stable fitting state and reattempt the fitting and if three consecutive fitting failures, the system will record the failure and mark the hardware as incompatible with the operating system. At this stage, the human interaction module provides an interface for a system administrator to conduct manual troubleshooting and hardware state intervention, and the administrator can choose to continue the adaptation flow or reset the adaptation environment.
In this embodiment, the dynamic adaptation system structure of the bare metal hardware is shown in fig. 2, and includes five main modules, namely a controller module, a hardware discovery agent module, a fault recovery module, a manual interaction module, and a medium storage module, and specific functions are described as follows:
The controller module is the core of the application and is responsible for coordinating and managing the operation of the whole system. It ensures efficient utilization of hardware resources by defining and managing resource allocation policies. The module is also responsible for monitoring the system state, including the resource utilization rate, performance index and system health state, and making decisions according to preset rules or automatic learning modes to realize dynamic adjustment of the resources. The controller module has the functions of starting and managing the automatic adaptation tasks.
And the hardware discovery agent module is responsible for automatically detecting and identifying newly added or changed hardware resources in the data center. The module collects information such as the model, specification, state and the like of hardware through communication with an interface of hardware equipment, and registers the information into a system. In addition, the module also supports plug and play of the hardware device, so that the newly added hardware device 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 an adaptation flow.
Fault recovery module the fault recovery module aims to improve the reliability and stability of the system. The module can automatically trigger a fault transfer and recovery mechanism when detecting hardware faults or performance degradation by monitoring the hardware state in real time. It can quickly migrate traffic from a failed hardware to healthy hardware, thereby minimizing service disruption time and ensuring data integrity and traffic continuity. The fault recovery module is capable of automatically performing rollback operations and recording incompatible hardware and operating system combinations when an adapter fault is detected.
And the manual interaction module provides a user interface, so that a system administrator can manually intervene in the management and adaptation process of the hardware resources. The module supports user-defined hardware adaptation strategies, sets performance monitoring thresholds, and performs manual troubleshooting when an automation system cannot solve the problem. In addition, the module provides logging and auditing functions of the system operation to facilitate tracking and analyzing historical operation of the system. The manual interaction module allows a system administrator to manually intervene in the adaptation process and adjust the adaptation strategy.
And the medium storage module is responsible for managing configuration data and state information of all hardware resources in the data center. The module uses an efficient data storage solution to ensure persistence and security of information. It also supports backup and recovery functions of data to prevent loss or corruption of data and to provide data consistency and integrity assurance. The media storage module is capable of efficiently selecting and distributing operating system image media.
The specific flow of dynamic adaptation of bare metal hardware is shown in fig. 3, firstly, physical assembly is performed on a local hardware unit, initialization configuration is performed on the assembled hardware unit, an operating system mirror image medium screening instruction, a hardware configuration parameter and an operating system adaptation list which are sent by an administrator are obtained, so that a target operating system mirror image medium is screened, then a preset bare metal server is guided by using the target operating system mirror image medium, the bare metal server is deployed, then hardware in the deployed bare metal server is automatically identified and loaded with hardware, a target hardware is obtained, hardware detection and dynamic adaptation are performed on the target hardware according to a current dynamic adaptation mechanism, an adaptation result is obtained, if the state of the adaptation result is that the adaptation is successful, a functional verification test, a consistency repetition test and a durability aging test are performed on the target hardware, if the test is passed, whether the target hardware meets the preset adaptation condition is judged, if the mirror image condition is met, the flow of dynamic adaptation of the bare metal hardware is completed, if the mirror image medium is not met, the screening of the target operating system medium is repeatedly executed, if the adaptation result is the adaptation state is the adaptation failure or the automatic state is switched to the automatic adaptation, and the automatic adaptation is performed in a state-free of the state, and the automatic adaptation is performed after the automatic adaptation is performed, and the automatic state is overtime.
The application has the innovation points that the hardware resources are abstracted into manageable objects, unified management and scheduling are convenient, the allocation of the hardware resources is dynamically adjusted according to real-time monitoring data and a preset resource allocation strategy, a set of adaptation mechanism is provided, hardware equipment of different models and manufacturers can be compatible, the requirements of users on the hardware resources are predicted through a machine learning algorithm, the resource scheduling is performed in advance, and the use efficiency of the hardware resources is improved through optimizing the interaction of hardware driving and an operating system.
The method has the advantages of improving the resource utilization rate, ensuring the optimal allocation of hardware resources according to real-time requirements through an automatic adaptation flow and dynamic resource scheduling, improving the resource utilization rate of the bare metal server in the cloud computing environment, enhancing the response speed of the system, remarkably reducing the system starting and recovering time by utilizing a hardware discovery proxy module and an instant operation system switching technology, accelerating the response speed to user requirements, improving the system stability, ensuring the system stability and service continuity when the adaptation problem is met through a fault detection and automatic rollback mechanism and the possibility of manual intervention, simplifying the management operation, simplifying the hardware management and maintenance work of a data center by utilizing the dynamic configuration and task circulation mechanism, and reducing the operation complexity and cost.
Notably, the present application supports manual intervention and dynamic configuration, allowing a system administrator to adjust the adaptation strategy based on real-time feedback. Through stable instruction transmission and execution feedback mechanisms, the continuity and accuracy of the adaptation task are ensured. The application not only improves the starting efficiency of the bare metal server, but also enhances the stability and reliability of the system, provides powerful technical support for the operation of a data center, and meets the demands of the market on flexible and efficient hardware resource management.
In the 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, a preset bare metal server is guided by the target operating system image medium, the bare metal server is deployed to obtain the deployed bare metal server, hardware in the deployed bare metal server is automatically identified and loaded to obtain target hardware, a current dynamic adaptation mechanism is determined, hardware detection and dynamic adaptation are performed on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result, if the state of the adaptation result is that the adaptation is successful, the target hardware is tested, if the test is passed, whether the target hardware meets preset adaptation conditions is judged, and if the target hardware meets the preset adaptation conditions, the dynamic adaptation of the target hardware to the bare metal is completed. Aiming at the complexity and diversity of hardware in a cloud computing scene, the method screens a target operating system mirror image medium through an operating system mirror image medium screening instruction, hardware and operating system parameters to guide a bare metal server, deploys the bare metal server, automatically identifies hardware in the deployed bare metal server and loads the hardware to obtain target hardware, performs hardware detection and dynamic adaptation on the target hardware according to a current dynamic adaptation mechanism, completes the dynamic adaptation on the target hardware of the bare metal if the adaptation is successful and meets preset adaptation conditions, and realizes efficient management, flexible adaptation and quick response on hardware resources of the bare metal server through an automatic adaptation flow, efficient medium management, automatic hardware identification and dynamic loading and dynamic adaptation, improves the stability of the system, meets market demands and provides technical support for operation of a data center.
Referring to fig. 4, the embodiment of the invention discloses a bare metal hardware dynamic adapting device, which specifically may include:
The screening module 11 is used for screening the target operating system mirror medium according to the pre-acquired operating system mirror medium screening instruction, hardware and operating system parameters;
the deployment module 12 is configured to guide a preset bare metal server by using the target operating system mirror medium, and deploy the bare metal server to obtain the deployed bare metal server;
The automatic identification and loading module 13 is configured to perform hardware automatic identification and hardware loading on the deployed hardware in the bare metal server to obtain target hardware, determine a 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;
And the dynamic adapting module 14 is configured to test the target hardware if the adapting result is in a state of successful adapting, determine whether the target hardware meets a preset adapting condition if the test is passed, and complete dynamic adapting of the target hardware to the bare metal if the target hardware meets the preset adapting condition.
In the 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, a preset bare metal server is guided by the target operating system image medium, the bare metal server is deployed to obtain the deployed bare metal server, hardware in the deployed bare metal server is automatically identified and loaded to obtain target hardware, a current dynamic adaptation mechanism is determined, hardware detection and dynamic adaptation are performed on the target hardware according to the current dynamic adaptation mechanism to obtain an adaptation result, if the state of the adaptation result is that the adaptation is successful, the target hardware is tested, if the test is passed, whether the target hardware meets preset adaptation conditions is judged, and if the target hardware meets the preset adaptation conditions, the dynamic adaptation of the target hardware to the bare metal is completed. Aiming at the complexity and diversity of hardware in a cloud computing scene, the method screens a target operating system mirror image medium through an operating system mirror image medium screening instruction, hardware and operating system parameters to guide a bare metal server, deploys the bare metal server, automatically identifies hardware in the deployed bare metal server and loads the hardware to obtain target hardware, performs hardware detection and dynamic adaptation on the target hardware according to a current dynamic adaptation mechanism, completes the dynamic adaptation on the target hardware of the bare metal if the adaptation is successful and meets preset adaptation conditions, and realizes efficient management, flexible adaptation and quick response on hardware resources of the bare metal server through an automatic adaptation flow, efficient medium management, automatic hardware identification and dynamic loading and dynamic adaptation, improves the stability of the system, meets market demands and provides technical support for operation of a data center.
In some specific embodiments, the screening module 11 may specifically include:
the physical assembly module is used for physically assembling the local hardware unit;
The initialization configuration module is used for carrying out initialization configuration on the assembled hardware unit and starting a preset adaptation sequence so as to acquire an operating system mirror image medium screening instruction, hardware and operating system parameters.
In some specific embodiments, the screening module 11 may specifically include:
The system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring an operating system mirror image medium screening instruction, a hardware configuration parameter and an operating system adaptation list which are sent by an administrator, wherein the hardware and operating system parameters comprise the hardware configuration parameter and the operating system adaptation list;
The instruction response module is used for responding to the operating system mirror image medium screening instruction and screening target operating system mirror image media from all operating system mirror image media according to the hardware configuration parameters and the operating system adaptation list.
In some embodiments, the automatic identification and loading module 13 may specifically include:
The hardware automatic identification and hardware loading module is used for carrying out hardware automatic identification on the hardware in the deployed bare metal server by utilizing a Udev mechanism and carrying out hardware loading on the hardware in the deployed bare metal server, wherein the hardware loading comprises kexec hot loading or cold starting hardware loading.
In some embodiments, the automatic identification and loading module 13 may specifically include:
the resource, strategy and task acquisition module is used for acquiring current hardware resources, a dynamic adaptation strategy fed back by manual intervention and a current dynamic scheduling execution task;
And the current dynamic adaptation mechanism determining module is used for determining a current dynamic adaptation mechanism based on the current hardware resource, the dynamic adaptation strategy and the current dynamic scheduling execution task.
In some specific embodiments, the dynamic adaptation module 14 may specifically include:
The test module is used for carrying out functional verification test, consistency repetition test and durability aging test on the target hardware if the state of the adapting result is that the adapting is successful;
and the repeated execution module is used for judging whether the target hardware meets the preset adaptation condition or not if the test passes, and repeatedly executing the process of screening the mirror image medium of the target operating system until the target hardware meets the preset adaptation condition if the target hardware does not meet the preset adaptation condition.
In some specific embodiments, the bare metal hardware dynamic adapting device may specifically further include:
The rollback module is used for automatically executing rollback operation and recording the times of the adaptation fault or response timeout if the state of the adaptation result is the adaptation fault or response timeout;
And the module is used for marking the target hardware and the operating system with the current adaptation fault or response overtime as incompatible when the number of times is not less than the preset adaptation number.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device 20 may include, in particular, 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. Wherein the memory 22 is used for storing 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 foregoing embodiments.
In this embodiment, the power supply 23 is configured to provide working voltages for each hardware device on the electronic device 20, the communication interface 24 is capable of creating a data transmission channel with an external device for the electronic device 20, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein, and the input/output interface 25 is configured to obtain external input data or output data to the external device, and the specific interface type of the input/output interface may be selected according to the specific application needs and is not specifically limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon include an operating system 221, a computer program 222, and data 223, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and the computer program 222, so as to implement the operation and processing of the data 223 in the memory 22 by the processor 21, which may be Windows, unix, linux or the like. The computer program 222 may further comprise a computer program capable of performing other specific tasks in addition to the computer program capable of performing the bare metal hardware dynamic adaptation method performed by the electronic device 20 as disclosed in any of the previous embodiments. The data 223 may include, in addition to the data received by the bare metal dynamic adapting device and transmitted by the external device, the data collected by the self input/output interface 25, and so on.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Further, the embodiment of the application also discloses a computer readable storage medium, wherein the storage medium stores a computer program, and when the computer program is loaded and executed by a processor, the steps of the bare metal hardware dynamic adaptation method disclosed in any embodiment are realized.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
The foregoing describes the principles and embodiments of the present invention in detail using specific examples to facilitate understanding of the method and core ideas of the present invention, and meanwhile, the present invention should not be construed as being limited to the details of the present invention, since modifications in the detailed description and the application range will be apparent to those skilled in the art based on the ideas of the present invention.

Claims (10)

1. A bare metal hardware dynamic adaptation method, comprising:
screening a target operating system mirror medium according to a pre-acquired operating system mirror medium screening instruction, hardware and operating system parameters;
guiding a preset bare metal server by using the mirror image medium of the target operating system, and deploying the bare metal server to obtain the deployed bare metal server;
Performing hardware automatic identification and hardware loading on the deployed hardware in the bare metal server 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 state of the adapting result is that the adapting is successful, testing the target hardware, if the testing is passed, judging whether the target hardware meets the preset adapting condition, and if the target hardware meets the preset adapting condition, completing the dynamic adapting of the target hardware of the bare metal;
the testing process of the target hardware comprises the steps of performing functional verification test on the target hardware, recording a test result, performing cold start on the target hardware, repeating the adaptation test process to verify the consistency of the result and completing consistency repeated test;
If the status of the adapting result is adapting fault or response time-out, immediately switching to the next pre-configuration environment by utilizing Kexec technology.
2. The method for dynamically adapting bare metal hardware according to claim 1, wherein before said screening the target operating system image medium according to the pre-acquired operating system image medium screening instruction, hardware and operating system parameters, further comprising:
performing physical assembly on a local hardware unit;
and initializing and configuring the assembled hardware unit, and starting a preset adaptation sequence to acquire an operating system mirror image medium screening instruction, hardware and operating system parameters.
3. The method for dynamically adapting bare metal hardware according to claim 1, wherein said screening the target operating system image medium according to the pre-acquired operating system image medium screening instruction, hardware and operating system parameters comprises:
Acquiring an operating system mirror image medium screening instruction, hardware configuration parameters and an operating system adaptation list which are sent by an administrator, wherein the hardware and operating system parameters comprise the hardware configuration parameters and the operating system adaptation list;
And responding to the operating system mirror image medium screening instruction, and screening target operating system mirror image media from all operating system mirror image media according to the hardware configuration parameters and the operating system adaptation list.
4. The method for dynamically adapting bare metal hardware according to claim 1, wherein the automatically identifying and loading hardware in the deployed bare metal server comprises:
and automatically identifying hardware in the deployed bare metal server by using a Udev mechanism, and loading the hardware in the deployed bare metal server, wherein the hardware loading comprises kexec hot loading or cold starting hardware loading.
5. The bare metal hardware dynamic adaptation method according to claim 1, wherein the determining the current dynamic adaptation mechanism comprises:
acquiring a current hardware resource, a dynamic adaptation strategy of manual intervention feedback and a current dynamic scheduling execution task;
And determining a current dynamic adaptation mechanism based on the current hardware resource, the dynamic adaptation strategy and the current dynamic scheduling execution task.
6. The method for dynamically adapting bare metal hardware according to claim 1, wherein if the adapting result is that the adapting is successful, testing the target hardware, and if the testing is passed, determining whether the target hardware meets a preset adapting condition comprises:
If the state of the adapting result is that the adapting is successful, performing a functional verification test, a consistency repetition test and a durability aging test on the target hardware;
If the test is passed, judging whether the target hardware meets the preset adaptation condition, and if the target hardware does not meet the preset adaptation condition, repeating the process of screening the mirror image medium of the target operating system 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, further comprising:
If the state of the adapting result is adapting fault or response overtime, automatically executing rollback operation and recording the times of adapting fault or response overtime;
and when the number of times is not less than the preset adaptation number, marking the target hardware with the current adaptation fault or response overtime and the operating system as incompatible.
8. A bare metal hardware dynamic adaptation device, comprising:
The screening module is used for screening the target operating system mirror medium according to the pre-acquired operating system mirror medium screening instruction, hardware and operating system parameters;
the deployment module is used for guiding a preset bare metal server by utilizing the mirror image medium of the target operating system and deploying the bare metal server to obtain the deployed bare metal server;
The automatic identification and loading module is used for carrying out hardware automatic identification and hardware loading on the deployed hardware in the bare metal server to obtain target hardware, determining a current dynamic adaptation mechanism, and carrying out 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 for testing the target hardware if the state of the adaptation result is that the adaptation is successful, judging whether the target hardware meets the preset adaptation condition if the test is passed, and completing the dynamic adaptation of the target hardware of the bare metal if the target hardware meets the preset adaptation condition;
the testing process of the target hardware comprises the steps of performing functional verification test on the target hardware, recording a test result, performing cold start on the target hardware, repeating the adaptation test process to verify the consistency of the result and completing consistency repeated test;
If the status of the adapting result is adapting fault or response time-out, immediately switching to the next pre-configuration environment by utilizing Kexec technology.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the bare metal hardware dynamic adaptation method as claimed in any one of claims 1 to 7.
10. A computer readable storage medium for storing a computer program, wherein the computer program when executed by a processor implements the bare metal hardware dynamic adaptation method according to any one of claims 1 to 7.
CN202411570736.2A 2024-11-06 2024-11-06 Dynamic adaptation method, device, equipment and medium for bare metal hardware Active CN119105818B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411570736.2A CN119105818B (en) 2024-11-06 2024-11-06 Dynamic adaptation method, device, equipment and medium for bare metal hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411570736.2A CN119105818B (en) 2024-11-06 2024-11-06 Dynamic adaptation method, device, equipment and medium for bare metal hardware

Publications (2)

Publication Number Publication Date
CN119105818A CN119105818A (en) 2024-12-10
CN119105818B true CN119105818B (en) 2025-06-24

Family

ID=93717650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411570736.2A Active CN119105818B (en) 2024-11-06 2024-11-06 Dynamic adaptation method, device, equipment and medium for bare metal hardware

Country Status (1)

Country Link
CN (1) CN119105818B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125206A (en) * 2013-04-27 2014-10-29 腾讯科技(深圳)有限公司 Client-side hardware environment adaption method, device, server and system
CN116954638A (en) * 2023-08-11 2023-10-27 广东浪潮智慧计算技术有限公司 Bare metal server deployment method, device and medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1351144A1 (en) * 2002-04-04 2003-10-08 Hewlett-Packard Company Data processing system and method having an improved device initialisation process
US20140325041A1 (en) * 2013-04-27 2014-10-30 Tencent Technology (Shenzhen) Co., Ltd. Method, apparatus, server and system for adapting a client to a hardware environment
CN109697142B (en) * 2017-10-20 2022-05-13 中移(苏州)软件技术有限公司 Method and device for detecting bare metal server in cloud computing environment
CN112395084A (en) * 2020-10-28 2021-02-23 安擎(天津)计算机有限公司 Bare metal server deployment method
CN114244703B (en) * 2022-02-24 2022-05-10 苏州浪潮智能科技有限公司 A bare metal server inspection and deployment method, device, equipment, and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125206A (en) * 2013-04-27 2014-10-29 腾讯科技(深圳)有限公司 Client-side hardware environment adaption method, device, server and system
CN116954638A (en) * 2023-08-11 2023-10-27 广东浪潮智慧计算技术有限公司 Bare metal server deployment method, device and medium

Also Published As

Publication number Publication date
CN119105818A (en) 2024-12-10

Similar Documents

Publication Publication Date Title
US7065740B2 (en) System and method to automate the management of computer services and programmable devices
US7600005B2 (en) Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems
US9197432B2 (en) Adaptive test system for network function and performance evaluation
US7703091B1 (en) Methods and apparatus for installing agents in a managed network
US9294296B2 (en) Automated test execution in a shared virtualized resource pool
US8638674B2 (en) System and method for cloud computing
CN102622298B (en) Software testing system and method
US10175973B2 (en) Microcode upgrade in a storage system
CN111245898A (en) Network equipment online method, device, server and storage medium
CN109254783A (en) A kind of server system installation method, device, equipment and readable storage medium storing program for executing
CN114546747B (en) BMC cold restarting pressure test system and method
CN111813495B (en) Node testing method and device, storage medium and electronic device
CN104360952B (en) A kind of software testing system and method
WO2023276039A1 (en) Server management device, server management method, and program
CN119105818B (en) Dynamic adaptation method, device, equipment and medium for bare metal hardware
CN119011406B (en) A bandwidth adjustment method, device, program product, medium and server
CN112306845B (en) Concurrency test method, concurrency test device, concurrency test equipment and concurrency test medium
CN119402446A (en) A network card automatic binding method, device, equipment, medium and program product
CN118964157A (en) Server operation performance testing method and device
CN114817042B (en) Server testing method and device, testing platform and readable storage medium
WO2023276038A1 (en) Server management device, server management method, and program
CN120560919B (en) Test system and method of storage system, electronic equipment and storage medium
CN118394583B (en) Method, apparatus, device, medium and program product for testing disk state transition
CN116149689B (en) Software installation method and device, storage medium and computer equipment
CN121255540B (en) Repair method for board management controller and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant