Server control method and device based on intelligent PDU, equipment and storage medium
By connecting the intelligent PDU to the CPLD of the server motherboard via a serial interface, real-time monitoring and adjustment of server power consumption can be achieved, solving the problem of intelligent PDU function failure under network environment paralysis and ensuring stable server operation.
Patent Information
- Application Number
- CN202211361942.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-02
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2042-11-02
AI Technical Summary
When the network environment is paralyzed, the intelligent PDU cannot perform its intelligent functions and cannot monitor and control the power consumption of the server and the power-on/off status of the cluster.
The intelligent PDU is connected to the CPLD of the server motherboard via a serial interface. The power consumption acquisition module and preset power consumption value are set to realize real-time monitoring and adjustment of server power consumption, including frequency reduction, overclocking, and power-on/off control. Safety management is carried out through solid-state relays and temperature sensors.
Even when the network environment is paralyzed, the intelligent PDU can still achieve intelligent power consumption management and power control of the server, ensuring the stable operation of the server.
Smart Images

Figure CN115756142B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of terminals, in particular to a server control method and device based on an intelligent PDU, an electronic device and a storage medium. BACKGROUND
[0002] Nowadays, human society is rapidly entering a new historical stage marked by digital productivity. The current computing power index is an index for evaluating the mutual promotion and common development of computing power, economy and digital economy. The basis of computing power cannot be separated from server clusters, and the power supply technology of server clusters cannot be separated from the services of intelligent PDU (Power Distribution Unit). Intelligent PDU is the most common in the construction of server clusters and is also a particularly important link in the construction of server clusters.
[0003] Specifically, intelligent PDU is commonly used in large computer rooms and communication hardware fields, which can not only improve the power safety factor of network products, but also meet the requirements of important equipment for power input. At present, with the continuous development of the Internet, higher requirements have been put forward for intelligent PDU.
[0004] However, most of the intelligent PDU on the market currently relies on network environment to monitor the power consumption state of the server, control the power-on and power-off state of the server cluster and other intelligent functions through network services. Therefore, when the network environment is in a paralyzed state, the intelligent PDU cannot realize its own intelligent functions. SUMMARY
[0005] The embodiments of the present application provide a server control method based on an intelligent PDU to solve the problem that the intelligent PDU cannot realize its own intelligent functions when the network environment is in a paralyzed state.
[0006] Correspondingly, the embodiments of the present application also provide a server control device based on an intelligent PDU, an electronic device and a storage medium to ensure the implementation and application of the above method.
[0007] In order to solve the above problem, the embodiments of the present application disclose a server control method based on an intelligent PDU, the intelligent PDU is connected with a complex programmable logic device (CPLD) of a server mainboard through a serial port interface, a preset power consumption value for the server is written in the intelligent PDU, a power consumption acquisition module is arranged in the server, and the method comprises the following steps:
[0008] receiving a first real-time power consumption value of the server collected by the power consumption acquisition module;
[0009] when the preset power consumption value is detected to be lower than the first real-time power consumption value, sending a response of reducing power consumption of the server to the CPLD through the serial interface to control the server to perform frequency reduction operation, and continuing to receive a second real-time power consumption value of the server collected by the power consumption collection module in the process of the server performing frequency reduction operation, and if the preset power consumption value is equal to the second real-time power consumption value, sending a response of stopping reducing power consumption of the server to the CPLD through the serial interface to control the server to stop performing frequency reduction operation;
[0010] when the preset power consumption value is detected to be higher than the first real-time power consumption value, sending a response of increasing power consumption of the server to the CPLD through the serial interface to control the server to perform frequency increase operation, and continuing to receive a third real-time power consumption value of the server collected by the power consumption collection module in the process of the server performing frequency increase operation, and if the preset power consumption value is equal to the third real-time power consumption value, sending a response of stopping increasing power consumption of the server to the CPLD through the serial interface to control the server to stop performing frequency increase operation.
[0011] Optionally, the intelligent PDU is provided with a plurality of solid-state relays for realizing multi-channel power input and output, and a fuse with a corresponding threshold is arranged at a power input end of each solid-state relay.
[0012] Optionally, the power consumption collection module comprises an AC meter head arranged at a power output end of the solid-state relay.
[0013] Optionally, the device further comprises a power-off processing module for:
[0014] when the server is powered off, the intelligent PDU sends a power-off response to the CPLD to control a power supply chip of the server to disconnect direct current of the server, and receives a power-off state of the power supply chip feeding the direct current, which is fed back by the CPLD.
[0015] Optionally, the device further comprises a power-on processing module for:
[0016] when the server is powered on, the intelligent PDU sends a power-on response to the CPLD to control a power supply chip of the server to connect direct current of the server, and receives a power-on state of the power supply chip feeding the direct current, which is fed back by the CPLD.
[0017] Optionally, the intelligent PDU is provided with a speed-adjustable fan, an air inlet and an air outlet are arranged on a case of the intelligent PDU, and a temperature sensor is arranged at the air inlet and the air outlet, and the device further comprises a fan speed adjustment module for:
[0018] receiving the real-time temperature sent by the temperature sensor;
[0019] adjusting the fan rotating speed of the rotating speed adjusting fan according to the real-time temperature.
[0020] Optionally, the main control RAM board of the intelligent PDU is provided with a cooling fin for wall-mounted cooling.
[0021] The embodiment of the application further discloses a server control device based on an intelligent PDU, wherein the intelligent PDU is connected with a complex programmable logic device (CPLD) of a server mainboard through a serial port interface, a preset power consumption value of the server is written in the intelligent PDU, and a power consumption acquisition module is arranged in the server, and the device comprises:
[0022] a real-time power consumption value receiving module, configured to receive a first real-time power consumption value of the server acquired by the power consumption acquisition module;
[0023] a frequency reduction operation module, configured to, when detecting that the preset power consumption value is lower than the first real-time power consumption value, send a response of reducing power consumption of the server to the CPLD through the serial port interface, so as to control the server to perform a frequency reduction operation, and continue to receive a second real-time power consumption value of the server acquired by the power consumption acquisition module in the process of the frequency reduction operation of the server, and if the preset power consumption value is equal to the second real-time power consumption value, send a response of stopping reducing power consumption of the server to the CPLD through the serial port interface, so as to control the server to stop performing the frequency reduction operation;
[0024] a frequency increase operation module, configured to, when detecting that the preset power consumption value is higher than the first real-time power consumption value, send a response of increasing power consumption of the server to the CPLD through the serial port interface, so as to control the server to perform a frequency increase operation, and continue to receive a third real-time power consumption value of the server acquired by the power consumption acquisition module in the process of the frequency increase operation of the server, and if the preset power consumption value is equal to the third real-time power consumption value, send a response of stopping increasing power consumption of the server to the CPLD through the serial port interface, so as to control the server to stop performing the frequency increase operation.
[0025] Optionally, the intelligent PDU is provided with a plurality of solid-state relays for realizing multi-path power input and output, and the power input end of each solid-state relay is provided with an insurance tube with a corresponding threshold value.
[0026] Optionally, the power consumption acquisition module comprises an AC meter head arranged at the power output end of the solid-state relay.
[0027] Optionally, the method further comprises:
[0028] When the server is powered off, the intelligent PDU sends a power-off response to the CPLD to control the power chip of the server to disconnect the direct current of the server, and receives the power-off state of the CPLD feedback that the power chip powers off the direct current.
[0029] Optionally, the method further comprises:
[0030] When the server is powered on, the intelligent PDU sends a power-on response to the CPLD to control the power chip of the server to connect the direct current of the server, and receives the power-on state of the CPLD feedback that the power chip powers on the direct current.
[0031] Optionally, the intelligent PDU is provided with a speed-regulating fan, and the cabinet of the intelligent PDU is provided with an air inlet and an air outlet, and the air inlet and the air outlet are provided with temperature sensors, and the method further comprises:
[0032] Receiving the real-time temperature sent by the temperature sensor;
[0033] Adjusting the fan speed of the speed-regulating fan according to the real-time temperature.
[0034] Optionally, the main control RAM board of the intelligent PDU is provided with a cooling fin for wall-mounted cooling.
[0035] The embodiment of the application further discloses an electronic device, including: a processor; and a memory having executable code stored thereon, when the executable code is executed, the processor executes the server control method based on the intelligent PDU as one or more of the embodiments of the application.
[0036] The embodiment of the application further discloses one or more machine-readable media having executable code stored thereon, when the executable code is executed, the processor executes the server control method based on the intelligent PDU as one or more of the embodiments of the application.
[0037] Compared with the prior art, the embodiment of the application has the following advantages:
[0038] In the embodiment of the present application, the intelligent PDU is connected with the complex programmable logic device (CPLD) of the server mainboard through a serial interface. When it is necessary to adjust the power consumption of the server, a preset power consumption value for the server is written in the intelligent PDU, and a power consumption acquisition module is arranged in the server. At this time, the intelligent PDU receives a first real-time power consumption value of the server acquired by the power consumption acquisition module, and then, when it is detected that the preset power consumption value is lower than the first real-time power consumption value, a response of reducing the power consumption of the server is sent to the CPLD through the serial interface to control the server to perform a frequency reduction operation, and a second real-time power consumption value of the server acquired by the power consumption acquisition module is continuously received in the process of the frequency reduction operation of the server. If the preset power consumption value is equal to the second real-time power consumption value, a response of stopping reducing the power consumption of the server is sent to the CPLD through the serial interface to control the server to stop performing the frequency reduction operation. When it is detected that the preset power consumption value is higher than the first real-time power consumption value, a response of increasing the power consumption of the server is sent to the CPLD through the serial interface to control the server to perform a frequency increase operation, and a third real-time power consumption value of the server acquired by the power consumption acquisition module is continuously received in the process of the frequency increase operation of the server. If the preset power consumption value is equal to the third real-time power consumption value, a response of stopping increasing the power consumption of the server is sent to the CPLD through the serial interface to control the server to stop performing the frequency increase operation. The intelligent PDU of the embodiment of the present application is connected with the CPLD of the server mainboard through the serial interface. Therefore, even when the network environment is in a paralyzed state, the intelligent PDU can still realize its own intelligent functions, such as monitoring the power consumption state of the server, controlling the power-on and power-off state of the server cluster, and the like. BRIEF DESCRIPTION OF DRAWINGS
[0039] Figure 1 is a step flow chart of an embodiment of a server control method based on an intelligent PDU of the present application;
[0040] Figure 2 is an environment schematic diagram of a server control based on an intelligent PDU of the present application;
[0041] Figure 3 is a flow schematic diagram of a server control based on an intelligent PDU of the present application;
[0042] Figure 4 is a structural block diagram of an embodiment of a server control device based on an intelligent PDU of the present application;
[0043] Figure 5 is a structural schematic diagram of a device provided by an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the above-mentioned objects, features and advantages of the present application more apparent and easy to understand, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0045] Referring to Figure 1 is a step flow chart of an embodiment of a server control method based on an intelligent PDU, the intelligent PDU is connected with a complex programmable logic device (CPLD) of a server mainboard through a serial interface, a preset power consumption value for the server is written in the intelligent PDU, and a power consumption acquisition module is arranged in the server.
[0046] With the development and wide application of computer technology, more and more application systems relying on computer technology have entered the work and life of human beings. At present, the performance of servers has become better and better, but in order to obtain higher performance, multiple servers need to be used to achieve it. The multiple servers can form a computer system, and the computer system formed by the multiple servers is also commonly referred to as a server cluster, so that a group of integrated computer software and / or hardware can be connected to cooperate to complete the computing work. The server cluster is usually used to improve the computing speed and / or reliability of a single server. In general, the power consumption of the server cluster is very large, and therefore the power consumption of the server cluster is usually controlled by an intelligent PDU.
[0047] Among them, the intelligent PDU refers to a power distribution socket for a cabinet. Specifically, the intelligent PDU is a product designed to provide power distribution for cabinet-mounted electrical equipment (such as servers, etc.), has different functions, installation methods, and multiple series specifications with different combinations of plug positions, and can provide suitable cabinet power distribution solutions for different power supply environments. The application of the intelligent PDU can make the power distribution of the servers in the cabinet neat, safe, reliable, professional, and beautiful, and the intelligent PDU can also make the maintenance of the power supply of the servers in the cabinet more convenient and reliable.
[0048] The embodiments of the present application can be applied to an application environment as shown in Figure 2 The server can be a stand-alone server or a server cluster composed of multiple servers. Specifically, the intelligent PDU is connected with the CPLD of the server mainboard through a serial interface, so that the intelligent PDU and the CPLD of the server mainboard can perform corresponding logical conversion and communication through the serial interface, and realize intelligent PDU monitoring power consumption, adjusting power consumption, and realizing server intelligent power-on and power-off and other intelligent functions.
[0049] It should be noted that, since the smart PDU and the CPLD communicate based on a serial interface, even if the network environment is in a paralyzed state, the smart PDU can still be normally used, and the smart function of the smart PDU will not be interrupted by the network environment.
[0050] Of course, the smart PDU can communicate with the CPLD of the server mainboard through a serial interface, or communicate with the CPLD of the server mainboard through a network. Alternatively, the smart PDU can be set to communicate with the CPLD of the server mainboard through both the serial interface and the network, so that even if the network environment is in a paralyzed state, the smart PDU can still communicate with the CPLD of the server mainboard through the serial interface.
[0051] In the embodiment of the application, a voltage and current and power consumption collection module (referred to as a power consumption collection module) is designed for the smart PDU. The power consumption collection module can include a small AC meter head, which has the functions of collecting real-time voltage, real-time current and real-time power consumption of the server, and can feed back the real-time voltage, real-time current and real-time power consumption and other data to the main control RAM (Random Access Memory) board of the smart PDU, so that the main control RAM board can monitor the collected data in real time.
[0052] Specifically, the server control method based on the smart PDU can include the following steps:
[0053] Step 101, receiving a first real-time power consumption value of the server collected by the power consumption collection module.
[0054] In the embodiment of the application, the power consumption collection module can collect the first real-time power consumption value of the server in real time, and feed back the first real-time power consumption value to the main control RAM board of the smart PDU, so that the main control RAM board can determine whether the power consumption of the server needs to be adjusted according to the first real-time power consumption value. When the power consumption needs to be adjusted, the preset power consumption value to be adjusted is written into the main control RAM board of the smart PDU, and the main control RAM board compares and judges the real-time power consumption value collected by the AC meter head at present with the preset power consumption value after receiving the preset power consumption value, to control the server to adjust its power consumption, for example, to increase or decrease the power consumption of the server.
[0055] Step 102, when detecting that the preset power consumption value is lower than the first real-time power consumption value, sending a response of reducing power consumption of the server to the CPLD through the serial interface to control the server to perform frequency reduction operation, and continuing to receive the second real-time power consumption value of the server collected by the power consumption collection module in the process of the server performing frequency reduction operation, if the preset power consumption value is equal to the second real-time power consumption value, sending a response of stopping reducing power consumption of the server to the CPLD through the serial interface to control the server to stop performing frequency reduction operation.
[0056] Specifically, the server includes an ME chip (Intel Management Engine) and a CPU (Central Processing Unit), wherein the ME chip is an embedded microcontroller located in a PCH (Platform Controller Hub) chipset, which runs management firmware by using resources invisible to the server to provide specific management functions.
[0057] Specifically, when the preset power consumption value is lower than the first real-time power consumption value collected by the AC meter head, the main control RAM board of the intelligent PDU communicates with the CPLD chip of the mainboard and informs the CPLD that the response of reducing the power consumption of the whole machine is needed. After the CPLD receives the response of reducing the power consumption of the whole machine, the CPLD communicates with the ME chip of the mainboard through the bus mode, the ME chip communicates, informs the CPU that the frequency reduction operation is needed, the CPU receives the information and performs the active dynamic frequency reduction operation, and the CPU peripheral circuit performs the corresponding dynamic adjustment of voltage and current.
[0058] It should be noted that while the server is performing dynamic adjustment of the power consumption of the whole machine, the AC meter head will continue to collect the second real-time power consumption value of the server, and the main control RAM board compares the second real-time power consumption value collected by the AC meter head in real time with the preset power consumption value, so as to realize the negative feedback of power consumption adjustment. Specifically, when the main control RAM board monitors that the second real-time power consumption value collected by the AC meter head is the same as the preset power consumption value, it will feedback the communication of stopping power consumption reduction to the CPLD, the CPLD receives it and communicates with the mainboard ME chip, the ME chip receives the information and notifies the CPU, so that the CPU stops the response of frequency reduction operation and the voltage and current of the CPU peripheral circuit stop dynamic adjustment.
[0059] Step 103, when detecting that the preset power consumption value is higher than the first real-time power consumption value, sending a response of increasing power consumption of the server to the CPLD through the serial interface to control the server to perform the overclocking operation, and continuing to receive the third real-time power consumption value of the server collected by the power consumption collection module in the process of the server performing the overclocking operation, and if the preset power consumption value is equal to the third real-time power consumption value, sending a response of stopping increasing power consumption of the server to the CPLD through the serial interface to control the server to stop performing the overclocking operation.
[0060] Specifically, when the preset power consumption value is higher than the first real-time power consumption value collected by the AC meter head, the main control RAM board of the intelligent PDU communicates with the CPLD of the mainboard and informs the CPLD that the response of increasing the power consumption of the whole machine is needed. After the CPLD receives the response of increasing the power consumption of the whole machine, the CPLD communicates with the ME chip of the mainboard through the bus mode, the ME chip communicates with the CPU, and informs the CPU that the overclocking operation is needed. After the CPU receives the information, the CPU performs the active dynamic overclocking operation, and the CPU peripheral circuit performs the corresponding dynamic adjustment of voltage and current.
[0061] It should be noted that while the server is performing the dynamic adjustment of the whole machine power consumption, the AC meter head will continue to collect the third real-time power consumption value of the server, and the main control RAM board compares the third real-time power consumption value collected by the AC meter head in real time with the preset power consumption value, so as to realize the negative feedback of power consumption adjustment. Specifically, when the main control RAM board monitors that the third real-time power consumption value collected by the AC meter head is the same as the preset power consumption value, it will feedback the communication of stopping the power consumption increase to the CPLD, and the CPLD receives the response and communicates with the ME chip of the mainboard. The ME chip receives the information and notifies the CPU, so that the CPU stops the response of the overclocking operation and the voltage and current of the CPU peripheral circuit stop the dynamic adjustment.
[0062] Of course, if the preset power consumption value is consistent with the first real-time power consumption value collected by the AC meter head, that is, the preset power consumption value is the same as the first real-time power consumption value collected by the AC meter head, the main control RAM board of the intelligent PDU can not make any response.
[0063] In an optional embodiment of the present application, the intelligent PDU can be provided with a plurality of solid-state relays for realizing multi-path power input and output, and each power input end of the solid-state relays is provided with a corresponding threshold fuse.
[0064] In a specific implementation, as a carrier for power switching, the smart PDU first needs to implement the power switching function. The smart PDU can use a solid-state relay with reliable quality as the power switching. The main control RAM board can control the control end of the solid-state relay through a low-voltage circuit to control the alternating current. The entire smart PDU can preset multiple solid-state relays to realize the function of multiple PDU power input and output. At the same time, in order to prevent overcurrent problems, an appropriate threshold fuse is needed at the power input end of each solid-state relay to ensure safety.
[0065] In an optional embodiment of the present application, the method can further include the following steps:
[0066] When the server is powered off, the smart PDU sends a power-off response to the CPLD to control the power chip of the server to disconnect the direct current of the server, and receives the power-off state of the power chip fed back by the CPLD that the direct current is powered off.
[0067] Specifically, when the server needs to be powered off, the main control RAM board of the smart PDU sends a power-off response to the CPLD. After receiving the response, the CPLD controls the power chip IC (Integrated Circuit Chip) to disconnect the direct current on the mainboard (such as 3.3V, 12V, 5V, etc.) through the logic of the power-off sequence. At the same time, the power chip IC will feed back the power-off state of the direct current to the CPLD, and the CPLD can feed back the power-off state of the direct current to the main control RAM board of the smart PDU. When the direct current of the server is powered off, the power-off process of the server is completed.
[0068] In an optional embodiment of the present application, the method can include the following steps:
[0069] When the server is powered on, the smart PDU sends a power-on response to the CPLD to control the power chip of the server to connect the direct current of the server, and receives the power-on state of the power chip fed back by the CPLD that the direct current is powered on.
[0070] Specifically, when the server needs to be powered on, the main control RAM board of the smart PDU sends a power-on response to the CPLD. After receiving the response, the CPLD controls the power IC to power on the direct current on the mainboard through the logic of the power-on sequence. At the same time, the power chip IC will feed back the power-on state of the direct current to the CPLD, and the CPLD can feed back the power-off state of the direct current to the main control RAM board of the smart PDU. When the direct current of the server is powered on, the power-on process of the server is completed.
[0071] In an optional embodiment of the present application, the intelligent PDU is provided with a speed-adjustable fan, and the cabinet of the intelligent PDU is provided with an air inlet and an air outlet, and the air inlet and the air outlet are provided with temperature sensors, and the method further comprises:
[0072] receiving the real-time temperature sent by the temperature sensors;
[0073] adjusting the fan speed of the speed-adjustable fan according to the real-time temperature.
[0074] When the intelligent PDU is working, the temperature will rise, in order to ensure the normal work of the intelligent PDU, the speed-adjustable fan is arranged on the intelligent PDU. Specifically, the cabinet of the intelligent PDU is provided with an air inlet and an air outlet, and the air inlet and the air outlet are provided with temperature sensors for detecting the real-time temperature of the intelligent PDU in real time and sending it to the intelligent PDU, and the intelligent PDU can adjust the fan speed of the speed-adjustable fan according to the real-time temperature, so as to ensure that the temperature is not too high to cause the intelligent PDU to work abnormally.
[0075] In an optional embodiment of the present application, the main control RAM board of the intelligent PDU is provided with a heat sink for wall-mounted heat dissipation.
[0076] Optionally, in order to further ensure that the temperature of the main control RAM board of the intelligent PDU is not too high, a heat sink can also be arranged on the main control RAM board of the intelligent PDU, so that the main control RAM board can realize wall-mounted heat dissipation.
[0077] As can be seen from the above, the intelligent PDU of the embodiments of the present application is connected with the CPLD of the server mainboard through a serial port interface, so that even when the network environment is in a paralyzed state, the intelligent PDU can still realize its own intelligent functions, such as monitoring the power consumption state of the server, controlling the power-on and power-off state of the server cluster, and the like.
[0078] In order for those skilled in the art to better understand the embodiments of the present application, the following will be described with a complete example.
[0079] The embodiments of the present application design a new intelligent PDU, which is connected with the CPLD of the server mainboard through a serial port interface, so that the intelligent PDU can perform corresponding logical conversion and communication with the CPLD of the server mainboard through serial communication, realize intelligent functions such as monitoring power consumption, adjusting power consumption, power-on, power-off, and the like, so that even when the network environment is in a paralyzed state, the intelligent functions of the intelligent PDU will not be affected.
[0080] Reference Figure 3Fig. 1 is a flow diagram of a server control process based on the intelligent PDU according to the present application. The intelligent PDU is designed in terms of a main control board, heat dissipation, power supply, structure and interface. The design of each part of the intelligent PDU is described in detail below.
[0081] (I) Main control board design
[0082] The main control board is described in terms of four functional modules: PDU power input and output module, voltage, current and power consumption collection module, power consumption adjustment module and control server power on and off module.
[0083] 1. PDU power input and output module
[0084] The intelligent PDU is a carrier for power conversion. The first function to be implemented is power conversion. The intelligent PDU can use a reliable solid-state relay for power conversion. The main control RAM board can control the control end of the solid-state relay through a small voltage circuit to control the alternating current. The intelligent PDU can be pre-set with multiple solid-state relays to achieve the function of multiple PDU power input and output. In order to prevent overcurrent, an appropriate threshold fuse is pre-set at the power input end of each solid-state relay to ensure safety.
[0085] 2. Voltage, current and power consumption collection module
[0086] The voltage, current and power consumption collection module can be pre-set with a small AC meter at the output end of the solid-state relay. The AC meter has the function of collecting real-time voltage, real-time current and real-time power consumption, and feeds back the voltage, current and power consumption to the main control RAM board of the intelligent PDU. The main control RAM board monitors the collected data in real time.
[0087] 3. Power consumption adjustment module
[0088] When the power consumption needs to be adjusted, the pre-set power consumption value to be adjusted is written into the main control RAM board. After the main control RAM board receives the pre-set power consumption value, the main control RAM board compares the real-time power consumption collected by the AC meter with the pre-set power consumption value and makes a judgment.
[0089] When the preset power consumption value is lower than the real-time power consumption value collected by the AC meter, the main control RAM board of the intelligent PDU communicates with the CPLD chip of the main board and informs the CPLD that the response of reducing the power consumption of the whole machine is needed. After the CPLD receives the response of reducing the power consumption of the whole machine, the CPLD communicates with the ME chip of the main board through the bus mode, the ME chip communicates with the CPU, and informs the CPU that the frequency reduction operation is needed. After the CPU receives the information, the CPU performs the active dynamic frequency reduction operation, and the CPU peripheral circuit performs the dynamic adjustment of the voltage and current. In addition, the main control RAM board compares the real-time power consumption value collected in real time with the preset power consumption value, so as to realize the negative feedback of the power consumption adjustment. Specifically, when the main control RAM board monitors that the real-time power consumption value continuously collected by the AC meter is the same as the preset power consumption value, the communication of stopping the power consumption reduction is fed back to the CPLD, the CPLD communicates with the ME chip of the main board after receiving, the ME chip receives the information and informs the CPU, so that the CPU stops the response of the frequency reduction operation and the voltage and current of the CPU peripheral circuit stop the dynamic adjustment.
[0090] When the preset power consumption value is higher than the real-time power consumption value collected by the AC meter, the main control RAM board of the intelligent PDU communicates with the CPLD of the main board and informs the CPLD that the response of increasing the power consumption of the whole machine is needed. After the CPLD receives the response of increasing the power consumption of the whole machine, the CPLD communicates with the ME chip of the main board through the bus mode, the ME chip communicates with the CPU, and informs the CPU that the frequency increase operation is needed. After the CPU receives the information, the CPU performs the active dynamic frequency increase operation and the CPU peripheral circuit performs the dynamic adjustment of the voltage and current. In addition, the main control RAM board compares the real-time power consumption value collected in real time with the preset power consumption value, so as to realize the negative feedback of the power consumption adjustment. Specifically, when the main control RAM board monitors that the real-time power consumption value continuously collected by the AC meter is the same as the preset power consumption value, the communication of stopping the power consumption increase is fed back to the CPLD, the CPLD communicates with the ME chip of the main board after receiving, the ME chip receives the information and informs the CPU, so that the CPU stops the response of the frequency increase operation and the voltage and current of the CPU peripheral circuit stop the dynamic adjustment.
[0091] When the preset power consumption value is the same as the real-time power consumption value collected by the AC meter, the main control RAM board of the intelligent PDU does not respond, and of course the CPLD does not need to respond.
[0092] 4. Power on and off function of control server
[0093] When the server needs to be powered off, the main control RAM board of the intelligent PDU sends a power-off response to the CPLD. After receiving the response, the CPLD controls the power IC to disconnect the DC power on the mainboard (such as 3.3V, 12V, 5V, etc.) through the logic of the power-off sequence. At the same time, the power IC will feed back the power-off state of the DC power to the CPLD, and the CPLD can feed back the power-off state of the DC power to the main control RAM board of the intelligent PDU. When the DC power of the server is powered off, the power-off process of the server is completed.
[0094] When the server needs to be powered on, the main control RAM board of the intelligent PDU sends a power-on response to the CPLD. After receiving the response, the CPLD controls the power IC to power on the DC power on the mainboard through the logic of the power-on sequence. At the same time, the power IC will feed back the power-on state of the DC power to the CPLD, and the CPLD can feed back the power-on state of the DC power to the main control RAM board of the intelligent PDU. When the DC power of the server is powered on, the power-on process of the server is completed.
[0095] (II) Heat dissipation design
[0096] The intelligent PDU can adopt air cooling heat dissipation mode, built-in PWM (Pulse Width Modulation) speed regulation fan, and the case is provided with air inlet and air outlet. Temperature sensors are placed at the air inlet and air outlet, and the main control RAM board adjusts the fan speed according to the real-time temperature sensed by the temperature sensor in real time, so as to adjust the problem of the intelligent PDU. In addition, the main control RAM board can be placed with appropriate heat dissipation fins for wall-mounted heat dissipation.
[0097] (III) Power supply design
[0098] The intelligent PDU adopts AC 220V power supply, and the main control RAM board integrates a power IC to convert the required DC power supply for the mainboard RAM board, including fan power supply, main control RAM board power supply, and peripheral circuit power supply, solid-state relay control circuit, while the DC ground and AC ground are isolated, and the solid-state relay output end is reserved to connect the cabinet.
[0099] (IV) Structure and interface design
[0100] The structural material of the intelligent PDU can use galvanized sheet SECC, which has excellent corrosion resistance and decorative artistic appearance and is also relatively light. In terms of interfaces, the intelligent PDU can have several external USB (Universal Serial Bus) interfaces, a serial port for communication with the CPLD, a VGA (Video Graphics Array) display interface, a PDU power output interface (which can adopt a standard three-core power socket), a PDU power input interface that adopts a large-current universal aviation plug socket interface, a PDU master control RAM board on-off switch button that is prevented from being touched, and a case external meter head.
[0101] In summary, the intelligent PDU of the embodiment of the application realizes centralized management and security management of the server by the intelligent PDU through logical communication between the CPLD serial port interface of the server mainboard and the master control RAM board of the intelligent PDU and logical feedback for power consumption collection, power consumption adjustment, and power-on and power-off control. In addition, the design structure of the intelligent PDU of the embodiment of the application is simple, so it is convenient to use and conducive to popularization and use. Moreover, the intelligent PDU can be designed according to actual conditions to provide better and more intelligent services, and has very high practical value.
[0102] It should be noted that, for the method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the application are not limited to the action sequence described, because according to the embodiments of the application, certain steps can be performed in other sequences or at the same time. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily necessary for the embodiments of the application.
[0103] On the basis of the above-mentioned embodiments, the embodiment further provides a server control device based on an intelligent PDU, which is applied to terminal equipment, a server, and other electronic equipment.
[0104] Referring to Figure 4 , a structural block diagram of an embodiment of a server control device based on an intelligent PDU of the application is shown, the intelligent PDU is connected with a complex programmable logic device CPLD of a server mainboard through a serial port interface, a preset power consumption value for the server is written in the intelligent PDU, a power consumption collection module is arranged in the server, and the device can specifically include the following modules:
[0105] A real-time power consumption value receiving module 401 is configured to receive a first real-time power consumption value of the server collected by the power consumption collection module;
[0106] The frequency reduction operation module 402 is configured to, when detecting that the preset power consumption value is lower than the first real-time power consumption value, send a response of reducing power consumption of the server to the CPLD through the serial interface, so as to control the server to perform frequency reduction operation, and continue to receive the second real-time power consumption value of the server collected by the power consumption collection module in the process of the frequency reduction operation of the server, and if the preset power consumption value is equal to the second real-time power consumption value, send a response of stopping reducing power consumption of the server to the CPLD through the serial interface, so as to control the server to stop performing frequency reduction operation.
[0107] The frequency increase operation module 403 is configured to, when detecting that the preset power consumption value is higher than the first real-time power consumption value, send a response of increasing power consumption of the server to the CPLD through the serial interface, so as to control the server to perform frequency increase operation, and continue to receive the third real-time power consumption value of the server collected by the power consumption collection module in the process of the frequency increase operation of the server, and if the preset power consumption value is equal to the third real-time power consumption value, send a response of stopping increasing power consumption of the server to the CPLD through the serial interface, so as to control the server to stop performing frequency increase operation.
[0108] In an optional embodiment of the present application, the smart PDU is provided with a plurality of solid-state relays for realizing multi-channel power input and output, and the power input end of each solid-state relay is provided with a fuse with a corresponding threshold value.
[0109] In an optional embodiment of the present application, the power consumption collection module can include an AC meter head arranged at the power output end of the solid-state relay.
[0110] In an optional embodiment of the present application, the device can further include a power-off processing module configured to:
[0111] When the server is powered off, the smart PDU sends a power-off response to the CPLD, so as to control the power supply chip of the server to disconnect the direct current of the server, and receive the power-off state of the power supply chip of the CPLD that powers off the direct current.
[0112] In an optional embodiment of the present application, the device can further include a power-on processing module configured to:
[0113] When the server is powered on, the smart PDU sends a power-on response to the CPLD, so as to control the power supply chip of the server to connect the direct current of the server, and receive the power-on state of the power supply chip of the CPLD that powers on the direct current.
[0114] In an optional embodiment of the present application, the intelligent PDU is provided with a rotating speed adjusting fan, an air inlet and an air outlet are arranged on the cabinet of the intelligent PDU, temperature sensors are arranged at the air inlet and the air outlet, the device further comprises a fan rotating speed adjusting module for:
[0115] receiving the real-time temperature sent by the temperature sensors;
[0116] adjusting the fan rotating speed of the rotating speed adjusting fan according to the real-time temperature.
[0117] In an optional embodiment of the present application, the main control RAM board of the intelligent PDU is provided with a heat sink for wall-mounted heat dissipation.
[0118] In the above manner, the intelligent PDU of the present application is connected with the CPLD of the server mainboard through a serial port interface, so that the intelligent PDU can still realize its own intelligent functions, such as monitoring the power consumption state of the server, controlling the power-on and power-off state of the server cluster, and the like, even when the network environment is in a paralyzed state.
[0119] The present application further provides a non-volatile readable storage medium, which stores one or more programs, and when the one or more programs are applied to a device, the device can execute instructions of each method step in the embodiments of the present application.
[0120] The present application provides one or more machine readable media, which store instructions, and when executed by one or more processors, make an electronic device execute a method as described in one or more of the above embodiments. In the embodiments of the present application, the electronic device includes terminal devices, servers (clusters), and other types of devices.
[0121] The embodiments of the present application can be implemented as a device configured in a desired manner using any appropriate hardware, firmware, software, or any combination thereof, which can include terminal devices, servers (clusters), and other electronic devices. Figure 5 An exemplary device 500 that can be used to implement various embodiments described in the present application is schematically shown.
[0122] For one embodiment, Figure 5An example apparatus 500 is shown having one or more processors 502, a control module (chipset) 505 coupled to at least one of the processor(s) 502, a memory 506 coupled to the control module 505, a non-volatile memory (NVM) / storage device 508 coupled to the control module 505, one or more input / output devices 510 coupled to the control module 505, and a network interface 512 coupled to the control module 505.
[0123] The processor(s) 502 can include one or more single core or multicore processors, which can include any combination of general-purpose processors or dedicated processors (such as graphics processors, application processors, baseband processors, etc.). In some embodiments, the apparatus 500 can function as a terminal device, a server (cluster), etc. as described in embodiments of the present application.
[0124] In some embodiments, the apparatus 500 can include one or more computer- readable media (such as the memory 506 or the NVM / storage device 508) having instructions 515 and one or more processors 502 incorporated with the one or more computer-readable media configured to execute the instructions 515 to implement modules to perform the actions described in the present disclosure.
[0125] For one embodiment, the control module 505 can include any suitable interface controllers to provide for any suitable interface to at least one of the processor(s) 502 and / or any suitable device or component in communication with the control module 505.
[0126] The control module 505 can include a memory controller module to provide an interface to the memory 506. The memory controller module can be a hardware module, a software module, and / or a firmware module.
[0127] The memory 506 can be used, for example, to load and store data and / or instructions 515 for the apparatus 500. For one embodiment, the memory 506 can include any suitable volatile memory, such as suitable DRAM. In some embodiments, the memory 506 can include double data rate type four synchronous dynamic random access memory (DDR5 SDRAM).
[0128] For one embodiment, the control module 505 can include one or more input / output controllers to provide an interface to the NVM / storage device 508 and the input / output device(s) 510.
[0129] For example, NVM / storage 508 can be used to store data and / or instructions 515. NVM / storage 508 can include any suitable non-volatile memory (e.g., flash memory) and / or can include any suitable non-volatile storage device(s) (e.g., hard disk drive(s) (HDD(s)), compact disk (CD) drive(s), and / or digital versatile disk (DVD) drive(s)).
[0130] NVM / storage 508 can include storage resources that are physically part of the device on which the apparatus 500 is installed or that is accessed remotely and / or via a network by the device. For example, NVM / storage 508 can be accessed via input / output device(s) 510 through a network.
[0131] Input / output device(s) 510 can provide an interface between apparatus 500 and any suitable device for the receipt, processing, and / or transmission of data between the apparatus 500 and any other suitable device. Input / output device(s) 510 can include communication components, audio components, sensor components, and / or the like. Network interface 512 can provide an interface between apparatus 500 and one or more networks, and the apparatus 500 can communicate wirelessly with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols, such as to access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 5G, 5G, and / or the like, or a combination thereof.
[0132] For one embodiment, at least one of processor(s) 502 can be packaged together with logic of one or more controllers of control module 505 (e.g., a memory controller module). For one embodiment, at least one of processor(s) 502 can be packaged together with logic of one or more controllers of control module 505 to form a system in a package (SiP). For one embodiment, at least one of processor(s) 502 can be integrated on the same die with logic of one or more controllers of control module 505. For one embodiment, at least one of processor(s) 502 can be integrated on the same die with logic of one or more controllers of control module 505 to form a system on a chip (SoC).
[0133] In various embodiments, the apparatus 500 can be, but is not limited to, a server, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.) or the like. In various embodiments, the apparatus 500 can have more or fewer components, and / or different architectures. For example, in some embodiments, the apparatus 500 includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including touch screen displays), non-removable memory ports, multiple antennas, graphics chips, application specific integrated circuits (ASICs), and speakers.
[0134] In the detection device, a master control chip can be used as a processor or a control module, sensor data, position information, etc. are stored in a memory or NVM / storage device, a sensor group can be used as an input / output device, and a communication interface can include a network interface.
[0135] For the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts are referred to the part of the method embodiment.
[0136] Each embodiment in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same and similar parts between the embodiments are referred to each other.
[0137] Embodiments of the present application are described with reference to flowcharts and / or block diagrams according to the method, terminal device (system), and computer program product of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable processor-based server control terminal device processor to generate a machine, so that the instructions executed by the computer or other programmable processor-based server control terminal device processor produce a device for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one block or multiple blocks.
[0138] These computer program instructions can also be stored in a computer readable memory that can guide the computer or other programmable processor-based server control terminal device to work in a specific way, so that the instructions stored in the computer readable memory produce a product including instruction devices, which implement the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one block or multiple blocks.
[0139] These computer program instructions can also be loaded into a computer or other programmable smart PDU based server control terminal device to cause a series of operational steps to be performed on the computer or other programmable terminal device to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal device provide steps for implementing the functions specified in the flowchart block or blocks. Figure 1 one or more flowcharts and / or blocks Figure 1 one or more flowcharts and / or blocks
[0140] Although preferred embodiments of the application have been described, those skilled in the art will recognize that additional modifications and changes can be made thereto without departing from the scope of the present application. Accordingly, the appended claims are intended to cover all such modifications and changes as fall within the scope of the application.
[0141] Finally, it should be noted that the terms "first", "second", and the like, herein do not denote any order, quantity, combination, or arrangement, but rather are used to distinguish one element from another, and do not imply that the elements so distinguished must be in a given order or occur in a given spatial, temporal or causal relationship. Additionally, the terms "comprises", "comprising", or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element.
[0142] The above provides a smart PDU based server control method and device, an electronic device and a storage medium, and the principles and implementation manners of the present application are described by using specific examples. The above description of the embodiments is only used to help understand the method and its core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manner and application range can be changed, and the above description should not be understood as a limitation of the present application.
Claims
1. A method for controlling a server based on an intelligent PDU, the method comprising: The intelligent PDU is connected with a complex programmable logic device (CPLD) of the server mainboard through a serial interface, a preset power consumption value of the server is written in the intelligent PDU, a power consumption acquisition module is arranged in the server, the power consumption acquisition module comprises an AC meter, and the AC meter is used to acquire real-time voltage, real-time current and real-time power consumption value of the server. The intelligent PDU comprises a main control RAM board used to receive and process the real-time power consumption value; and the method comprises: receiving a first real-time power consumption value of the server acquired by the power consumption acquisition module; when the main control RAM board detects that the preset power consumption value is lower than the first real-time power consumption value, sending a response of reducing power consumption of the server to the CPLD through the serial interface to control the server to perform frequency reduction operation, continuously receiving a second real-time power consumption value of the server acquired by the power consumption acquisition module in the process of the frequency reduction operation of the server, and if the preset power consumption value is equal to the second real-time power consumption value, sending a response of stopping reducing power consumption of the server to the CPLD through the serial interface to control the server to stop performing frequency reduction operation; when the main control RAM board detects that the preset power consumption value is higher than the first real-time power consumption value, sending a response of increasing power consumption of the server to the CPLD through the serial interface to control the server to perform frequency increase operation, continuously receiving a third real-time power consumption value of the server acquired by the power consumption acquisition module in the process of the frequency increase operation of the server, and if the preset power consumption value is equal to the third real-time power consumption value, sending a response of stopping increasing power consumption of the server to the CPLD through the serial interface to control the server to stop performing frequency increase operation; wherein the CPLD communicates with an ME chip of the server through a bus, and the CPU is instructed by the ME chip to perform frequency adjustment operation and adjust voltage and current of a peripheral circuit; The intelligent PDU is provided with a plurality of solid-state relays for realizing multi-path power supply input and output, and each power supply input end of the solid-state relays is provided with a fuse tube with a corresponding threshold value.
2. The method of claim 1, wherein, The power consumption acquisition module comprises an AC meter arranged at a power supply output end of the solid-state relay.
3. The method of claim 1, wherein, The method further comprises: when the server is powered off, the intelligent PDU sends a power-off response to the CPLD to control a power supply chip of the server to disconnect direct current of the server, and receives a power-off state of the power supply chip feeding back by the CPLD that the direct current is powered off.
4. The method of claim 1, wherein, The method further comprises: when the server is powered on, the intelligent PDU sends a power-on response to the CPLD to control the power supply chip of the server to connect the direct current of the server, and receives a power-on state of the power supply chip feeding back by the CPLD that the direct current is powered on.
5. The method of claim 1, wherein, The intelligent PDU is provided with a speed-adjusting fan, an air inlet and an air outlet are arranged on a case of the intelligent PDU, temperature sensors are arranged at the air inlet and the air outlet, and the method further comprises: Receiving real-time temperature sent by the temperature sensor; Adjusting fan rotating speed of the rotating speed adjusting fan according to the real-time temperature.
6. The method of claim 5, wherein, The main control RAM board of the intelligent PDU is provided with a cooling fin for wall-mounted cooling.
7. An intelligent PDU based server control apparatus, comprising: The intelligent PDU is connected with a complex programmable logic device (CPLD) of the server mainboard through a serial port interface, and a preset power consumption value of the server is written in the intelligent PDU, and a power consumption acquisition module is arranged in the server, the power consumption acquisition module comprises an AC meter, and the AC meter is used for acquiring real-time voltage, real-time current and real-time power consumption value of the server. The intelligent PDU comprises a main control RAM board for receiving and processing the real-time power consumption value; and the device comprises: A real-time power consumption value receiving module for receiving a first real-time power consumption value of the server acquired by the power consumption acquisition module; A frequency reduction operation module for sending a response of reducing power consumption of the server to the CPLD through the serial port interface to control the server to perform frequency reduction operation when the main control RAM board detects that the preset power consumption value is lower than the first real-time power consumption value, and continuously receiving a second real-time power consumption value of the server acquired by the power consumption acquisition module in the process of frequency reduction operation of the server, and sending a response of stopping reducing power consumption of the server to the CPLD through the serial port interface to control the server to stop frequency reduction operation if the preset power consumption value is equal to the second real-time power consumption value; A frequency increase operation module for sending a response of increasing power consumption of the server to the CPLD through the serial port interface to control the server to perform frequency increase operation when the main control RAM board detects that the preset power consumption value is higher than the first real-time power consumption value, and continuously receiving a third real-time power consumption value of the server acquired by the power consumption acquisition module in the process of frequency increase operation of the server, and sending a response of stopping increasing power consumption of the server to the CPLD through the serial port interface to control the server to stop frequency increase operation if the preset power consumption value is equal to the third real-time power consumption value; The CPLD communicates with the ME chip of the server through a bus, and the CPU is informed by the ME chip to perform frequency adjustment operation and adjust voltage and current of the peripheral circuit; The intelligent PDU is provided with a plurality of solid-state relays for realizing multi-channel power input and output, and each power input end of the solid-state relays is provided with an insurance tube with a corresponding threshold value.
8. An electronic device, comprising: Comprise: A processor; And A memory having executable code stored thereon, when the executable code is executed, the processor executes the server control method based on the intelligent PDU as claimed in any one of claims 1-6.
9. One or more machine readable media having executable code stored thereon, when the executable code is executed, the processor executes the server control method based on the intelligent PDU as claimed in any one of claims 1-6.
Citation Information
Patent Citations
Intelligent power distribution method and system and computer equipment
CN114301058A