Multi-node server fan control method and device, equipment and medium
By setting up an arbitration controller in the fan board to summarize and compare fan control parameters, the problem of coupling and control anomalies in multi-node server fan control is solved, and the stability and flexibility of fan control are improved.
Patent Information
- Application Number
- CN202410958666.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-06
AI Technical Summary
Existing multi-node server fan control solutions have problems such as software and hardware coupling, BMC version differences leading to control abnormalities, and communication abnormalities leading to inaccurate or out-of-control cooling system control.
By setting up an arbitration controller in the fan board, in automatic mode, the fan control parameters of each node server are summarized to determine the target control parameters; in manual mode, fan control rights are allocated, and manual and automatic control parameters are compared to avoid conflicts and ensure heat dissipation requirements.
It realizes the decoupling of software and hardware between each node controller, simplifies the fan control logic, improves the stability of fan control in multi-node server systems, supports manual fan control, and facilitates maintenance and debugging.
Smart Images

Figure CN118601932A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server monitoring and management, and in particular to a multi-node server fan control method, device, equipment and medium. Background Art
[0002] The rapid development of cloud computing and big data has placed higher and higher requirements on server performance. Multi-node servers are being used more and more widely. Solving the problem of efficient and coordinated control of server fans is a prerequisite for the stable operation of multi-node servers. Usually, in a multi-node server, multiple nodes share a cooling system. Each node needs to monitor the temperature of the corresponding sensor and control the fan speed according to the control strategy. When multiple nodes control the fan at the same time, there may be control conflicts, so multiple nodes need to control the fan in an orderly manner to meet the cooling needs of all nodes.
[0003] The current fan control solution for multi-node servers is to rely on a preset master BMC (Baseboard Management Controller) to complete the multi-node fan control problem. That is, by setting up a master node BMC and multiple standby node BMCs, the corresponding node control parameters of the standby nodes are passed to the master node, and the master node calculates the total control parameters and controls the fans. This solution has the following problems:
[0004] (1) This will lead to software and hardware coupling between multi-node BMCs, and each BMC needs to be connected and communicate with each other through cables;
[0005] (2) If the BMC versions of each node are different, it may cause the logic or communication logic of judging the main BMC to be abnormal, which may cause the fan control function to be unavailable and affect heat dissipation;
[0006] (3) When the communication between the active and standby BMCs is abnormal or the active BMC is malfunctioning, the cooling system will be inaccurately regulated or out of control.
[0007] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0008] In view of this, the purpose of the present invention is to provide a multi-node server fan control method, device, equipment and medium, which can realize efficient coordinated control of multi-node server fans and improve the stability of the multi-node server cooling system. The specific scheme is as follows:
[0009] In a first aspect, the present application discloses a multi-node server fan control method, comprising:
[0010] Obtaining a fan control instruction of a multi-node server for a fan, and determining a fan control mode corresponding to the fan control instruction;
[0011] If the fan control mode is the automatic mode, the respective first fan control parameters sent by each node server are obtained through an arbitration controller pre-set in the fan board, and then a target control parameter is determined based on the first fan control parameter, so as to control the fan by using the target control parameter;
[0012] If the fan control mode is manual mode, the target node server that has the fan control right is determined and the corresponding manual control parameters are obtained. The automatic control parameters saved in the preset register by the arbitration controller are read through the node controller corresponding to the target node server. Then, the manual control parameters are compared with the automatic control parameters so that the fan can be controlled using the manual control parameters based on the comparison results.
[0013] Optionally, after obtaining the fan control instruction of the multi-node server for the fan, the method further includes:
[0014] The fan control instruction is sent to the arbitration controller through an integrated circuit bus protocol; wherein the integrated circuit bus paths between each node server in the multi-node server and the arbitration controller are different, and the arbitration controller distinguishes the multi-node servers through different integrated circuit bus paths;
[0015] Correspondingly, the obtaining of the respective first fan control parameters sent by each node server through the arbitration controller pre-set in the fan board includes:
[0016] The first fan control parameter sent by each node server through the respective integrated circuit bus path is obtained through an arbitration controller pre-set in the fan board.
[0017] Optionally, obtaining a fan control instruction of a multi-node server for a fan includes:
[0018] Obtaining fan control instructions initiated by the multi-node servers to the fans through their respective node controllers;
[0019] Correspondingly, the obtaining of the respective first fan control parameters sent by each node server through the arbitration controller pre-set in the fan board includes:
[0020] The respective first fan control parameters sent by each node server through the node controller are obtained through the arbitration controller pre-set in the fan board.
[0021] Optionally, the respective first fan control parameters sent by each node server are fan control parameters determined by the node server according to a preset heat dissipation strategy after the node server reads the corresponding temperature sensor through the respective node controller; wherein, if the fan control mode is the automatic mode, the respective first fan control parameters sent by each node server are obtained by an arbitration controller pre-set in the fan board, and then a target control parameter is determined based on the first fan control parameter, so as to control the fan using the target control parameter, including:
[0022] If the fan control mode is the automatic mode, obtaining the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board;
[0023] Based on the first fan control parameter, a preset control algorithm is used to determine a target control parameter so as to control the fan using the target control parameter; the preset control algorithm includes a preset high-performance control algorithm and a preset high-efficiency control algorithm; the preset high-performance control algorithm is used to determine the maximum fan control parameter in the first fan control parameter as the target control parameter, and the preset high-efficiency control algorithm is used to determine the corresponding target fan according to the maximum fan control parameter, and increase the rotation speed of the adjacent fans of the target fan according to a preset ratio to determine the target control parameter.
[0024] Optionally, if the fan control mode is a manual mode, determining a target node server having fan control rights and obtaining corresponding manual control parameters, reading automatic control parameters stored in a preset register by the arbitration controller through a node controller corresponding to the target node server, and then comparing the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result, includes:
[0025] If the fan control mode is a manual mode, determining a target node server having fan control rights and other node servers except the target node server;
[0026] Sending the second fan control parameters corresponding to each of the other node servers to the arbitration controller, so that the arbitration controller determines the automatic control parameters using the second fan control parameters, and saves the automatic control parameters in the preset register;
[0027] Acquire a manual control parameter corresponding to the target node server, read the automatic control parameter stored in the preset register by the arbitration controller through a node controller corresponding to the target node server, and compare the manual control parameter with the automatic control parameter;
[0028] If the manual control parameter is less than the automatic control parameter, an alarm message is generated, and then the manual control parameter is sent to the arbitration controller so as to control the fan using the manual control parameter;
[0029] If the manual control parameter is not less than the automatic control parameter, the step of sending the manual control parameter to the arbitration controller is directly triggered.
[0030] Optionally, the multi-node server fan control method further includes:
[0031] Monitoring a current node server in the multi-node servers that switches the automatic mode to the manual mode;
[0032] When the fan control right is in the arbitration controller, the fan control right is transferred to the current node server so that the current node server switches the automatic mode to the manual mode, and determines the current node server as the target node server;
[0033] When the current node server switches the manual mode to the automatic mode, the fan control right of the current node server is released, and then the step of monitoring the current node server that switches the automatic mode to the manual mode in the multi-node server is re-executed.
[0034] Optionally, determining a target control parameter based on the first fan control parameter so as to control the fan using the target control parameter includes:
[0035] determining a target control parameter based on the first fan control parameter, and outputting a first speed control signal according to the target control parameter; the first speed control signal is a pulse width modulation signal;
[0036] Sending the first speed control signal to the fan so as to control the fan based on the first speed control signal, and receiving a first speed feedback signal returned by the fan; the first speed feedback signal is a tachometer signal;
[0037] Accordingly, the comparing the manual control parameter with the automatic control parameter so as to control the fan using the manual control parameter based on the comparison result includes:
[0038] Comparing the manual control parameter with the automatic control parameter, so as to output a second speed control signal according to the manual control parameter based on the comparison result; the second speed control signal is a pulse width modulation signal;
[0039] The second speed control signal is sent to the fan so as to control the fan based on the second speed control signal, and a second speed feedback signal returned by the fan is received; the second speed feedback signal is a tachometer signal.
[0040] In a second aspect, the present application discloses a multi-node server fan control device, comprising:
[0041] An instruction acquisition module, used to acquire a fan control instruction of a multi-node server for a fan, and determine a fan control mode corresponding to the fan control instruction;
[0042] an automatic mode control module, configured to, if the fan control mode is the automatic mode, obtain the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board, and then determine a target control parameter based on the first fan control parameter, so as to control the fan using the target control parameter;
[0043] A manual mode control module is used to determine the target node server that has the fan control right and obtain the corresponding manual control parameters if the fan control mode is the manual mode, read the automatic control parameters stored in the preset register by the arbitration controller through the node controller corresponding to the target node server, and then compare the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result.
[0044] In a third aspect, the present application discloses an electronic device, comprising a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the multi-node server fan control method as described above.
[0045] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the multi-node server fan control method as described above.
[0046] The present application provides a multi-node server fan control method, comprising: obtaining fan control instructions for fans from multi-node servers, and determining a fan control mode corresponding to the fan control instructions; if the fan control mode is an automatic mode, obtaining respective first fan control parameters sent by each node server through an arbitration controller pre-set in a fan board, and then determining a target control parameter based on the first fan control parameter, so as to control the fan using the target control parameter; if the fan control mode is a manual mode, determining a target node server with fan control rights and obtaining corresponding manual control parameters, reading the automatic control parameters stored in a preset register by the arbitration controller through a node controller corresponding to the target node server, and then comparing the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result.
[0047] The beneficial technical effects of the present application are as follows: by setting an arbitration controller in the fan board, in the automatic mode, the arbitration controller summarizes the fan control parameters of each node server, and determines the final target control parameters to control the fan, realizing the software and hardware decoupling between the node controllers, simplifying the fan control logic, and improving the stability of the fan control of the multi-node server system. In manual mode, manual control of fans on multi-node servers is supported, and control rights can be reasonably allocated. Only one target node server has fan control rights, and only the node server with fan control rights can control the fan to avoid control conflicts; in addition, in manual mode, an insurance mechanism is added to compare the manual control parameters with the automatic control parameters stored in the preset register by the arbitration controller, and the fan is controlled based on the comparison results to avoid affecting the performance due to the fan speed not meeting the cooling requirements of other machines. It can be seen that the efficient collaborative control of the fans of multi-node servers is realized through simple control logic, which improves the stability of the cooling system of multi-node servers, and also supports manual control of fans, which is convenient for technicians to maintain and debug.
[0048] In addition, the present application provides a multi-node server fan control device, equipment and storage medium, which correspond to the above-mentioned multi-node server fan control method and have the same effect as above. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0050] Figure 1 A flow chart of a multi-node server fan control method disclosed in this application;
[0051] Figure 2 A fan speed monitoring block diagram disclosed in this application;
[0052] Figure 3 A multi-node system connection block diagram disclosed in this application;
[0053] Figure 4 This is a flow chart of automatic mode fan control disclosed in this application;
[0054] Figure 5 A manual mode fan control flow chart disclosed in this application;
[0055] Figure 6 A flowchart of arbitration control rights of an arbitration controller disclosed in this application;
[0056] Figure 7 This is a schematic diagram of the structure of a multi-node server fan control device disclosed in this application;
[0057] Figure 8 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0058] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] Currently, the fan control solution for multi-node servers is to rely on a preset master BMC to solve the multi-node fan control problem. This solution has the following problems:
[0060] (1) This will lead to software and hardware coupling between multi-node BMCs, and each BMC needs to be connected and communicate with each other through cables;
[0061] (2) If the BMC versions of each node are different, it may cause the logic or communication logic of judging the main BMC to be abnormal, which may cause the fan control function to be unavailable and affect heat dissipation;
[0062] (3) When the communication between the active and standby BMCs is abnormal or the active BMC is malfunctioning, the cooling system will be inaccurately regulated or out of control.
[0063] To this end, the present application provides a multi-node server fan control solution, which can achieve efficient coordinated control of multi-node server fans and improve the stability of the multi-node server cooling system.
[0064] The embodiment of the present invention discloses a multi-node server fan control method, see Figure 1 As shown, the method includes:
[0065] Step S11: obtaining a fan control instruction of a multi-node server for a fan, and determining a fan control mode corresponding to the fan control instruction.
[0066] When a multi-node server needs to implement fan control, a fan control instruction of the multi-node server for the fan is obtained. Specifically, the multi-node server initiates the fan control instruction to the fan through its own node controller. Further, the current fan control mode is determined according to the fan control instruction. In the embodiment of the present application, two different fan control modes are designed, one is an automatic mode, which is used to select the optimal control parameters to automatically control the fan speed and simplify the fan regulation logic; the other is a manual mode, which is used to support manual control of the fan on a multi-node server, which is beneficial to the debugging and maintenance of the server.
[0067] It is understandable that the multi-node server includes a plurality of node servers. Each node server includes a respective node controller and a fan board connector. The node controller can calculate the control parameters of the corresponding node according to the respective heat dissipation strategy; the fan board connector can be connected to the fan board to send the fan control signal corresponding to the control parameter to the arbitration controller in the fan board.
[0068] In the embodiment of the present application, the node controller and the arbitration controller communicate via the I2C (Inter-Integrated Circuit) protocol, that is, after obtaining the fan control instruction of the multi-node server to the fan, the fan control instruction is sent to the arbitration controller via the integrated circuit bus protocol. The integrated circuit bus paths between each node server in the multi-node server and the arbitration controller are different, and the arbitration controller distinguishes the multi-node servers currently interacting with information through different integrated circuit bus paths.
[0069] Step S12: If the fan control mode is the automatic mode, the arbitration controller pre-set in the fan board obtains the respective first fan control parameters sent by each node server, and then determines the target control parameters based on the first fan control parameters, so as to control the fan using the target control parameters.
[0070] In a specific implementation, if the fan control mode is the automatic mode, the arbitration controller pre-set in the fan board will obtain the respective fan control parameters sent by each node server. In the embodiment of the present application, CPLD (Complex Programmable Logic Device) is used as the fan arbitration controller. It can be understood that since the node controller and the arbitration controller communicate through the I2C protocol, the first fan control parameters sent by each node server through the respective integrated circuit bus path are obtained by the arbitration controller pre-set in the fan board. In addition, the respective first fan control parameters sent by each node server through the node controller are obtained by the arbitration controller pre-set in the fan board.
[0071] In the embodiment of the present application, in the automatic mode, the arbitration controller summarizes the fan control parameters of all node controllers according to the preset control strategy, and then calculates the final target control parameters using the fan control parameters of all node controllers. Each node controller obtains the current fan speed information corresponding to the target control parameter from the arbitration controller through the connection device and controls the fan accordingly.
[0072] It should be noted that the fan board includes an arbitration controller, a node connector and a fan connector. Among them, the node connector is used to connect to the fan board connector of each node server through a connecting device; the fan connector is used to connect to the fan, so that the arbitration controller can connect to the fan through the connecting device, send a speed control signal to the fan, and receive a speed feedback signal from the fan; it should be noted that the former speed control signal is a PWM (Pulse Width Modulation) signal, and the latter speed feedback signal is a TACH (Tachometer) signal.
[0073] Specifically, a target control parameter is determined based on the first fan control parameter, and a first speed control signal is output according to the target control parameter; the first speed control signal is a pulse width modulation signal; the first speed control signal is sent to the fan so as to control the fan based on the first speed control signal, and a first speed feedback signal returned by the fan is received; the first speed feedback signal is a tachometer signal.
[0074] Step S13: If the fan control mode is manual mode, determine the target node server that has the fan control right and obtain the corresponding manual control parameters, read the automatic control parameters saved in the preset register by the arbitration controller through the node controller corresponding to the target node server, and then compare the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result.
[0075] In another specific implementation, if the fan control mode is manual mode, only the node controller with fan control rights can control the fan, so the target node server with fan control rights is determined. It should be noted that only one node controller can obtain fan control rights at the same time. And in manual mode, the target node server with fan control rights can switch the fan control mode to automatic mode, at which time other node controllers cannot control the fan or switch the fan control mode.
[0076] In the embodiment of the present application, in order to ensure that the fan speed in manual mode can meet the heat dissipation requirements of other nodes, other node controllers will still send control parameters to the arbitration controller, and the arbitration controller will summarize all control parameters to calculate the final automatic control parameters. It is understandable that, since the fan control right in manual mode is in the target node server, the automatic control parameters calculated by the arbitration controller will not be used to control the fan, but will be stored in the register of the arbitration controller.
[0077] When the user manually controls the fan through the node controller that has fan control rights, the node controller will read the calculated automatic control parameters from the register of the arbitration controller and compare them with the manual control parameters. When the manual control parameters are smaller than the automatic control parameters, it means that the parameters cannot meet the cooling requirements of other machines and an alarm will be issued to the user.
[0078] In a specific example, the fan can be controlled by using the manual control parameter based on the comparison result: regardless of whether the heat dissipation requirement can be met, the node controller will send the manual control parameter set by the user to the arbitration controller, and the arbitration controller directly uses the manual control parameter to control the fan. It can also be: based on human experience or using an artificial intelligence model to determine a preset comparison parameter threshold, when the difference between the manual control parameter and the automatic control parameter is too large, other corresponding heat dissipation strategies will be automatically adopted.
[0079] Similarly, based on the relevant step descriptions disclosed in the aforementioned automatic mode, it can be known that the fan connector in the fan board is used to connect to the fan, so that the arbitration controller can be connected to the fan through the connecting device, send a speed control signal to the fan, and receive a speed feedback signal from the fan; similarly, the former speed control signal is a PWM signal, and the latter speed feedback signal is a TACH signal.
[0080] Specifically, the manual control parameter is compared with the automatic control parameter so as to output a second speed control signal according to the manual control parameter based on the comparison result; the second speed control signal is a pulse width modulation signal; the second speed control signal is sent to the fan so as to control the fan based on the second speed control signal, and receive a second speed feedback signal returned by the fan; the second speed feedback signal is a tachometer signal.
[0081] like Figure 2 The figure shows the fan speed monitoring block diagram. The node controller and the arbitration controller communicate via the I2C protocol. The I2C bus paths between each node controller and the arbitration controller are different. The arbitration controller uses different paths to distinguish the nodes currently interacting with each other. The arbitration controller is connected to the fan through a connecting device, and can send speed control signals to the fan and receive speed feedback signals from the fan. The former is a PWM signal and the latter is a TACH signal.
[0082] The present application provides a multi-node server fan control method, comprising: obtaining fan control instructions for fans from multi-node servers, and determining a fan control mode corresponding to the fan control instructions; if the fan control mode is an automatic mode, obtaining respective first fan control parameters sent by each node server through an arbitration controller pre-set in a fan board, and then determining a target control parameter based on the first fan control parameter, so as to control the fan using the target control parameter; if the fan control mode is a manual mode, determining a target node server with fan control rights and obtaining corresponding manual control parameters, reading the automatic control parameters stored in a preset register by the arbitration controller through a node controller corresponding to the target node server, and then comparing the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result.
[0083] The beneficial technical effects of the present application are as follows: by setting an arbitration controller in the fan board, in the automatic mode, the arbitration controller summarizes the fan control parameters of each node server, and determines the final target control parameters to control the fan, realizing the software and hardware decoupling between the node controllers, simplifying the fan control logic, and improving the stability of the fan control of the multi-node server system. In manual mode, manual control of fans on multi-node servers is supported, and control rights can be reasonably allocated. Only one target node server has fan control rights, and only the node server with fan control rights can control the fan to avoid control conflicts; in addition, in manual mode, an insurance mechanism is added to compare the manual control parameters with the automatic control parameters stored in the preset register by the arbitration controller, and the fan is controlled based on the comparison results to avoid affecting the performance due to the fan speed not meeting the cooling requirements of other machines. It can be seen that the efficient collaborative control of the fans of multi-node servers is realized through simple control logic, which improves the stability of the cooling system of multi-node servers, and also supports manual control of fans, which is convenient for technicians to maintain and debug.
[0084] like Figure 3 The present invention shows a multi-node server fan control system implemented by the method in the above embodiment. The system is composed of multiple nodes, fan boards, fans and connecting devices. The node includes a node controller and a fan board connector; the fan board includes an arbitration controller, a node connector and a fan connector. The node connector in the fan board is connected to the fan board connector of each node through a connecting device, and each node controller sends a fan control signal to the arbitration controller through the connecting device. The arbitration controller distinguishes the nodes currently interacting with information through different paths. The arbitration controller is connected to the fan through the connecting device, and obtains the current fan speed information from the arbitration controller through the connecting device.
[0085] Based on the above embodiment, this embodiment will specifically explain S12 in the above embodiment. If the fan control mode is the automatic mode, the process of obtaining the respective first fan control parameters sent by each node server through the arbitration controller pre-set in the fan board, and then determining the target control parameters based on the first fan control parameters so as to control the fan using the target control parameters may include the following steps:
[0086] Step 1: obtaining the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board;
[0087] Step 2: Based on the first fan control parameter, a target control parameter is determined using a preset control algorithm, so as to control the fan using the target control parameter.
[0088] In the embodiment of the present application, the respective first fan control parameters sent by each node server are determined according to the preset heat dissipation strategy after the node controller reads the respective temperature sensors through the node server. It is understandable that the preset heat dissipation strategy can be a strategy for finely controlling the fan speed through a software algorithm, dynamically adjusting the fan speed according to the equipment load and temperature changes, so as to achieve the best heat dissipation effect and reduce noise and vibration; it can be a strategy for ensuring that the heat dissipation effect of the fan in the electronic device is maximized and the device temperature is kept within a safe range through reasonable layout and optimized design; it can also be a strategy for making the fan run smoothly and efficiently according to the fan material or different fan designs, etc. Therefore, the heat dissipation strategy that can achieve the heat dissipation effect of the fan can determine the corresponding fan control parameters, and no specific limitation is made to this.
[0089] Furthermore, after the corresponding first fan control parameters are calculated according to the respective heat dissipation strategies, the first fan control parameters are sent to the arbitration controller, which aggregates the control parameters of all nodes according to the preset control algorithm and calculates the target control parameters. Figure 4 Shown is the fan control flow chart in automatic mode.
[0090] First, each node controller collects its own temperature and calculates the fan control parameters according to the heat dissipation strategy; secondly, each node controller sends the control parameters to the arbitration controller through I2C; the arbitration controller receives the control parameters; then, the arbitration controller calculates the final control parameters through a preset algorithm; finally, the arbitration controller outputs PWM according to the final control parameters to control the fan speed.
[0091] In the embodiment of the present application, the preset control algorithm includes a preset high-performance control algorithm and a preset high-efficiency control algorithm. The following introduces the two control algorithms respectively.
[0092] For a high-performance control algorithm, the maximum fan control parameter among the first fan control parameters is determined as the target control parameter. That is, the maximum value of all node control parameters is taken as the final fan control parameter. The algorithm is simple and stable, and has high control efficiency.
[0093] Specifically, it can be achieved through the following formula: ; Where m represents the fan number; Indicates the PWM signal of the mth fan; n indicates the node controller number; Indicates the PWM signal sent by the nth node controller to the mth fan.
[0094] For the high-efficiency control algorithm, it is used to determine the corresponding target fan according to the maximum fan control parameter, and increase the speed of the adjacent fans of the target fan according to a preset ratio to determine the target control parameter. It can be understood that in a multi-node model, the fans are partitioned and layered, and appropriately increasing the speed of adjacent fans according to a certain ratio can improve the heat dissipation efficiency.
[0095] Assumptions For three adjacent fans , , For the fan with the highest speed, the speed of the adjacent fans will be increased by a certain ratio K to assist in heat dissipation. ; .
[0096] It can be seen that in automatic mode, the arbitration controller summarizes the fan control parameters of each node and selects the optimal parameters to control the fan speed, which realizes the software and hardware decoupling between the controllers of each node, simplifies the fan control logic, and improves the stability of fan control in the multi-node server system.
[0097] Based on the above embodiment, this embodiment will specifically explain S13 in the above embodiment. If the fan control mode is a manual mode, the process of determining the target node server that has the fan control right and obtaining the corresponding manual control parameters, reading the automatic control parameters stored in the preset register by the arbitration controller through the node controller corresponding to the target node server, and then comparing the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result, may include the following steps:
[0098] Step 1: Determine a target node server that has fan control rights, and other node servers except the target node server.
[0099] In the embodiment of the present application, only one node controller can obtain fan control rights at the same time. In manual mode, only the node controller with fan control rights can control the fan. Therefore, the target node server with fan control rights is determined. Other node servers except the target node server cannot control the fan and do not have fan control rights.
[0100] Step 2: Send the second fan control parameters corresponding to the other node servers to the arbitration controller, so that the arbitration controller determines the automatic control parameters using the second fan control parameters and saves the automatic control parameters in the preset register.
[0101] In the embodiment of the present application, in order to ensure that the fan speed in manual mode can meet the cooling requirements of other nodes, other node servers will still send their own second fan control parameters to the arbitration controller, and the arbitration controller will summarize all the second fan control parameters and calculate the final automatic control parameters. However, the automatic control parameters will not be used to control the fan, but will be saved in the register of the arbitration controller. The arbitration controller will only use the manual control parameters of the node with control rights to control the fan.
[0102] Step three: Obtain the manual control parameters corresponding to the target node server, read the automatic control parameters stored in the preset register by the arbitration controller through the node controller corresponding to the target node server, and compare the manual control parameters with the automatic control parameters.
[0103] Step 4: if the manual control parameter is less than the automatic control parameter, generate an alarm message, and then send the manual control parameter to the arbitration controller so as to control the fan using the manual control parameter;
[0104] Step 5: If the manual control parameter is not less than the automatic control parameter, directly triggering the step of sending the manual control parameter to the arbitration controller.
[0105] When the user manually controls the fan through the node controller with fan control rights, the manual control parameters are sent to the arbitration controller. At the same time, the node controller reads the calculated automatic control parameters from the register of the arbitration controller and compares them with the manual control parameters sent by itself. When the manual control parameters are smaller than the automatic control parameters, it means that the manual control parameters cannot meet the cooling requirements of other node controllers, and an alarm will be issued to the user; regardless of whether the cooling requirements can be met, the node controller will send the manual control parameters set by the user to the arbitration controller, and the arbitration controller will directly use the manual control parameters to control the fan.
[0106] like Figure 5 The figure shows a fan manual mode control flow chart provided as an example in combination with the above steps. First, the user issues an operation to control the fan through the node controller; second, the arbitration controller collects the control parameters of each node, and calculates the final control parameters according to the logic of automatic control and stores them in the register, without controlling the fan; the node controller reads the control parameters of the arbitration controller and determines whether the user's control parameters can meet the final heat dissipation requirements; if the heat dissipation requirements cannot be met, the node controller will issue an alarm; regardless of whether the heat dissipation requirements can be met, the node controller will send the control parameters set by the user to the arbitration controller; finally, the arbitration controller directly uses the manual control parameters to control the fan.
[0107] It can be seen that when manually controlling the fan, the control rights can be reasonably allocated to avoid control conflicts; and, in manual mode, a safety mechanism is added to avoid affecting performance due to the fan speed not meeting the cooling requirements of other machines.
[0108] Based on the above embodiment, in a feasible implementation, the fan control mode can be switched, for example, the automatic mode is switched to the manual mode, or the manual mode is switched to the automatic mode. Specifically, the following steps may be included:
[0109] Monitoring a current node server in the multi-node servers that switches the automatic mode to the manual mode;
[0110] When the fan control right is in the arbitration controller, the fan control right is transferred to the current node server so that the current node server switches the automatic mode to the manual mode, and determines the current node server as the target node server;
[0111] When the current node server switches the manual mode to the automatic mode, the fan control right of the current node server is released, and then the step of monitoring the current node server that switches the automatic mode to the manual mode in the multi-node server is re-executed.
[0112] For the convenience of description, the above steps are combined for explanation.
[0113] In the embodiment of the present application, when a node controller sends an instruction to switch the fan control mode to the manual mode, the arbitration controller will determine whether the current control right is in the arbitration controller. If so, the node controller will obtain the fan control right, and the fan control mode is the manual mode at this time. The node corresponding to the node controller is determined as the target node server, and the fan can be manually controlled.
[0114] It is understandable that when multiple node controllers synchronously send instructions for switching modes, a priority selection strategy can be preset to arbitrate multiple node controllers that synchronously initiate mode switching instructions, select a node controller with a higher priority, and grant it fan control rights.
[0115] It should be noted that when a node controller without control authority sends instructions to the arbitration controller to switch the fan control mode, the arbitration controller will ignore these instructions. In manual mode, a node controller without control authority has no right to switch the fan control mode.
[0116] In the embodiment of the present application, when the node controller with control rights sends an instruction to switch the fan control mode to the automatic mode, the control rights of the node controller will be released. Then, based on the automatic mode, it continues to monitor whether there are other nodes that need to switch modes.
[0117] like Figure 6 The figure shows a flowchart of arbitration controller arbitration control rights. When any node controller sends a command to switch the control mode, the instruction type is judged. If a node controller applies for manual control, it is judged whether there are other node controllers occupying the fan control right, that is, it is judged whether the fan control right is in the arbitration controller, and the fan control right is in the arbitration controller in automatic mode. If so, the node controller will obtain the fan control right. At this time, the fan control mode is manual mode, and the node controller can manually control the fan. If a node controller applies to switch to automatic mode, similarly, it is judged whether the current node controller has the control right, because in manual mode, the fan control right is in the node controller, and the node controller without control right has no right to switch the fan control mode. If and only if the current node controller has the fan control right, the fan control mode will be switched to automatic mode, and the control right of the node controller will be released at the same time.
[0118] Correspondingly, the present application embodiment also discloses a multi-node server fan control device, see Figure 7 As shown, the device comprises:
[0119] The instruction acquisition module 11 is used to acquire the fan control instruction of the multi-node server for the fan, and determine the fan control mode corresponding to the fan control instruction;
[0120] The automatic mode control module 12 is used for obtaining the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board if the fan control mode is the automatic mode, and then determining the target control parameters based on the first fan control parameters, so as to control the fan by using the target control parameters;
[0121] The manual mode control module 13 is used to determine the target node server that has the fan control right and obtain the corresponding manual control parameters if the fan control mode is the manual mode, read the automatic control parameters stored in the preset register by the arbitration controller through the node controller corresponding to the target node server, and then compare the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result.
[0122] Among them, for more specific working processes of the above-mentioned modules, please refer to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0123] It can be seen that the above scheme of this embodiment includes: obtaining fan control instructions for fans from multiple node servers, and determining the fan control mode corresponding to the fan control instructions; if the fan control mode is automatic mode, obtaining the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board, and then determining the target control parameters based on the first fan control parameters, so as to control the fan using the target control parameters; if the fan control mode is manual mode, determining the target node server with fan control rights and obtaining the corresponding manual control parameters, reading the automatic control parameters stored in the preset register by the arbitration controller through the node controller corresponding to the target node server, and then comparing the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison results.
[0124] The beneficial technical effects of the present application are as follows: by setting an arbitration controller in the fan board, in the automatic mode, the arbitration controller summarizes the fan control parameters of each node server, and determines the final target control parameters to control the fan, realizing the software and hardware decoupling between the node controllers, simplifying the fan control logic, and improving the stability of the fan control of the multi-node server system. In manual mode, manual control of fans on multi-node servers is supported, and control rights can be reasonably allocated. Only one target node server has fan control rights, and only the node server with fan control rights can control the fan to avoid control conflicts; in addition, in manual mode, an insurance mechanism is added to compare the manual control parameters with the automatic control parameters stored in the preset register by the arbitration controller, and the fan is controlled based on the comparison results to avoid affecting the performance due to the fan speed not meeting the cooling requirements of other machines. It can be seen that the efficient collaborative control of the fans of multi-node servers is realized through simple control logic, which improves the stability of the cooling system of multi-node servers, and also supports manual control of fans, which is convenient for technicians to maintain and debug.
[0125] In a specific implementation, the multi-node server fan control device further includes:
[0126] an instruction sending module, configured to send the fan control instruction to the arbitration controller through an integrated circuit bus protocol; wherein the integrated circuit bus paths between each node server in the multi-node server and the arbitration controller are different, and the arbitration controller distinguishes the multi-node servers through different integrated circuit bus paths;
[0127] Accordingly, the automatic mode control module 12 is specifically used for:
[0128] The first fan control parameter sent by each node server through the respective integrated circuit bus path is obtained through an arbitration controller pre-set in the fan board.
[0129] In a specific implementation, the instruction acquisition module 11 is specifically used to:
[0130] Obtaining fan control instructions initiated by the multi-node servers to the fans through their respective node controllers;
[0131] Accordingly, the automatic mode control module 12 is specifically used for:
[0132] The respective first fan control parameters sent by each node server through the node controller are obtained through the arbitration controller pre-set in the fan board.
[0133] In a specific implementation, the automatic mode control module 12 includes:
[0134] A control parameter acquisition module, configured to acquire the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board if the fan control mode is the automatic mode;
[0135] A target control parameter determination module is used to determine the target control parameter based on the first fan control parameter using a preset control algorithm so as to control the fan using the target control parameter; the preset control algorithm includes a preset high-performance control algorithm and a preset high-efficiency control algorithm; the preset high-performance control algorithm is used to determine the maximum fan control parameter among the first fan control parameters as the target control parameter, and the preset high-efficiency control algorithm is used to determine the corresponding target fan according to the maximum fan control parameter, and increase the rotation speed of the adjacent fans of the target fan according to a preset ratio to determine the target control parameter.
[0136] In a specific implementation, the manual mode control module 13 includes:
[0137] A fan control right determination module, used for determining a target node server having the fan control right and other node servers except the target node server if the fan control mode is a manual mode;
[0138] an automatic control parameter determination module, configured to send the second fan control parameters corresponding to the other node servers to the arbitration controller, so that the arbitration controller determines the automatic control parameters using the second fan control parameters, and stores the automatic control parameters in the preset register;
[0139] a parameter comparison module, configured to obtain a manual control parameter corresponding to the target node server, read the automatic control parameter stored in the preset register by the arbitration controller through a node controller corresponding to the target node server, and compare the manual control parameter with the automatic control parameter;
[0140] a first processing module, configured to generate an alarm message if the manual control parameter is less than the automatic control parameter, and then send the manual control parameter to the arbitration controller so as to control the fan using the manual control parameter;
[0141] The second processing module is used for directly triggering the step of sending the manual control parameter to the arbitration controller if the manual control parameter is not less than the automatic control parameter.
[0142] In a specific implementation, the multi-node server fan control device further includes:
[0143] A mode switching monitoring module, used for monitoring a current node server in the multi-node server that switches the automatic mode to the manual mode;
[0144] a control right migration module, configured to transfer the fan control right to the current node server when the fan control right is in the arbitration controller, so that the current node server switches the automatic mode to the manual mode, and determines the current node server as the target node server;
[0145] The control right release module is used to release the fan control right of the current node server when the current node server switches the manual mode to the automatic mode, and then re-execute the step of monitoring the current node server that switches the automatic mode to the manual mode in the multi-node server.
[0146] In a specific implementation, the automatic mode control module 12 includes:
[0147] a first speed control signal output module, configured to determine a target control parameter based on the first fan control parameter, and output a first speed control signal according to the target control parameter; the first speed control signal is a pulse width modulation signal;
[0148] a first speed feedback signal receiving module, configured to send the first speed control signal to the fan so as to control the fan based on the first speed control signal, and receive a first speed feedback signal returned by the fan; the first speed feedback signal is a tachometer signal;
[0149] Correspondingly, the manual mode control module 13 includes:
[0150] a second speed control signal output module, used for comparing the manual control parameter with the automatic control parameter, so as to output a second speed control signal according to the manual control parameter based on the comparison result; the second speed control signal is a pulse width modulation signal;
[0151] The second speed feedback signal receiving module is used to send the second speed control signal to the fan so as to control the fan based on the second speed control signal, and receive the second speed feedback signal returned by the fan; the second speed feedback signal is a tachometer signal.
[0152] Furthermore, the present application also discloses an electronic device. Figure 8 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram cannot be considered as any limitation on the scope of use of the present application.
[0153] Figure 8 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the multi-node server fan control method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be a server.
[0154] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0155] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222 and data 223, etc. The data 223 may include various data. The storage method may be temporary storage or permanent storage.
[0156] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the multi-node server fan control method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0157] Furthermore, the embodiment of the present application also discloses a computer-readable storage medium, wherein the computer-readable storage medium mentioned here includes a random access memory (Random Access Memory, RAM), a memory, a read-only memory (Read-Only Memory, ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a magnetic disk or an optical disk, or any other form of storage medium known in the technical field. Wherein, when the computer program is executed by the processor, the aforementioned multi-node server fan control method is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.
[0158] Furthermore, an embodiment of the present application also provides a computer program product, including a computer program / instruction, which implements any one of the above-mentioned multi-node server fan control methods when executed by a processor.
[0159] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0160] The steps of the multi-node server fan control method or algorithm described in the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the technical field.
[0161] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0162] The above is a detailed introduction to a multi-node server fan control method, device, equipment and medium provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A multi-node server fan control method, characterized in that: include: Obtaining a fan control instruction of a multi-node server for a fan, and determining a fan control mode corresponding to the fan control instruction; If the fan control mode is the automatic mode, the respective first fan control parameters sent by each node server are obtained through an arbitration controller pre-set in the fan board, and then a target control parameter is determined based on the first fan control parameter, so as to control the fan by using the target control parameter; If the fan control mode is manual mode, the target node server that has the fan control right is determined and the corresponding manual control parameters are obtained. The automatic control parameters saved in the preset register by the arbitration controller are read through the node controller corresponding to the target node server. Then, the manual control parameters are compared with the automatic control parameters so that the fan can be controlled using the manual control parameters based on the comparison results.
2. The multi-node server fan control method according to claim 1, characterized in that: After obtaining the fan control instruction of the multi-node server to the fan, the method further includes: The fan control instruction is sent to the arbitration controller through an integrated circuit bus protocol; wherein the integrated circuit bus paths between each node server in the multi-node server and the arbitration controller are different, and the arbitration controller distinguishes the multi-node servers through different integrated circuit bus paths; Correspondingly, the obtaining of the respective first fan control parameters sent by each node server through the arbitration controller pre-set in the fan board includes: The first fan control parameter sent by each node server through the respective integrated circuit bus path is obtained through an arbitration controller pre-set in the fan board.
3. The multi-node server fan control method according to claim 1, characterized in that: The obtaining of fan control instructions of the multi-node server to the fan includes: Obtaining fan control instructions initiated by the multi-node servers to the fans through their respective node controllers; Correspondingly, the obtaining of the respective first fan control parameters sent by each node server through the arbitration controller pre-set in the fan board includes: The respective first fan control parameters sent by each node server through the node controller are obtained through the arbitration controller pre-set in the fan board.
4. The multi-node server fan control method according to claim 1, characterized in that: The respective first fan control parameters sent by each node server are fan control parameters determined by the node server according to a preset heat dissipation strategy after the node server reads the corresponding temperature sensor through the respective node controller; wherein, if the fan control mode is the automatic mode, the respective first fan control parameters sent by each node server are obtained by an arbitration controller pre-set in the fan board, and then the target control parameters are determined based on the first fan control parameters, so as to control the fan using the target control parameters, including: If the fan control mode is the automatic mode, obtaining the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board; Based on the first fan control parameter, a preset control algorithm is used to determine a target control parameter so as to control the fan using the target control parameter; the preset control algorithm includes a preset high-performance control algorithm and a preset high-efficiency control algorithm; the preset high-performance control algorithm is used to determine the maximum fan control parameter in the first fan control parameter as the target control parameter, and the preset high-efficiency control algorithm is used to determine the corresponding target fan according to the maximum fan control parameter, and increase the rotation speed of the adjacent fans of the target fan according to a preset ratio to determine the target control parameter.
5. The multi-node server fan control method according to claim 1, characterized in that: If the fan control mode is a manual mode, determining a target node server that has fan control rights and obtaining corresponding manual control parameters, reading automatic control parameters stored in a preset register by the arbitration controller through a node controller corresponding to the target node server, and then comparing the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result, including: If the fan control mode is a manual mode, determining a target node server having fan control rights and other node servers except the target node server; Sending the second fan control parameters corresponding to each of the other node servers to the arbitration controller, so that the arbitration controller determines the automatic control parameters using the second fan control parameters, and saves the automatic control parameters in the preset register; Acquire a manual control parameter corresponding to the target node server, read the automatic control parameter stored in the preset register by the arbitration controller through a node controller corresponding to the target node server, and compare the manual control parameter with the automatic control parameter; If the manual control parameter is less than the automatic control parameter, an alarm message is generated, and then the manual control parameter is sent to the arbitration controller so as to control the fan using the manual control parameter; If the manual control parameter is not less than the automatic control parameter, the step of sending the manual control parameter to the arbitration controller is directly triggered.
6. The multi-node server fan control method according to claim 1, characterized in that: Also includes: Monitoring a current node server in the multi-node servers that switches the automatic mode to the manual mode; When the fan control right is in the arbitration controller, the fan control right is transferred to the current node server so that the current node server switches the automatic mode to the manual mode, and determines the current node server as the target node server; When the current node server switches the manual mode to the automatic mode, the fan control right of the current node server is released, and then the step of monitoring the current node server that switches the automatic mode to the manual mode in the multi-node server is re-executed.
7. The multi-node server fan control method according to any one of claims 1 to 6, characterized in that: The determining a target control parameter based on the first fan control parameter so as to control the fan using the target control parameter includes: determining a target control parameter based on the first fan control parameter, and outputting a first speed control signal according to the target control parameter; the first speed control signal is a pulse width modulation signal; Sending the first speed control signal to the fan so as to control the fan based on the first speed control signal, and receiving a first speed feedback signal returned by the fan; the first speed feedback signal is a tachometer signal; Accordingly, the comparing the manual control parameter with the automatic control parameter so as to control the fan using the manual control parameter based on the comparison result includes: Comparing the manual control parameter with the automatic control parameter, so as to output a second speed control signal according to the manual control parameter based on the comparison result; the second speed control signal is a pulse width modulation signal; The second speed control signal is sent to the fan so as to control the fan based on the second speed control signal, and a second speed feedback signal returned by the fan is received; the second speed feedback signal is a tachometer signal.
8. A multi-node server fan control device, characterized in that: include: An instruction acquisition module, used to acquire a fan control instruction of a multi-node server for a fan, and determine a fan control mode corresponding to the fan control instruction; an automatic mode control module, configured to, if the fan control mode is the automatic mode, obtain the respective first fan control parameters sent by each node server through an arbitration controller pre-set in the fan board, and then determine a target control parameter based on the first fan control parameter, so as to control the fan using the target control parameter; A manual mode control module is used to determine the target node server that has the fan control right and obtain the corresponding manual control parameters if the fan control mode is the manual mode, read the automatic control parameters stored in the preset register by the arbitration controller through the node controller corresponding to the target node server, and then compare the manual control parameters with the automatic control parameters, so as to control the fan using the manual control parameters based on the comparison result.
9. An electronic device, characterized in that: The electronic device includes a processor and a memory; wherein the memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the multi-node server fan control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein when the computer program is executed by the processor, the multi-node server fan control method as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Processing system and access control method of processing system
CN121255687A
