Control method and device of heat dissipation component

By dynamically updating the server's initial configuration file and generating target control programs, the problem of low control efficiency of server cooling components is solved, and flexible cooling strategy adjustment and efficient control effects are achieved.

CN120295437APending Publication Date: 2025-07-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510405584.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-07-11

Smart Images

  • Figure CN120295437A_ABST
    Figure CN120295437A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device for a heat dissipation component, and relates to the technical field of computers, an initial configuration file used for indicating an operation control mode of a target component to the heat dissipation component in the heat dissipation process is configured in a server, and under the condition that a target updating request is obtained, the target component is updated. And updating the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file, thereby generating a target control program for controlling the running state of the target heat dissipation component according to the target configuration file and the heat dissipation component condition of the server. And controlling the running state of the target heat dissipation component by running the target control program. Therefore, the technical problem of low control efficiency of the heat dissipation component of the server in the prior art can be solved, and the technical effect of improving the control efficiency of the heat dissipation component of the server is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular, to a control method and device for heat dissipation components. Background Art

[0002] In the fields of servers and data centers, in order to achieve the data processing performance of servers, server components such as hard disks, network cards, memory, GPUs, power supplies, etc. are usually deployed in servers. After the server components are powered on, a large amount of heat energy will be generated. If the heat is not dissipated in time, it will cause the server components to overheat, resulting in server downtime or component damage. Therefore, an efficient heat dissipation strategy is crucial for ensuring the stable operation of hardware.

[0003] In order to achieve heat dissipation control of servers, in related technologies, program compilers compile control programs for servers and deploy the programs in the servers, thereby solidifying the heat dissipation strategy into the control programs. At this time, if there are changes in components or server components in the server, such as adding a hard disk configuration or a network card, the version of the control program is no longer applicable, and the program compiler needs to reconfigure the control program for the heat dissipation device of the server. This process is complex and time-consuming, resulting in low control efficiency of the server heat dissipation components. Summary of the Invention

[0004] This application provides a control method for heat dissipation components to at least solve the problem of low control efficiency of server heat dissipation components in related technologies.

[0005] This application provides a control method for heat dissipation components, including:

[0006] Obtain a target update request, where the target update request is used to request an update to the initial configuration file corresponding to the target component, and the initial configuration file is used to indicate the operation control method of the heat dissipation component during the heat dissipation process of the target component;

[0007] Update the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file;

[0008] Generate a target control program according to the target configuration file and server information, where the server information is used to indicate the heat dissipation component configuration of the server, the target control program is used to control the operation state of the target heat dissipation component, and the target heat dissipation component is used to dissipate heat from the target component;

[0009] Run the target control program to control the operation state of the target heat dissipation component.

[0010] This application also provides a control device for heat dissipation components, including:

[0011] An acquisition module, configured to acquire a target update request, where the target update request is used to request an update to an initial configuration file corresponding to a target component, and the initial configuration file is used to indicate the operation control mode of a heat dissipation component during the heat dissipation process of the target component;

[0012] An update module, configured to update the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file;

[0013] A generation module, configured to generate a target control program according to the target configuration file and server information, where the server information is used to indicate the heat dissipation component configuration of the server, and the target control program is used to control the operation state of a target heat dissipation component, and the target heat dissipation component is used to dissipate heat from the target component;

[0014] An operation module, configured to operate the target control program to control the operation state of the target heat dissipation component.

[0015] This application also provides an electronic device, including: a memory, configured to store a computer program; a processor, configured to implement the steps of any of the above heat dissipation component control methods when executing the computer program.

[0016] This application also provides a computer-readable storage medium, in which a computer program is stored, where the computer program implements the steps of any of the above heat dissipation component control methods when executed by a processor.

[0017] This application also provides a computer program product, including a computer program, where the computer program implements the steps of any of the above heat dissipation component control methods when executed by a processor.

[0018] Through this application, an initial configuration file for indicating the operation control mode of a heat dissipation component during the heat dissipation process of a target component is configured in a server. When a target update request for requesting an update to the initial configuration file corresponding to the target component is acquired, the initial configuration file is updated according to the update content indicated by the target update request to obtain a target configuration file. Furthermore, a target control program for controlling the operation state of the target heat dissipation component can be generated according to the target configuration file and the heat dissipation component situation of the server, and the operation state of the target heat dissipation component is controlled by running the target control program. In the above manner, when it is necessary to change the control mode of the server heat dissipation component, only the initial configuration file configured in the server needs to be updated, and thus the control program for controlling the operation state of the target heat dissipation component can be flexibly changed, thereby realizing flexible change of the control strategy for the server heat dissipation component. Therefore, the technical problem of low control efficiency of the server heat dissipation component in the related art can be solved, and the technical effect of improving the control efficiency of the server heat dissipation component can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0020] Figure 1 is a hardware structure block diagram of a control method for a heat dissipation component according to an embodiment of the present application;

[0021] Figure 2 is a flowchart of a control method for a heat dissipation component according to an embodiment of the present application;

[0022] Figure 3 is a hardware interaction diagram of a method for changing the BMC heat dissipation strategy based on redfish according to an embodiment of the present application;

[0023] Figure 4 is the process of a method for changing the BMC heat dissipation strategy based on redfish according to an embodiment of the present application Figure 1 ;

[0024] Figure 5 is the process of a method for changing the BMC heat dissipation strategy based on redfish according to an embodiment of the present application Figure 2 ;

[0025] Figure 6 is a structure block diagram of a control device for a heat dissipation component according to an embodiment of the present application. Specific embodiments

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

[0027] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0028] To enable those skilled in the art of the present technology to better understand the solution of this application, the following provides a further detailed description of this application in conjunction with the accompanying drawings and specific embodiments.

[0029] In combination with the specific application environment architecture or specific hardware architecture on which the execution of the control method of the heat dissipation component depends, the specific application environment architecture or specific hardware architecture is described herein.

[0030] The method embodiments provided in the embodiments of this application can be executed in a server device or a similar computing device. Taking the operation on a server device as an example, Figure 1 is a hardware structural block diagram of a control method for a heat dissipation component according to an embodiment of this application. As Figure 1 shown, the server device may include one or more ( Figure 1 only one is shown in Figure 1 shown) processors 102 (the processors 102 may include, but are not limited to, processing devices such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the above-mentioned server device may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown in Figure 1 is only schematic and does not limit the structure of the above-mentioned server device. For example, the server device may further include more or fewer components than

[0031] shown in

[0032] Figure 1 shown, or have a different configuration from

[0031] shown in

[0032] The memory 104 can be used to store computer programs. For example, software programs and modules of application software, such as the computer program corresponding to the control method of a heat dissipation component in the embodiments of this application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above-mentioned method. The memory 104 may include a high-speed random access memory and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely disposed relative to the processor 102, and these remote memories can be connected to the server device through a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by a communication provider of a server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] Embodiments of the present application provide a control method for a heat dissipation component. The method will be described in detail in combination with the execution process of the control method for the heat dissipation component.

[0034] The following explains the professional terms that appear in the present application:

[0035] BMC: (Baseboard Management Controller) Baseboard Management Controller.

[0036] OpenBMC: (Open Baseboard Management Controller) Open Source Baseboard Management Controller.

[0037] Redfish protocol: (Redfish RESTful API Specification) is a modern data center hardware management protocol based on RESTful API, led by DMTF (Distributed Management Task Force), providing a more efficient, flexible and secure server, storage and network device management solution.

[0038] IPMI protocol: (Intelligent Platform Management Interface) is a hardware-level out-of-band management protocol, mainly used to monitor and manage server hardware (such as CPU, memory, power supply, fan, etc.), independent of the operating system and network. Even if the server crashes or the operating system is not started, remote control can still be performed through IPMI.

[0039] GPU: (Graphics Processing Unit) Graphics Processing Unit.

[0040] In this embodiment, a control method for a heat dissipation component is provided. Figure 2 It is a flowchart of a control method for a heat dissipation component according to an embodiment of the present application. As Figure 2 shown, the method includes the following steps:

[0041] Step S202: Obtain a target update request, where the target update request is used to request an update to the initial configuration file corresponding to the target component, and the initial configuration file is used to indicate the operation control mode of the heat dissipation component during the heat dissipation process of the target component;

[0042] Step S204: Update the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file;

[0043] Step S206: Generate a target control program according to the target configuration file and the server information, where the server information is used to indicate the heat dissipation component configuration of the server, the target control program is used to control the operation state of the target heat dissipation component, and the target heat dissipation component is used to dissipate heat from the target component;

[0044] Step S208: Run the target control program to control the operation state of the target heat dissipation component.

[0045] Through the above steps, an initial configuration file for indicating the operation control mode of the heat dissipation component during the heat dissipation process of the target component is configured in the server. When a target update request for requesting an update to the initial configuration file corresponding to the target component is obtained, the initial configuration file is updated according to the update content indicated by the target update request to obtain a target configuration file. Furthermore, a target control program for controlling the operation state of the target heat dissipation component can be generated according to the target configuration file and the heat dissipation component situation of the server, and the operation state of the target heat dissipation component is controlled by running this target control program. In this way, when it is necessary to change the control mode of the server heat dissipation component, only the initial configuration file configured in the server needs to be updated, and thus the control program for controlling the operation state of the target heat dissipation component can be flexibly changed, thereby realizing flexible changes to the control strategy of the server heat dissipation component. Therefore, the technical problem of low control efficiency of the server heat dissipation component in the related art can be solved, and the technical effect of improving the control efficiency of the server heat dissipation component can be achieved.

[0046] In the embodiment provided in step S202, the target update request may be sent to the server by an external device of the server, and its purpose is to change the heat dissipation strategy of the heat dissipation device in the server for the target component. For example, the target update request may but is not limited to be sent to the server through a Web (webpage) / OS terminal (operating system) bound to the server, and the Web (webpage) / OS terminal (operating system) and the server may but is not limited to communicate based on the Redfish protocol.

[0047] Optionally, in the embodiments of the present application, the initial configuration file is a file used to instruct the server to generate control instructions for controlling the operation of the heat dissipation component. The server can generate an initial control program for controlling the operation state of the server heat dissipation component according to the initial configuration file and the initial heat dissipation component configuration of the server. The initial configuration file can be, but is not limited to, stored in a storage location bound to the corresponding server component in the server. The storage locations of the initial configuration files corresponding to different server components in the server are different. For example, the configuration file can be, but is not limited to, stored in files such as Fan.json, PSU.json, Disk.json, etc. in the BMC.

[0048] Optionally, in the embodiments of the present application, the initial configuration file stores policy information for indicating the heat dissipation policy of server components. The server can determine the heat dissipation policy for the corresponding server component or the control policy for the heat dissipation component corresponding to the server component based on the policy information stored in the configuration file. For example, the initial configuration file may include, but is not limited to, configuration parameters in multiple dimensions such as control type parameters, status monitoring parameters, heat dissipation policy parameters, and device adaptation parameters. The control type parameters are used to indicate the control policy for the heat dissipation component. For example, PCoefficient and ICoefficient: These two parameters belong to the settings of a PID (Proportional-Integral-Derivative) controller and are used to adjust the sensitivity and responsiveness of the fan speed control. PCoefficient affects the immediate response of the control, and ICoefficient affects the compensation for the accumulated error of the controller, jointly determining the adjustment curve of the fan speed. SlewNeg: This is a limit parameter used to prevent the sudden decrease in the fan speed, thereby avoiding damage to the fan and the system due to sudden changes in speed. The status monitoring parameters are used to indicate the temperature requirements of the server component for heat dissipation control and may include, but are not limited to, parameters such as SetPoint, Inputs, and Zones. SetPoint: This is the temperature reference parameter that defines the temperature point at which the fan starts to accelerate, reflecting the sensitivity of the system to temperature status monitoring. Inputs: This is the sensor input parameter that lists the names of the sensors used to monitor the temperature and is a key parameter for implementing status monitoring. Zones: This is the zone division parameter that defines the physical regions covered by the heat dissipation policy, and each region may be associated with different sensors and different fan control policies. The heat dissipation policy parameters are used to indicate the control algorithm for controlling the server component. For example, the Class parameter and the CorrectionPercentage parameter. Class: This is the policy type parameter that defines the basic type (setpoint or margin) followed by the heat dissipation control and affects the selection of the entire control algorithm. CorrectionPercentage: This is the speed regulation weight parameter used to balance the speed control between different fans to ensure the balance of the overall heat dissipation efficiency. Usually, each fan will have a different weight setting to adapt to the heat dissipation requirements of different regions. The device adaptation parameters are used to indicate the server component to which the configuration file belongs, which can be reflected by the temperature collector deployed on the server component.

[0049] In the embodiment provided in step S204, the target update request may carry, but is not limited to, target configuration parameters related to the heat dissipation control policy to be updated. By parsing the target update request, the target configuration parameters requested to be updated by the target update request can be obtained, and then the initial configuration file can be updated using the target configuration parameters to obtain the target configuration file.

[0050] In the embodiment provided in step S206, the server information is used to indicate the configuration of the heat dissipation components in the server. The server information may include, but is not limited to, the number, type, and distribution of the heat dissipation components. This solution does not limit this.

[0051] Optionally, in the embodiment of the present application, the target heat dissipation component is a server component with heat dissipation function. The target heat dissipation component may be, but is not limited to, a fan, a heat sink, a liquid cooling system, etc. This solution does not limit this.

[0052] Optionally, in the embodiment of the present application, a corresponding configuration file is configured for each component to be cooled in the server. The configuration file characterizes the operation control mode of the heat dissipation component with heat dissipation function for the current component. That is, in the server, there is a target heat dissipation component with an associated relationship for each server component. The target heat dissipation component can dissipate heat from the server component. A configuration file is configured for each server component. The configuration file can characterize the information related to the control strategy of the heat dissipation component corresponding to the server component. Furthermore, when it is necessary to adjust the heat dissipation strategy of the server component, the heat dissipation strategy can be adjusted by adjusting the configuration file of the server component. Further, in order to optimize the flexible change of the overall control logic of the server, different target control programs correspond to different server components in the server. The target control program can perform operation control on the heat dissipation device bound to the corresponding server component. A program call script is also configured for all the target control programs of all the server components in the server. Among them, the call logic for calling different target control programs according to the server operation state is recorded in the program call script. The server is used to call and run the corresponding target control program according to the operation control device in the server according to the business operation state of the server. Furthermore, through the above method, the control program of the heat dissipation device in the server is granulated. The control program of the server is changed to the target control program of each server component and the program call script corresponding to all the target control programs. When it is necessary to update the heat dissipation strategy of a certain server component to be cooled, only by updating the corresponding configuration file, the corresponding target control program can be generated according to the updated configuration file. On the one hand, the flexible change of the heat dissipation strategy is realized. On the other hand, the maintenance efficiency of the control program of the heat dissipation components in the server is improved by granulating the control program.

[0053] Optionally, in the embodiments of the present application, the manner in which the server generates a target control program for controlling the operating state of the server's heat dissipation component based on the target configuration file and server information may be: parsing the target configuration file to extract the heat dissipation configuration parameters carried in the target configuration file, where the heat dissipation configuration parameters are control parameters for controlling the operating mode of the heat dissipation component; using a target code template to insert the heat dissipation configuration parameters into a pre-prepared control program framework to obtain a target control program, where the target code template is used to instruct the server to generate a control program that matches the current server heat dissipation component configuration.

[0054] In the embodiment provided in step S208, the current initial control program of the server may be replaced with the target control program. The initial control program is a control program for controlling the operating state of the server's heat dissipation component generated by the server based on the initial configuration file and initial server information. Thus, when it is necessary to change the control manner of the server's heat dissipation component, only the initial configuration file configured in the server needs to be updated, and then the initial control program corresponding to the initial configuration file can be replaced with the target control program corresponding to the target configuration file, realizing flexible change of the control program for controlling the operating state of the target heat dissipation component, thereby improving the control efficiency of the server's heat dissipation component.

[0055] As an optional implementation manner, updating the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file includes:

[0056] Extracting the target configuration parameters to be updated carried in the target update request, where the target configuration parameters are used to characterize the control manner adopted for controlling the operating state of the heat dissipation component;

[0057] Updating the initial configuration file with the target configuration parameters to obtain a target configuration file.

[0058] Optionally, in the embodiments of the present application, the target configuration parameters are parameters indicating the control strategy for controlling the heat dissipation component in the server. The target configuration parameters may include, but are not limited to, PID control parameters (proportional P, integral I, derivative D coefficients), speed regulation point setting, fan speed threshold value, etc. After the parameter extraction is completed, the target configuration parameters are replaced at the corresponding parameter positions in the initial configuration file to generate a target configuration file.

[0059] Through the above steps, by extracting the new configuration parameters carried in the target update request to update the initial configuration file, the control parameters for controlling the operating mode of the heat dissipation component in the initial configuration file can be quickly modified to obtain a target configuration file, improving the update efficiency of the configuration file.

[0060] As an alternative implementation, the initial configuration file is updated using the target configuration parameters to obtain the target configuration file, including:

[0061] Find the target storage location associated with the target component in the server;

[0062] Back up the initial configuration file stored at the target storage location to obtain the first configuration file;

[0063] Update the reference configuration parameters included in the first configuration file to the target configuration parameters to obtain the second configuration file, where the reference configuration parameters are the configuration parameters among the multiple configuration parameters included in the first configuration file whose parameter types are the same as the parameter type of the target configuration parameters;

[0064] Use the second configuration file to replace the initial configuration file stored in the target storage location to obtain the target configuration file.

[0065] Optionally, in the embodiments of the present application, the configuration parameters of different heat dissipation components are stored in different configuration files. For example, the configuration parameters of the fan are stored in the Fan.json file, the configuration parameters of the power supply unit are stored in the PSU.json file, and the configuration parameters of the hard disk are stored in the Disk.json. The storage locations of different configuration files in the system are different. Therefore, it is necessary to first find the target storage location associated with the target component to ensure the accuracy of subsequent operations.

[0066] Optionally, in the embodiments of the present application, the initial configuration file at the target storage location is backed up to obtain the first configuration file. The backup operation is usually performed in system-level file operations to ensure the complete replication of the current content of the configuration file while maintaining the original structure and format of the data unchanged. The backup file will be stored in other secure locations of the server.

[0067] Optionally, in the embodiments of the present application, after the backup is completed, all reference configuration parameters that match the target configuration parameter type are identified from the first configuration file. For example, if the target configuration parameter is the proportional coefficient P in PID control, the module will search for all parameters marked as PID_P in the file and update them to the new target configuration parameter values. After the parameter update is completed, the modified file content is saved to obtain the second configuration file, and the second configuration file is directly used to replace the initial configuration file in the target storage location to implement the update of the heat dissipation strategy.

[0068] Through the above method, the backup and replacement mechanism ensures data security during the heat dissipation strategy update process. Even if the update fails, it can be immediately restored to the previous stable state, avoiding hardware damage or system downtime caused by heat dissipation control errors.

[0069] As an alternative implementation, before replacing the initial configuration file stored in the target storage location with the second configuration file, the method further includes:

[0070] Matching the first file format of the initial configuration file with the second file format of the second configuration file, and matching the first file attribute of the initial configuration file with the second file attribute of the second configuration file, where the file attribute is used to indicate the parameter type of the configuration parameters carried in the corresponding configuration file;

[0071] When the first file format and the second file format match, and the first file attribute and the second file attribute match, use the second configuration file to replace the initial configuration file stored in the target storage location.

[0072] Optionally, in the embodiments of the present application, before replacing the configuration file, the file formats of the initial configuration file and the second configuration file are first compared. For example, if the initial configuration file is in JSON format, then the second configuration file must also be in JSON format and have the same key-value structure to ensure the continuity and effectiveness of the heat dissipation control logic after replacement. At the same time, the consistency of the attributes of the initial configuration file and the second configuration file is checked, where the file attribute is used to indicate the parameter type of the configuration parameters carried in the configuration file. For example, if there are "P", "I", and "D" sub-keys under the "FanControl" key in the initial configuration file for PID control, the second configuration file should also ensure the existence of these three parameters before replacement, and the parameter types and ranges are consistent with the initial configuration file. When it is confirmed that the first file format is consistent with the second file format and the first file attribute matches the second file attribute, the second configuration file will be used to replace the initial configuration file in the target storage location.

[0073] Through the above method, by matching the file format and attributes, the accuracy and security of the heat dissipation strategy update are ensured, and the updated configuration file can be seamlessly integrated into the existing heat dissipation control system, avoiding update failures or system anomalies caused by format or attribute mismatches.

[0074] As an alternative implementation, extracting the target configuration parameters to be updated carried in the target update request includes:

[0075] Extracting the first identification information in the third configuration file carried in the target update request, where the identification information is used to indicate the heat dissipation component to be adapted by the configuration file;

[0076] Matching the first identification information with the second identification information carried in the initial configuration file;

[0077] When the first identification information and the second identification information match, match multiple first configuration parameters in the third configuration file with the second configuration parameters of the corresponding parameter type in the initial configuration file to obtain the third configuration parameters in the third configuration file, where the parameter values of the third configuration parameters are different from the parameter values of the configuration parameters of the corresponding parameter type in the initial configuration file;

[0078] Determine the third configuration parameter as the target configuration parameter.

[0079] Optionally, in the embodiment of the present application, the target update request also carries a third configuration file, which includes multiple first configuration parameters and first identification information. The first identification information is used to indicate the heat dissipation component to be adapted to the current configuration file. By matching the first identification information with the second identification information carried in the initial configuration file, the compatibility of the new configuration file with the existing configuration file in terms of applicable components can be ensured, avoiding system instability or component control failure caused by configuration conflicts.

[0080] Optionally, in the embodiment of the present application, when the first identification information and the second identification information match, traverse the first configuration parameters included in the third configuration file and compare them with the parameters of the same name in the initial configuration file to determine whether the parameter values have changed. If they have changed, record them as the third configuration parameters to be updated, and finally determine all the third configuration parameters with different values that are matched as the target configuration parameters.

[0081] In the above manner, the adaptability of the new configuration file to the heat dissipation component is ensured through the matching of the identification information. At the same time, only the configuration parameters whose parameter values have changed are updated, and other stable parameters are retained, reducing the complexity and potential risks of the configuration file update and achieving precise adjustment of the heat dissipation strategy.

[0082] As an alternative implementation, generating a target control program according to the target configuration file and server information includes:

[0083] Search for a second script file corresponding to the control method indicated by the target configuration file among multiple first script files configured in the server, where the first script file records the conversion code for converting the operation control method of the heat dissipation component into the operation state of the heat dissipation component;

[0084] Add the configuration parameters carried by the target configuration file to the corresponding parameter positions in the first script file to obtain a third script file;

[0085] Run the third script file to obtain the target state parameters of the target heat dissipation component, where the target state parameters are used to indicate the operation state of the target heat dissipation component during the heat dissipation process of the target component;

[0086] Add the target status parameter to the corresponding parameter position in the fourth script file to obtain a target control program, where the target control program records control codes for controlling the operating status of the heat dissipation component according to the status parameters of the heat dissipation component during the heat dissipation process of the component.

[0087] Optionally, in the embodiment of the present application, the first script file presets code templates under different heat dissipation control methods, and filters out a second script file corresponding to the control method indicated by the target configuration file from the first script file. The second script file contains conversion codes for converting the control method indicated by the target configuration file into the operating status of the heat dissipation component; further read the parameters in the target configuration file, such as PID control parameters, fan speed adjustment points, heat dissipation areas, etc., and insert these parameters into the corresponding parameter positions in the second script file to generate a third script file; run the third script file, and calculate the target status parameter of the target heat dissipation component according to the conversion codes and configuration parameters in the third script file. The target status parameter is used to characterize the operating status that the heat dissipation component should reach under the new heat dissipation strategy. Finally, add the calculated target status parameter to the corresponding parameter position in another predefined fourth script file to generate a target control program. The fourth script file contains control codes for directly controlling the operating status of the heat dissipation component, such as adjusting the fan speed according to the target speed, ensuring that the heat dissipation component can immediately respond to the new heat dissipation strategy and reach the expected operating status.

[0088] Through the above method, through the dynamic script generation mechanism, the heat dissipation strategy can be quickly adjusted according to actual needs and environmental changes, without manually recompiling the entire control program, greatly improving the flexibility and response speed of heat dissipation management.

[0089] As an optional implementation manner, before running the target control program to control the operating status of the target heat dissipation component, the method further includes:

[0090] Control the target heat dissipation component to operate according to a preset operating status;

[0091] During the process of the target heat dissipation component operating according to the preset operating status, delete the reference control program bound to the target component stored in the server, and configure the binding relationship between the target control program and the target heat dissipation component in the server.

[0092] Optionally, in the embodiment of the present application, before applying a new heat dissipation strategy, first ensure that the heat dissipation component is in a known and safe operating state. The operating parameters of the heat dissipation component can be set to the system default or preset safe values; after the heat dissipation component enters the preset operating state, delete the reference control program bound to the target heat dissipation component in the server, configure the new target control program in the server, and establish a new binding relationship between the target heat dissipation component and the target control program.

[0093] In the above manner, the heat dissipation component is switched to a preset operating state before applying the new heat dissipation strategy, avoiding the unstable state that occurs during the update of the control program. It can achieve the update of the heat dissipation strategy without interrupting the normal operation of the device. At the same time, by clearing the old control logic, the conflict between the new and old control programs can be avoided, ensuring that the heat dissipation component can operate completely according to the new control program.

[0094] As an alternative embodiment, the present application also provides a method for changing the BMC heat dissipation strategy based on Redfish. This method can change the existing heat dissipation strategy during the operation of the device without changing the entire device version, while reducing unnecessary introduction of tests and avoiding the time-consuming and laborious problems brought by the existing technical solutions. At the same time, using Redfish can also simplify the monitoring, management, and automated operation of hardware devices, enabling the server to work at the best performance.

[0095] 1) Figure 3 is a hardware interaction diagram of a method for changing the BMC heat dissipation strategy based on Redfish according to an embodiment of the present application. As Figure 3 shown, the heat dissipation strategy (i.e., the target configuration parameters of the present application) is stored in configuration files such as Fan.json, PSU.json, Disk.json (i.e., the initial / target configuration files of the present application). The heat dissipation module will call the heat dissipation strategy, that is, it will call these configuration files. The heat dissipation module is located in the OpenBMC subsystem, and OpenBMC is a monitoring component of the entire server. The Web (web page) / OS terminal (operating system) communicates with the Redfish of the server through a network cable connection.

[0096] 2) First, the Web (web page) / OS terminal (operating system) and the server will negotiate and determine the protocol format for Redfish communication of the heat dissipation strategy, and internally store the relevant parameters of the heat dissipation strategy:

[0097]

[0098]

[0099] Class: Heat dissipation type. For temperature sensors, setpoint and margin can be selected; for fans, fan;

[0100] PCoefficient: Proportional term coefficient in PID, P value in speed regulation type;

[0101] ICoefficient: Integral term coefficient in PID, I value in speed regulation type;

[0102] SlewNeg: Percentage limiting the fan speed decrease, which needs to be filled with a negative number;

[0103] SetPoint: Fan speed regulation point. When the temperature exceeds this value, the fan starts to regulate its speed;

[0104] PreBoostThreshold: 80% duty threshold value. When the temperature exceeds this value, the fan will be pulled to 80% speed;

[0105] CorrectionPercentage: Speed regulation weight for each fan. There are 6 fans here;

[0106] Inputs: Name of the sensor used for speed regulation;

[0107] Zones: Heat dissipation areas corresponding to heat dissipation parameters. Here, it corresponds to 6 fans;

[0108] Probe: Matches the specific model;

[0109] Of course, the parameters can also be added or deleted according to the heat dissipation strategy requirements determined by both parties.

[0110] 3) After the communication format is determined, it can be sent through the standard instructions of Redfish:

[0111]

[0112]

[0113] 4) Figure 4 is the flow of a method for changing the BMC heat dissipation strategy based on Redfish according to an embodiment of the present application Figure 1 , as Figure 4 shown. After the OpenBMC on the server side receives this Redfish instruction (i.e., the target update request of the present application), it performs a preliminary analysis, then backs up the original json file of the heat dissipation module, matches the parameters in Inputs in the instruction with the content of the backed-up file. If a match is found, other parameters in the instruction are synchronized to other parameters of this configuration file. If there is no corresponding parameter, it is ignored to avoid affecting normal speed regulation.

[0114] 5) Figure 5 is the flow of a method for changing the BMC heat dissipation strategy based on Redfish according to an embodiment of the present application Figure 2 , as Figure 5As shown, after the synchronization is completed, compare the backup file with the original file. If the format and attributes are okay and only the attribute parameters are modified, replace the original file with the backup file, then delete the backup file. Finally, restart the heat dissipation module with the fan speed adjusted to 80% to make the new heat dissipation strategy effective.

[0115] This method solves the problems that the heat dissipation strategy cannot be changed during the operation of the OpenBMC device and the poor IPMI usability. By sending a heat dissipation strategy change instruction through Redfish, after OpenBMC parses the instruction, the parameters are synchronized to the original configuration file through the backup file and take effect after restart. Through this technical solution, the existing heat dissipation strategy can be changed during the operation of the device without changing the entire device version, while reducing unnecessary introduction of tests and avoiding the time-consuming and laborious problems brought by the existing technical solutions. At the same time, using Redfish can also simplify the monitoring, management, and automated operation of hardware devices, making the server work at the best performance. The key points of this method are the dynamic change of the heat dissipation strategy of the OpenBMC server device and the use of Redfish by OpenBMC to provide a more efficient, flexible, and secure server, storage, and network device management solution.

[0116] The method in this application can be applied not only to OpenBMC servers but also to industrial production, electronic products, and other environments that require heat dissipation strategies.

[0117] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.

[0118] The embodiment of this application also provides a control device for a heat dissipation component. Figure 6 It is a structural block diagram of a control device for a heat dissipation component according to an embodiment of this application. As Figure 6 shown, the device includes:

[0119] An acquisition module 62, configured to acquire a target update request, where the target update request is used to request an update to an initial configuration file corresponding to a target component, and the initial configuration file is used to indicate the operation control mode of the heat dissipation component during the heat dissipation process of the target component;

[0120] An update module 64, configured to update the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file;

[0121] A generation module 66, configured to generate a target control program according to a target configuration file and server information, where the server information is used to indicate the configuration of the heat dissipation components of the server, the target control program is used to control the operating state of the target heat dissipation components, and the target heat dissipation components are used to dissipate heat from the target components;

[0122] An operation module 68, configured to run the target control program to control the operating state of the target heat dissipation components.

[0123] With the above device, an initial configuration file for indicating the operating control mode of the heat dissipation components during the heat dissipation process of the target components is configured in the server. When a target update request for requesting an update to the initial configuration file corresponding to the target components is obtained, the initial configuration file is updated according to the update content indicated by the target update request to obtain a target configuration file. Furthermore, a target control program for controlling the operating state of the target heat dissipation components can be generated according to the target configuration file and the heat dissipation component situation of the server, and the operating state of the target heat dissipation components is controlled by running the target control program. In the above manner, when it is necessary to change the control mode of the server heat dissipation components, only the initial configuration file configured in the server needs to be updated, and thus the control program for controlling the operating state of the target heat dissipation components can be flexibly changed, thereby realizing flexible change of the control strategy of the server heat dissipation components. Therefore, the technical problem of low control efficiency of the server heat dissipation components in the related art can be solved, and the technical effect of improving the control efficiency of the server heat dissipation components can be achieved.

[0124] Optionally, the update module further includes:

[0125] An extraction unit, configured to extract target configuration parameters to be updated carried in the target update request, where the target configuration parameters are used to characterize the control mode adopted for controlling the operating state of the heat dissipation components;

[0126] An update unit, configured to update the initial configuration file with the target configuration parameters to obtain a target configuration file.

[0127] Optionally, the update unit is further configured to:

[0128] Search in the server for a target storage location associated with the target components;

[0129] Back up the initial configuration file stored at the target storage location to obtain a first configuration file;

[0130] Update the reference configuration parameters included in the first configuration file to the target configuration parameters to obtain a second configuration file, where the reference configuration parameters are the configuration parameters of the same parameter type as the target configuration parameters among the multiple configuration parameters included in the first configuration file;

[0131] Replace the initial configuration file stored in the target storage location with the second configuration file to obtain the target configuration file.

[0132] Optionally, the device further includes:

[0133] A matching module, configured to match the first file format of the initial configuration file and the second file format of the second configuration file, and match the first file attribute of the initial configuration file and the second file attribute of the second configuration file before replacing the initial configuration file stored in the target storage location with the second configuration file, where the file attribute is used to indicate the parameter type of the configuration parameters carried in the corresponding configuration file;

[0134] A replacement module, configured to replace the initial configuration file stored in the target storage location with the second configuration file when the first file format and the second file format match, and the first file attribute and the second file attribute match.

[0135] Optionally, the extraction unit is further configured to:

[0136] Extract the first identification information in the third configuration file carried by the target update request, where the identification information is used to indicate the heat dissipation component adapted by the configuration file;

[0137] Match the first identification information with the second identification information carried by the initial configuration file;

[0138] When the first identification information and the second identification information match, match multiple first configuration parameters in the third configuration file with second configuration parameters of the corresponding parameter type in the initial configuration file to obtain third configuration parameters in the third configuration file, where the parameter values of the third configuration parameters are different from the parameter values of the configuration parameters of the corresponding parameter type in the initial configuration file;

[0139] Determine the third configuration parameter as the target configuration parameter.

[0140] Optionally, the generation module further includes:

[0141] A search unit, configured to search for a second script file corresponding to the control method indicated by the target configuration file in multiple first script files configured in the server, where the conversion code for converting the operating state of the heat dissipation component according to the operating control method of the heat dissipation component is recorded in the first script file;

[0142] A first addition unit, configured to add the configuration parameters carried by the target configuration file to the corresponding parameter positions in the first script file to obtain a third script file;

[0143] An operating unit for running a third script file to obtain target state parameters of a target heat dissipation component, where the target state parameters are used to indicate the operating state of the target heat dissipation component during the heat dissipation process of the target component;

[0144] A second adding unit for adding the target state parameters to the corresponding parameter positions in a fourth script file to obtain a target control program, where the target control program records control codes for controlling the operating state of the heat dissipation component according to the state parameters of the heat dissipation component during the component heat dissipation process.

[0145] Optionally, the device further includes:

[0146] A control module for controlling the target heat dissipation component to operate in a preset operating state;

[0147] A deletion module for deleting the reference control program bound to the target component stored in the server during the process of the target heat dissipation component operating in a preset operating state, and configuring the binding relationship between the target control program and the target heat dissipation component in the server.

[0148] For the description of the features in the corresponding embodiments of the control device of the heat dissipation component, reference can be made to the relevant descriptions in the corresponding embodiments of the control method of the heat dissipation component, which will not be elaborated here one by one.

[0149] An embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above embodiments of the control method of the heat dissipation component.

[0150] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any of the above embodiments of the control method of the heat dissipation component when running.

[0151] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disks, magnetic disks, or optical discs and other various media that can store computer programs.

[0152] An embodiment of the present application further provides a computer program product, where the computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above embodiments of the control method of the heat dissipation component.

[0153] Embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the steps in any of the above-described embodiments of the control method for a heat dissipation component.

[0154] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0155] The above has introduced in detail a control method for a heat dissipation component provided by the present application. Specific examples are used herein to illustrate the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A control method for a heat dissipation component, characterized in that, Including: Obtain a target update request, where the target update request is used to request an update to an initial configuration file corresponding to a target component, and the initial configuration file is used to indicate the operation control method of a heat dissipation component during the heat dissipation process of the target component; Update the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file; Generate a target control program according to the target configuration file and server information, where the server information is used to indicate the heat dissipation component configuration of the server, the target control program is used to control the operation state of a target heat dissipation component, and the target heat dissipation component is used to dissipate heat from the target component; Run the target control program to control the operation state of the target heat dissipation component.

2. The method according to claim 1, wherein: The step of updating the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file includes: Extract target configuration parameters to be updated carried in the target update request, where the target configuration parameters are used to characterize the control method adopted to control the operation state of the heat dissipation component; Update the initial configuration file with the target configuration parameters to obtain the target configuration file.

3. The method according to claim 2, wherein: The step of updating the initial configuration file with the target configuration parameters to obtain the target configuration file includes: Locate a target storage location associated with the target component in the server; Back up the initial configuration file stored at the target storage location to obtain a first configuration file; Update the reference configuration parameters included in the first configuration file to the target configuration parameters to obtain a second configuration file, where the reference configuration parameters are the configuration parameters with the same parameter type as the target configuration parameters among the multiple configuration parameters included in the first configuration file; Replace the initial configuration file stored in the target storage location with the second configuration file to obtain the target configuration file.

4. The method according to claim 3, wherein: Before replacing the initial configuration file stored in the target storage location with the second configuration file, the method further includes: Match the first file format of the initial configuration file and the second file format of the second configuration file, and match the first file attribute of the initial configuration file and the second file attribute of the second configuration file, where the file attribute is used to indicate the parameter type of the configuration parameters carried in the corresponding configuration file; When the first file format and the second file format match, and the first file attribute and the second file attribute match, replace the initial configuration file stored in the target storage location with the second configuration file.

5. The method according to claim 2, wherein: The step of extracting the target configuration parameters to be updated carried in the target update request includes: Extract the first identification information in the third configuration file carried by the target update request, where the identification information is used to indicate the heat dissipation component to which the configuration file is adapted; Match the first identification information with the second identification information carried by the initial configuration file; When the first identification information and the second identification information match, match multiple first configuration parameters in the third configuration file with second configuration parameters of the corresponding parameter type in the initial configuration file to obtain third configuration parameters in the third configuration file, where the parameter values of the third configuration parameters are different from the parameter values of the configuration parameters of the corresponding parameter type in the initial configuration file; Determine the third configuration parameter as the target configuration parameter.

6. The method according to claim 1, wherein The generating the target control program according to the target configuration file and the server information includes: Search for a second script file corresponding to the control method indicated by the target configuration file in multiple first script files configured in the server, where the conversion code for converting the operating state of the heat dissipation component according to the operating control method of the heat dissipation component is recorded in the first script file; Add the configuration parameters carried by the target configuration file to the corresponding parameter positions in the first script file to obtain a third script file; Run the third script file to obtain the target state parameters of the target heat dissipation component, where the target state parameters are used to indicate the operating state of the target heat dissipation component during the heat dissipation process of the target component; Add the target state parameters to the corresponding parameter positions in the fourth script file to obtain the target control program, where the control code for controlling the operating state of the heat dissipation component according to the state parameters of the heat dissipation component during the component heat dissipation process is recorded in the target control program.

7. The method according to claim 1, wherein Before running the target control program to control the operating state of the target heat dissipation component, the method further includes: Control the target heat dissipation component to operate in a preset operating state; During the process of the target heat dissipation component operating in the preset operating state, delete the reference control program bound to the target component stored in the server, and configure the binding relationship between the target control program and the target heat dissipation component in the server.

8. A control device for a heat dissipation component, characterized in that, including: An acquisition module, configured to acquire a target update request, where the target update request is used to request an update to an initial configuration file corresponding to a target component, and the initial configuration file is used to indicate the operating control method of the heat dissipation component during the heat dissipation process of the target component; An update module, configured to update the initial configuration file according to the update content indicated by the target update request to obtain a target configuration file; A generation module, configured to generate a target control program according to the target configuration file and server information, where the server information is used to indicate the heat dissipation component configuration of the server, the target control program is used to control the operating state of the target heat dissipation component, and the target heat dissipation component is used to dissipate heat from the target component; An operation module for operating the target heat dissipation component in accordance with the operation state controlled by the target control program.

9. An electronic device, characterized in that, Comprising: A memory for storing a computer program; A processor for implementing the steps of the control method of the heat dissipation component according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the control method of the heat dissipation component according to any one of claims 1 to 7 when executed by the processor.