Server power supply information query method and device, storage medium and electronic equipment
By deploying synchronous power supply components and controllers in the server, efficient query of all power supply power supplies is achieved, solving the problems of low efficiency of power supply information query and long management in the existing technology, and improving operation and maintenance efficiency.
Patent Information
- Application Number
- CN202411728832.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2044-11-28
AI Technical Summary
In the server, when power management of multiple powershelfs, the existing technology leads to low efficiency in searching power information, making it difficult for operation and maintenance personnel to monitor multiple powershelf at the same time, which may lead to omission of alarm information, and the number of PMC management PSUs will cause time-consuming management long.
By deploying the first power supply component and the second power supply component in the server, allowing them to synchronize the operation information of the power supply power supply with each other, the target controller receives query requests, extracts and outputs the operation information of the target and reference power supply power supply, and realizes any controller The power status of all power supply components can be checked.
It improves the efficiency of server power information query, ensures that operation and maintenance personnel can instantly monitor the status of all power supply components, avoid omission of alarm information, and reduces the time-consuming process of PMC managing PSUs.
Smart Images

Figure CN119200800A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of server technology, and in particular to a method and device for querying server power information, a storage medium, and an electronic device. Background Art
[0002] Since the entire cabinet can be flexibly matched with power supply loads, more than one powershelf may be installed in the cabinet. When operating and maintaining two powershelves at the same time, the management network ports of both powershelves need to be plugged into the switch at the same time. From the perspective of management software, it is not convenient to log in to two BMC WEB (World Wide Web) interfaces, and each WEB page can only read half of the PSU information of the entire cabinet and cannot be fully displayed. Two BMC WEB pages are required to query all PSU information. If an alarm occurs in a PSU under a powershelf, if the operation and maintenance personnel are paying attention to the information of another powershelf on the WEB at this time, the PSU alarm may be missed.
[0003] If powershelf1 and powershelf2 are simply interconnected, and only the PMC in one powershelf is used to manage all the PSUs in both powershelves, then the PMC will have to manage too many PSUs, and the number of PSUs to be managed will double. Since the BMC needs to read all the registers inside each PSU when it is working, it takes a certain amount of time, and the polling time is long. Therefore, using the PMC in one powershelf to manage the PSUs of all powershelves takes too long, which greatly affects efficiency. Summary of the invention
[0004] The embodiments of the present application provide a method and device for querying server power information, a storage medium, and an electronic device, so as to at least solve the problem of low efficiency in querying server power information in the related art.
[0005] According to an embodiment of the present application, a method for querying server power supply information is provided, wherein a first power supply component and a second power supply component are deployed in the server, the first power supply component includes a first controller and a first power supply, the second power supply component includes a second controller and a second power supply, the first power supply component and the second power supply component are configured to allow operation information of the power supplies generated by mutual synchronization, the operation information is used to detect the operation status of the corresponding power supplies, and the method is applied to a target controller in the first controller and the second controller, the method includes: receiving a target query request, wherein the target query request is used to request to query the operation information of the power supplies deployed on the server; responding to the target query request, extracting target operation information of the target power supply in the target power supply component collected by the target controller, and extracting reference operation information of the reference power supply synchronized to the target controller, wherein the reference controller is a controller other than the target controller in the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; outputting the target operation information and the reference operation information.
[0006] In an exemplary embodiment, before extracting target operation information of the target power supply in the target power supply component collected by the target controller, and extracting reference operation information of the reference power supply synchronized to the target controller, the method also includes: collecting and storing the target operation information, and detecting the reference operation status of the reference controller, wherein the reference operation status is used to indicate the operation status of the reference controller; when the reference operation status is used to indicate that the reference controller is operating normally, obtaining and storing reference operation information synchronized from the reference controller to the target controller; when the reference operation status is used to indicate that the reference controller is operating abnormally, collecting and storing reference operation information from the reference power supply.
[0007] In an exemplary embodiment, a detection pin is deployed on the target controller, and the detection pin is connected to a reference controller to detect a reference operating state of the reference controller, including: detecting a heartbeat signal sent by the reference controller from data received by the detection pin to obtain a detection result, wherein the reference controller is configured to send a heartbeat signal to the detection pin according to a target period; when the detection result indicates that a heartbeat signal is detected in the data received from the detection pin, determining that the reference operating state indicates that the reference controller is operating normally; when the detection result indicates that a heartbeat signal is not detected in the data received from the detection pin within a target duration, determining that the reference operating state indicates that the reference controller is operating abnormally.
[0008] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a first switch is deployed in the reference power supply component corresponding to the reference power supply, the first bus port is connected to the first switch, and the first switch is also configured to allow connection to the second bus port, the second bus port is connected to the reference power supply, and when the reference operation state is used to indicate abnormal operation of the reference controller, reference operation information is collected and stored from the reference power supply, including: switching the bus link to a management link connection with the reference controller through the first switch, wherein the bus link includes a link between the first switch and the first bus port, and the management link includes a link between the first switch and the second bus port; and collecting the reference operation information through the connected bus link and management link.
[0009] In an exemplary embodiment, switching a bus link to a management link connection with a reference controller via a first switch includes: generating a target switching instruction, wherein the target switching instruction is used to instruct switching the bus link to a management link connection; and sending the target switching instruction to the first switch, wherein the first switch is used to execute the target switching instruction.
[0010] In an exemplary embodiment, a first register is deployed in a reference power supply, the first register is connected to a second bus port, and operation information of the reference power supply is stored in the first register. The reference operation information is collected through a connected bus link and a management link, including: extracting the reference operation information from the first register through a target transmission link in a polling manner, wherein the target transmission link includes a connected bus link and a management link, and the reference operation information includes voltage information of the reference power supply, current information of the reference power supply, power consumption information of the reference power supply, and temperature information of the reference power supply.
[0011] In an exemplary embodiment, a target data interface is deployed on the target controller, and the target data interface is connected to a reference controller. When the reference operating state is used to indicate that the reference controller is operating normally, reference operating information synchronized from the reference controller to the target controller is obtained and stored, including: detecting the reference transmission state of the reference controller; when the reference transmission state is used to indicate that the reference controller allows receiving data transmitted by the target controller, transmitting the collected target operating information to the reference controller through the target data interface; when the target operating information is transmitted to the reference controller through the target data interface, receiving the reference operating information transmitted by the reference controller through the target data interface, and storing the reference operating information.
[0012] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a second switch and a second register are deployed in a reference power supply component corresponding to the reference power supply, the second switch is configured to allow connection with the second register, the second switch is configured to allow connection with the second bus port, the second switch is connected to the first bus port, the second register is used to record a state parameter, the value of the state parameter is used to indicate whether the reference controller is allowed to receive data transmitted by the target controller, and the reference transmission state of the reference controller is detected, including: switching the bus link to connect with the second register through the second switch, wherein the bus link includes a link between the first switch and the first bus port; reading a candidate value of the state parameter recorded in the second register through the second switch; when the candidate value is equal to the reference value, determining the reference transmission state to indicate that the reference controller is allowed to receive data transmitted by the target controller; when the candidate value is not equal to the reference value, determining the reference transmission state to indicate that the reference controller is not allowed to receive data transmitted by the target controller.
[0013] In an exemplary embodiment, after detecting the reference transmission status of the reference controller, the method further includes: when the reference transmission status is used to indicate that the reference controller is not allowed to receive data transmitted by the target controller, continuing to detect the reference transmission status; when the reference transmission status is converted from indicating that the reference controller is not allowed to receive data transmitted by the target controller to indicating that the reference controller is allowed to receive data transmitted by the target controller, transmitting the collected target operation information to the reference controller through the target data interface.
[0014] In an exemplary embodiment, detecting a reference transmission state of a reference controller includes: starting to detect the reference transmission state of the reference controller after collecting and storing target operating information; or, detecting the reference transmission state of the reference controller when starting to collect updated operating information of the target power supply, wherein the updated operating information is operating information of the next target power supply collected by the target controller after the target operating information.
[0015] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, and a third switch and a third register are deployed in a reference power supply component corresponding to the reference power supply. When the reference operating state is used to indicate that the reference controller is operating normally, the bus link is also switched to be connected to the third register through the third switch. The bus link includes a link between the first switch and the first bus port. The third register is used to record transmission parameters. The value of the transmission parameter is used to indicate whether the target controller has completed the transmission of target operating information through the target data interface. After the collected target operating information is transmitted to the reference controller through the target data interface, the method also includes: detecting a target transmission state of the target operating information; when the target transmission state is used to indicate that the target controller has completed the transmission of the target operating information through the target data interface, adjusting the value of the transmission parameter recorded in the third register to the target value through the bus link.
[0016] According to another embodiment of the present application, a device for querying power supply information of a server is provided, wherein a first power supply component and a second power supply component are deployed in the server, the first power supply component includes a first controller and a first power supply, the second power supply component includes a second controller and a second power supply, the first power supply component and the second power supply component are configured to allow operation information of the power supplies generated by mutual synchronization, the operation information is used to detect the operation status of the corresponding power supplies, the device is applied to a target controller in the first controller and the second controller, the device includes: a receiving module, used to receive a target query request, wherein the target query request is used to request to query the operation information of the power supply deployed on the server; an extraction module, used to respond to the target query request, extract the target operation information of the target power supply in the target power supply component collected by the target controller, and extract the reference operation information of the reference power supply synchronized to the target controller, wherein the reference controller is a controller other than the target controller in the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; an output module, used to output the target operation information and the reference operation information.
[0017] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0018] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0019] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0020] Through this application, the operation information of the power supply generated by each power supply component in the server is allowed to be synchronized with each other. In this way, the operation and maintenance personnel can query the operation information of the power supply in all power supply components on the server through any controller. Therefore, the problem of low query efficiency of server power supply information is solved, thereby achieving the technical effect of improving the query efficiency of server power supply information. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 It is a hardware structure block diagram of a server device according to a method for querying server power information in an embodiment of the present application;
[0022] Figure 2 is a flow chart of a method for querying server power information according to an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of an optional power supply component in a server according to an embodiment of the present application;
[0024] Figure 4 This is a schematic diagram of an optional active / standby switchover and takeover when a BMC fails according to an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of optional dual powershelf synchronization information according to an embodiment of the present application;
[0026] Figure 6 It is a structural block diagram of a device for querying server power information according to an embodiment of the present application. DETAILED DESCRIPTION
[0027] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0029] First, the terms involved in the embodiments of the present application are explained as follows:
[0030] powershelf: power supply module;
[0031] BMC: Baseboard Management Controller, baseboard management controller;
[0032] I2C: Inter-Integrated Circuit, two-wire serial bus;
[0033] GPIO: General Purpose Input / Output, general input and output;
[0034] PSU: Power Supply Unit, power supply unit.
[0035] Whole cabinet server: Usually, a series of components such as server nodes, switches, power supply modules, etc. are packaged as a whole for unified transportation and delivery. At the beginning of the design, the entire cabinet is considered as a whole, and the power supply, heat dissipation and other architectures are designed in a unified manner. In the whole cabinet server, a centralized power supply method is generally adopted, that is, a power supply module (hereinafter referred to as powershelf) is placed in the whole mechanism. The powershelf is equipped with a PSU power supply, an AC (Alternating Current) input interface at the rear, and an interface for providing DC (Direct Current) power supply for the entire cabinet. The powershelf transmits DC power through a vertical copper busbar on the rear side of the chassis to all general servers, switches, etc. connected to it in the entire cabinet, realizing centralized power supply.
[0036] In order to reduce the types of materials and achieve modularization, the same cabinet can be equipped with a relatively low-power general-purpose computing server or a relatively high-power GPU server. In order to achieve this flexible combination, the corresponding power supply design is also different. POWERSHELF can choose low power supply capacity (only one powershelf 1 is installed) or high power supply capacity (powershelf 1 and 2 are installed at the same time) according to the type of server selected, that is, different power consumption. When the cabinet needs to support high-power power supply, use 2 powershelfs, each powershelf provides half of the power of the entire cabinet, and the two powershelfs together provide the power required for the entire cabinet.
[0037] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a server device according to a method for querying server power information according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the above-mentioned server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0038] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as a computer program corresponding to a method for querying server power information in an embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0039] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0040] In this embodiment, a method for querying server power supply information is provided. A first power supply component and a second power supply component are deployed in the server. The first power supply component includes a first controller and a first power supply. The second power supply component includes a second controller and a second power supply. The first power supply component and the second power supply component are configured to allow operation information of the power supply generated by mutual synchronization. The operation information is used to detect the operation status of the corresponding power supply. The method is applied to a target controller in the first controller and the second controller. Figure 2is a flow chart of a method for querying server power information according to an embodiment of the present application. Figure 2 As shown, the process includes the following steps:
[0041] Step S202, receiving a target query request, wherein the target query request is used to request to query the operation information of the power supply deployed on the server;
[0042] Step S204, in response to the target query request, extracting the target operation information of the target power supply in the target power supply component collected by the target controller, and extracting the reference operation information of the reference power supply synchronized to the target controller, wherein the reference controller is a controller other than the target controller in the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller;
[0043] Step S206, outputting target operation information and reference operation information.
[0044] Through the above steps, the operation information of the power supply generated by each power supply component in the server is allowed to be synchronized with each other. In this way, the operation and maintenance personnel can query the operation information of the power supply in all power supply components on the server through any controller. Therefore, the problem of low query efficiency of server power supply information is solved, thereby achieving the technical effect of improving the query efficiency of server power supply information.
[0045] In the technical solution provided in the above step S202, the server may be but is not limited to being deployed with a first power supply component and a second power supply component, and the first power supply component and the second power supply component may be but is not limited to evenly providing the required power resources for the server.
[0046] Optionally, in this embodiment, the power supply component may include, but is not limited to, a controller and a power supply. Figure 3 is a schematic diagram of an optional power supply component in a server according to an embodiment of the present application, such as Figure 3 As shown, it can be but not limited to the first power supply component including powershelf A, the second power supply component including powershelf B, the first controller including BMCA, the second controller including BMC B, and it can be but not limited to the example that multiple GPU (Graphics Processing Unit, Graphics Processing Unit) servers are deployed in the whole cabinet server. Powershelf A and powershelf B can, but not limited to, jointly provide the power required by the entire cabinet. For example, each powershelf can, but not limited to, provide half of the power resources of the entire cabinet.
[0047] The PMC in each powershelf may be, but is not limited to, deployed with a BMC chip. For example, BMC A is deployed in powershelf A, and BMC B is deployed in powershelf B. The BMC deployed on the PMC in each powershelf may be, but is not limited to, used to manage the operation of the power supply (e.g., PSU) in the powershelf. For example, BMC A deployed in powershelf A may be, but is not limited to, used to monitor and manage the operation of PSU 0 to PSU N in powershelf A, and BMC B deployed in powershelf B may be, but is not limited to, used to monitor and manage the operation of PSU 0 to PSU N in powershelf B.
[0048] In actual use, you can, but are not limited to, use the network port derived from the BMC to lead out an RJ45 (Registered Jack 45) port on the BMC panel deployed on the PMC, connect the network cable to the switch, and enable the operation and maintenance personnel to remotely manage and monitor the power supply in the powershelf.
[0049] It should be noted that the whole cabinet server may also be deployed with, but is not limited to, general-purpose servers.
[0050] Optionally, in this embodiment, the controller deployed in the power supply component may include but is not limited to a BMC or other controllers, etc. Taking the controller including the BMC as an example, a query interface (for example, WEB) may be deployed on each BMC but is not limited to it, and the power supply deployed in the power supply component may include but is not limited to a group of power supplies, for example, the first power supply includes one or more power supplies, and may receive but is not limited to a target query request through a query interface, or may directly initiate a target query request to the target controller but is not limited to it.
[0051] In the technical solution provided in the above step S204, the reference power supply component can, but is not limited to, synchronize the collected reference operating information of the reference power supply to the target power supply component. When it is desired to query the operating information of all power supplies deployed on the server, it can, but is not limited to, obtain the operating information of all power supplies deployed on the server from any one of the first controller and the second controller.
[0052] Optionally, in this embodiment, the target controller may be any one of the first controller and the second controller. For example, the target controller may be the first controller or the second controller. When the target controller is the first controller, the reference controller is the second controller. When the target controller is the second controller, the reference controller is the first controller.
[0053] In the technical solution provided in the above step S206, when the reference controller operates normally or abnormally, the target controller stores the operation information of the reference power supply synchronized by the reference power supply component corresponding to the reference controller. In this way, the operation information of all power supplies on the server can be queried and displayed at one time, thereby improving the query efficiency of the operation information of the server's power supply.
[0054] In an exemplary embodiment, before extracting target operation information of the target power supply in the target power supply component collected by the target controller, and extracting reference operation information of the reference power supply synchronized to the target controller, the method also includes: collecting and storing the target operation information, and detecting the reference operation status of the reference controller, wherein the reference operation status is used to indicate the operation status of the reference controller; when the reference operation status is used to indicate that the reference controller is operating normally, obtaining and storing reference operation information synchronized from the reference controller to the target controller; when the reference operation status is used to indicate that the reference controller is operating abnormally, collecting and storing reference operation information from the reference power supply.
[0055] Optionally, in this embodiment, the reference operating status may be but is not limited to being used to indicate the operating status of the reference controller, for example, the reference controller is operating normally or the reference controller is operating abnormally, and the reference controller operating abnormality may be but is not limited to including the reference controller being hung, etc.
[0056] Optionally, in this embodiment, when the reference controller operates abnormally, the reference controller may have an operating failure, for example, the reference controller may be hung, and the reference controller cannot collect the operating information of the reference power supply. In such a case, the reference operating information of the reference power supply managed by the reference controller can be directly collected through but is not limited to the target controller.
[0057] In an exemplary embodiment, a detection pin is deployed on the target controller, and the detection pin is connected to a reference controller to detect a reference operating state of the reference controller, including: detecting a heartbeat signal sent by the reference controller from data received by the detection pin to obtain a detection result, wherein the reference controller is configured to send a heartbeat signal to the detection pin according to a target period; when the detection result indicates that a heartbeat signal is detected in the data received from the detection pin, determining that the reference operating state indicates that the reference controller is operating normally; when the detection result indicates that a heartbeat signal is not detected in the data received from the detection pin within a target duration, determining that the reference operating state indicates that the reference controller is operating abnormally.
[0058] Optionally, in this embodiment, the detection pin may include, but is not limited to, a pin for receiving a heartbeat signal sent by the reference controller, such as a GPIO pin. The reference controller may also be, but is not limited to, deployed with a detection pin, and the reference controller and the target controller send a heartbeat signal to each other's detection pin to achieve real-time detection of each other's operating status.
[0059] Optionally, in this embodiment, the heartbeat signal may include, but is not limited to, a level pulse signal, and may include, but is not limited to, sending a level pulse to the detection pin every other target period. The target period may include, but is not limited to, 1s (second) or 2 minutes, etc., and the present application does not impose any restrictions on this. For example, BMC 1 is set to send a heartbeat signal to BMC 2 every 1s.
[0060] Through the embodiments of the present application, whether the heartbeat signal sent by the peer BMC is received is detected in real time to determine whether the peer BMC is operating normally, and the time interval for the peer BMC to send the heartbeat signal is short, which improves the timeliness of detecting whether the peer BMC is operating normally.
[0061] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a first switch is deployed in the reference power supply component corresponding to the reference power supply, the first bus port is connected to the first switch, and the first switch is also configured to allow connection to the second bus port, the second bus port is connected to the reference power supply, and when the reference operation state is used to indicate abnormal operation of the reference controller, reference operation information is collected and stored from the reference power supply, including: switching the bus link to a management link connection with the reference controller through the first switch, wherein the bus link includes a link between the first switch and the first bus port, and the management link includes a link between the first switch and the second bus port; and collecting the reference operation information through the connected bus link and management link.
[0062] Optionally, in this embodiment, when the reference controller operates normally, the reference controller may, but is not limited to, collect operating information of the reference power supply through the second bus port. When the reference controller operates abnormally, the reference controller cannot collect operating information of the reference power supply. In such a case, the target controller may, but is not limited to, collect operating information of the reference power supply through the connected bus link and management link.
[0063] In this way, it is possible to monitor in real time whether the peer BMC is operating normally. In the event of a failure of the peer BMC, the power supply supervised by the failed BMC can be promptly supervised by the normal local BMC, thereby achieving supervision of all power supplies on the server.
[0064] In an exemplary embodiment, the bus link can be switched to a management link connection with a reference controller through a first switch in the following manner, but is not limited to: generating a target switching instruction, wherein the target switching instruction is used to instruct to switch the bus link to a management link connection; sending the target switching instruction to the first switch, wherein the first switch is used to execute the target switching instruction.
[0065] Optionally, in this embodiment, the target controller may, but is not limited to, switch the bus link to connect to the management link by sending a target switching instruction to the switch. For example, when the controller includes a BMC and the target switching instruction includes an I2C7 sending instruction, the BMC on the other end may, but is not limited to, send an instruction via I2C7 to enable PCA9548 (equivalent to the first switch) to switch the link to the I2C6 link (equivalent to the management link) of the local powershelf.
[0066] In an exemplary embodiment, a first register is deployed in a reference power supply, the first register is connected to a second bus port, and operation information of the reference power supply is stored in the first register. The reference operation information is collected through a connected bus link and a management link, including: extracting the reference operation information from the first register through a target transmission link in a polling manner, wherein the target transmission link includes a connected bus link and a management link, and the reference operation information includes voltage information of the reference power supply, current information of the reference power supply, power consumption information of the reference power supply, and temperature information of the reference power supply.
[0067] Optionally, in this embodiment, the register may be, but is not limited to, deployed in a reference controller, or the register may be, but is not limited to, deployed in other components of the reference power supply other than the reference controller, and this application does not impose any restrictions on this.
[0068] Optionally, in this embodiment, the registers of each power supply in the reference power supply may be polled in a polling manner in the following manner, but not limited to. For example, when the reference power supply includes N power supplies, the operating information of the power supply stored in the registers of each power supply in the N power supplies is polled to obtain the reference operating information.
[0069] Optionally, in this embodiment, the candidate operating information can be extracted from the data stored in the candidate register through the target transmission link in the following manner, including: when the reference power supply includes N power supplies, extracting the i-th group of operating information from the i-th register deployed in the i-th power supply through the target transmission link by executing the following steps, wherein the N power supplies include the i-th power supply, the candidate operating information includes N groups of operating information, N is a positive integer, and i is a positive integer less than or equal to N: searching the i-th group of operating information from the data stored in the i-th register through the target transmission link, wherein the i-th group of operating information includes voltage information of the i-th power supply, current information of the i-th power supply, power consumption information of the i-th power supply, and temperature information of the i-th power supply.
[0070] Optionally, in this embodiment, the reference operation information may include, but is not limited to, voltage information of a reference power supply, power consumption information of a reference power supply, temperature information of a reference power supply, and current information of a reference power supply, etc. The voltage information of the reference power supply may include, but is not limited to, the distribution of the operating voltage of the reference power supply, the power consumption information of the reference power supply may include, but is not limited to, the distribution of the actual power consumed by the reference power supply, the temperature information of the reference power supply may include, but is not limited to, the distribution of the operating temperature of the reference power supply, and the current information of the reference power supply may include, but is not limited to, the distribution of the current when the reference power supply is actually running.
[0071] As an optional example, a first power supply component, a second power supply component and a third power supply component are deployed in a server, the first power supply component includes a first controller and a first power supply, the second power supply component includes a second controller and a second power supply, the third power supply component includes a third controller and a third power supply, the first power supply component, the second power supply component and the third power supply are configured to allow operation information of the power supplies generated by mutual synchronization, the operation information is used to detect the operation status of the corresponding power supplies, the method is applied to the first controller, the second controller and the target controller in the third controller, the method includes: receiving a target query request, wherein the target query request is used to request to query the operation information of the power supply deployed on the server; responding to the target query request, extracting the target operation information of the target power supply in the target power supply component collected by the target controller, and extracting the reference operation information of the reference power supply synchronized to the target controller, wherein the reference controller is a controller other than the target controller among the first controller, the second controller and the third controller, and the reference power supply is the power supply corresponding to the reference controller; outputting the target operation information and the reference operation information.
[0072] Through the embodiments of the present application, an information sharing mechanism is established between the first power supply component, the second power supply component and the third power supply component deployed in the server, allowing them to synchronize the operating information of the power supplies generated by each other, so that when a controller in any power supply component (for example, any one of the first controller, the second controller or the third controller) receives a target query request, it is possible not only to provide the operating information of the power supply in the power supply component collected by itself, but also to extract the operating information of the power supplies synchronized from other power supply components, thereby realizing centralized and efficient query of the operating information of the power supply in a multi-power supply component power supply scenario.
[0073] In order to better understand the process of taking over a faulty controller in the embodiment of the present application, the process of taking over a faulty controller by a normally running controller in the embodiment of the present application is explained and illustrated in combination with optional embodiments below, which can be applicable to but not limited to the embodiment of the present application.
[0074] The master and slave powershelves can also monitor each other's working status in real time. If the working status of the BMC deployed on the other PMC is detected to be abnormal, the master-slave switch can be performed and real-time takeover can be performed to take over the status monitoring of the PSU under the BMC deployed on the faulty PMC. This avoids the problem that the status of the PSU in a powershelf cannot be obtained due to the BMC in the powershelf being hung.
[0075] The BMCs of Powershelf A and Powershelf B are connected to each other with their heartbeat signals. The heartbeat signal is implemented through GPIO, and a level pulse is sent every 1s. After the powershelf at the other end senses the pulse waveform, it is considered that the powershelf at the other end is working normally. If no pulse is received within a certain period of time (for example, it can be set to 5s), it can be considered that the other end is working abnormally.
[0076] In order to enable the local powershelf to take over the monitoring of the other-end PSU in time when the other-end BMC is hung or working abnormally, a takeover mechanism is designed. The BMC in each powershelf leads to two I2C paths, namely I2C6 and I2C7 ports. I2C6 is the management path for the PSU in the local powershelf, and the bus form is PMBUS; I2C7 is the takeover management path for the local powershelf to the PSU in the other-end powershelf. Among them, the I2C7 path is connected to the PCA9548 of the other end through the physical link between the powershelves. If the heartbeat signal detection disappears and a BMC is hung, the BMC of the other end sends a command through I2C7 to make PCA9548 switch the link to the I2C6 link of the local powershelf. When working, each BMC opens the I2C6 port, accesses the PSU information of the local powershelf, and continues the heartbeat signal of the other powershelf. If the BMC in a powershelf (such as the other end) hangs, the local end will sense that the heartbeat status of the other end has stopped. At this time, the I2C7 port is connected to the PSU in the powershelf of the other end to monitor the status of the PSU of the other end, realizing active / standby switching and backup redundancy.
[0077] Figure 4 FIG. 1 is a schematic diagram of an optional active / standby switching and takeover when a BMC fails according to an embodiment of the present application, such as Figure 4 As shown, when a powershelf (for example, powershelf A) fails, such as when the BMC works abnormally, another normal powershelf (for example, powershelf B) takes over the power monitoring work of the failed powershelf to ensure that the power management of the entire cabinet is not interrupted.
[0078] During normal operation, powershelf A where BMC A is located can be used as the host, and BMC B as the slave. At this time, BMC A receives the PSU information of powershelf B transmitted by BMC B, and the operation and maintenance personnel can query the status of all PSUs by viewing the WEB page of BMC A. When BMC A dies, the heartbeat signal transmitted by BMC A to powershelf B stops, and the Ethernet channel between BMC A and BMC B cannot be used. At this time, BMC B detects that the heartbeat status of the other end is abnormal and believes that a master-slave conversion is required. At this time, BMC B enables the I2C7 channel, and accesses the PSU status corresponding to powershelf A through the physical cable connecting the two powershelves, and at the same time superimposes the PSU information of the local powershelf read by BMC B through the I2C6 channel (for example, Figure 4 In the example, B takes over the PMBUS management channel of A in the BMC B, and the information of the PSUs in the entire cabinet can be obtained through the backup path. At this time, the operation and maintenance personnel can access the status of all PSUs through the web page of BMC B. The failure of BMC A will not affect the operation and maintenance personnel's acquisition of PSU status.
[0079] Through the technical solution provided in the embodiment of the present application, a new mechanism for redundantly exchanging information between powershelves in the case of multiple powershelves is designed. The mechanism can continuously monitor the operating status of the powershelf at the other end, ensuring that when a powershelf hangs, another powershelf can take over the monitoring rights of the PSU under the failed powershelf and report it in time.
[0080] In an exemplary embodiment, a target data interface is deployed on the target controller, and the target data interface is connected to a reference controller. When the reference operating state is used to indicate that the reference controller is operating normally, reference operating information synchronized from the reference controller to the target controller is obtained and stored, including: detecting the reference transmission state of the reference controller; when the reference transmission state is used to indicate that the reference controller allows receiving data transmitted by the target controller, transmitting the collected target operating information to the reference controller through the target data interface; when the target operating information is transmitted to the reference controller through the target data interface, receiving the reference operating information transmitted by the reference controller through the target data interface, and storing the reference operating information.
[0081] Optionally, in this embodiment, when the reference transmission status is used to indicate that the reference controller allows receiving data transmitted by the target controller, it can indicate that the reference controller is currently idle. For example, the reference controller does not transmit the collected operation information of the reference power supply to the target data interface on the target controller, which can indicate that the reference controller is ready to receive and can, but is not limited to, transmit the collected target operation information to the reference controller through the target data interface.
[0082] In this way, link conflicts caused by the target controller and the reference controller synchronizing the collected power supply operation information to each other at the same time are avoided, and the accuracy of the power supply operation information synchronized to the opposite controller is improved.
[0083] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a second switch and a second register are deployed in a reference power supply component corresponding to the reference power supply, the second switch is configured to allow connection with the second register, the second switch is configured to allow connection with the second bus port, the second switch is connected to the first bus port, the second register is used to record a state parameter, the value of the state parameter is used to indicate whether the reference controller is allowed to receive data transmitted by the target controller, and the reference transmission state of the reference controller is detected, including: switching the bus link to connect with the second register through the second switch, wherein the bus link includes a link between the first switch and the first bus port; reading a candidate value of the state parameter recorded in the second register through the second switch; when the candidate value is equal to the reference value, determining the reference transmission state to indicate that the reference controller is allowed to receive data transmitted by the target controller; when the candidate value is not equal to the reference value, determining the reference transmission state to indicate that the reference controller is not allowed to receive data transmitted by the target controller.
[0084] Optionally, in this embodiment, when the reference transmission status is used to indicate that the reference controller is not allowed to receive data transmitted by the target controller, it can indicate that the reference controller is not yet ready to receive, for example, the reference controller is currently synchronizing data to the target data interface on the target controller.
[0085] Optionally, in this embodiment, the second register may be but is not limited to being deployed in a reference controller, or the second register may also be but is not limited to being deployed in other components of the reference power supply component except the reference controller, and this application does not impose any restrictions on this.
[0086] In an exemplary embodiment, after detecting the reference transmission status of the reference controller, the method further includes: when the reference transmission status is used to indicate that the reference controller is not allowed to receive data transmitted by the target controller, continuing to detect the reference transmission status; when the reference transmission status is converted from indicating that the reference controller is not allowed to receive data transmitted by the target controller to indicating that the reference controller is allowed to receive data transmitted by the target controller, transmitting the collected target operation information to the reference controller through the target data interface.
[0087] Optionally, in this embodiment, when the reference transmission status is used to indicate that the reference controller is not allowed to receive data transmitted by the target controller, it can indicate that the reference controller is not currently ready to receive and cannot receive data transmitted by the target controller. In this case, the target controller can, but is not limited to, wait and continue to detect the reference transmission status of the reference controller until the reference controller is ready to receive, and then synchronize the collected operating information of the target power supply to the reference controller.
[0088] In an exemplary embodiment, the reference transmission state of the reference controller can be detected in the following ways, including but not limited to: starting to detect the reference transmission state of the reference controller after collecting and storing target operating information; or, detecting the reference transmission state of the reference controller when starting to collect updated operating information of the target power supply, wherein the updated operating information is the operating information of the next target power supply collected by the target controller after the target operating information.
[0089] Optionally, in this embodiment, the time for collecting the target operating information and the time for collecting the updated operating information may be, but is not limited to, separated by a preset collection period. For example, after the target operating information is collected, the collection of the updated operating information may be, but is not limited to, started at a preset collection period. For example, the collection period may be, but is not limited to, 30 minutes or 1 hour, etc., and this application does not impose any restrictions on this.
[0090] Optionally, in this embodiment, the reference transmission state of the reference controller may also be detected in the following manner but is not limited to: after completing the acquisition and storing the updated operation information, the reference transmission state of the reference controller is detected.
[0091] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, and a third switch and a third register are deployed in a reference power supply component corresponding to the reference power supply. When the reference operating state is used to indicate that the reference controller is operating normally, the bus link is also switched to be connected to the third register through the third switch. The bus link includes a link between the first switch and the first bus port. The third register is used to record transmission parameters. The value of the transmission parameter is used to indicate whether the target controller has completed the transmission of target operating information through the target data interface. After the collected target operating information is transmitted to the reference controller through the target data interface, the method also includes: detecting a target transmission state of the target operating information; when the target transmission state is used to indicate that the target controller has completed the transmission of the target operating information through the target data interface, adjusting the value of the transmission parameter recorded in the third register to the target value through the bus link.
[0092] Optionally, in this embodiment, when the current synchronization is completed, the value in the third register may be cleared, but is not limited to, and the value in the second register may be cleared to prepare for the next synchronization.
[0093] Optionally, in this embodiment, the first bus port deployed on the target controller and the second bus port deployed on the reference controller may include but are not limited to ports supporting the same bus protocol. For example, the first bus port and the second bus port may include but are not limited to both include I2C bus ports.
[0094] Optionally, in this embodiment, the functions of the first switch, the second switch, and the third switch may be, but are not limited to, integrated into the same switch. For example, the first switch, the second switch, and the third switch may be, but are not limited to, integrated into the I2C switch PCA9548; or, the functions of the first switch, the second switch, and the third switch may be, but are not limited to, deployed in a separate switch. It is understood that the first switch, the second switch, and the third switch may be, but are not limited to, the same switch, or the first switch, the second switch, and the third switch may include, but are not limited to, different switches.
[0095] In order to better understand the query process of the server power information query method in the embodiment of the present application, the query process of the server power information query method in the embodiment of the present application is explained and illustrated below in combination with optional embodiments, which can be applicable to but not limited to the embodiment of the present application.
[0096] The explanation may be made by taking, but not limited to, an example in which the first power supply component includes powershelf A, the second power supply component includes powershelf B, the first controller includes BMC A, the second controller includes BMC B, the power supply includes PSU, the target data interface includes an Ethernet interface deployed on the BMC, the Ethernet interface is deployed on BMC A, and the heartbeat signal includes a level pulse.
[0097] Figure 5 is a schematic diagram of an optional dual powershelf synchronization information according to an embodiment of the present application, such as Figure 5 As shown in the figure, when the whole cabinet server is operating normally, two powershelfs (for example, powershelf A and powershelf B) are connected to the switch inside the cabinet through the Ethernet interface of the BMC, so that the operation and maintenance personnel can remotely access and manage the PSU deployed in each powershelf.
[0098] Powershelf A and Powershelf B can be but are not limited to backing up each other. Under normal circumstances, one Powershelf acts as the master and the other Powershelf acts as the slave. Both can transmit management information through the 1000M-BASE-T (1000Megabits per Second-Baseband-Twisted Pair) Ethernet channel to synchronize the information of all PSUs in the two Powershelves. Taking Powershelf A as an example, every time the BMC deployed on the PMC in Powershelf A polls the information of the subordinate PSUs, it will record the log in BMCA and pass the recorded PSU information to Powershelf B through the Ethernet channel. The same is true for Powershelf B. Therefore, every time the Powershelf polls the information of the PSUs hanging down, the local and peer Powershelves will record the log information of all PSUs at the same time. In this way, the BMC deployed on each PMC will record the status logs of all PSUs in the cabinet, so as to query the past power information.
[0099] Since the information synchronization between powershelves each time and the powershelf polling PSU use two different channels, there will be no interference with each other. The local PSU information read by the powershelf last time can be transmitted while the powershelf polls the PSU. The specific transmission method is that every time the powershelf finishes reading the data, it first stores the data in the cache. First, check whether the BMC on the other end is ready to receive (equivalent to detecting the reference transmission status of the reference controller). Since the direct interaction between BMC A and BMC B is through the same Ethernet channel, both parties can send and receive. Therefore, if BMC A and BMC B send their own PSU information to the other end at the same time, it will cause link congestion and conflict, and it cannot be sent normally. Therefore, a mechanism for judging the transmission timing and transmission status is set.
[0100] In each BMC, a "busy" register (equivalent to the second register) representing the current BMC busy state and a "completed" register (equivalent to the third register) representing that the current BMC has successfully received the PSU synchronization information of the peer BMC are provided.
[0101] In the PMC module of each powershelf, an I2C switch PCA9548 (or switch) is also set. Before the I2C7 link of the peer BMC is passed to the local end, it must first be judged and switched by the I2C switch PCA9548. According to the judgment result, the I2C7 link of the peer BMC is switched to the "busy" and "done" registers of the local BMC, or switched to the PSU management link of the local powershelf.
[0102] The judgment method may include but is not limited to: directly receiving each other's heartbeat signals through BMC A and BMC B to judge the current operation status of each BMC. If the heartbeat signal exists, it is considered that each BMC is in normal operation. At this time, PCA9548 switches the I2C link to the link that reads the "busy" register and the "completed" register. If the heartbeat signal disappears, it is considered that there is a BMC hang phenomenon, and the I2C link is switched to the management link that takes over the PSU. Perform active-standby switching.
[0103] When BMC A and BMC B are both in normal operation, after BMC A reads the local PSU information once, the I2C7 port of BMC A accesses the PCA9548 in the PMCB, and switches the link to the link for reading the "busy" register and "completed" register in BMC B to read the busy information of BMC B and determine whether BMC B is ready to receive. If it is read that BMC B is busy at the moment, it waits until BMC B is idle, and then BMC A sends the local PSU information read last time to BMC B through the Ethernet link.
[0104] After BMC A has sent all the PSU information, it writes the "Completion" register of BMC B through the I2C link. After BMC B senses the change in the value of the "Completion" register, it senses that BMC A has synchronized the PSU information to BMC B.
[0105] At this time, BMC B uses the same method, using BMC A to take over the I2C channel of BMC B and reversely read the busy status of BMC A. After sensing that BMC A is idle, the PSU information of BMC B is synchronized to BMC A through the Ethernet link. And the "Complete" register in BMCA is set.
[0106] It should be noted that the synchronization order must be BMC A first and BMC B later. Therefore, BMC B needs to wait for BMC A to synchronize information to BMC B before accessing BMC A and synchronizing the power supply operation information collected by BMC B to BMC A.
[0107] After both parties have completed synchronization, they each clear their own "busy" register and "done" register to prepare for the next synchronization.
[0108] Since the time to poll a PSU is much longer than the time to synchronize information with each other, this mechanism avoids the problem of a single PMC directly managing and polling all PSUs and causing excessive time consumption.
[0109] In actual application, the PMCs in the two powershelves can be interconnected through the BMC's dedicated Ethernet port (equivalent to the data interface) to transmit the PSU operation information collected by each other. In fact, both powershelves are hosts and can understand each other's PSU information. By connecting any powershelf, the information of all PSUs in the entire cabinet can be read. However, when using it for operation and maintenance, a powershelf can be manually identified as the host, and only the WEB of the powershelf can be accessed to view the status of all PSUs.
[0110] It should be noted that the target controller and the reference controller can, but are not limited to, exchange the operation information of the power supply collected by each other at regular intervals. For example, BMC 1 and BMC 2 exchange their respective PSU information at regular intervals. The exchanged information can be the transmission of the local PSU information obtained last time while the BMC is polling the PSU information under the powershelf this time; or it can be the transmission of the local PSU information obtained this time after the BMC has completed the polling of the PSU information under the powershelf this time. Regardless of the time at which the exchanged information is transmitted, it will not affect the polling action being executed.
[0111] Through the embodiments of the present application, a new power management strategy is provided for the whole cabinet using centralized power supply with multiple powershelves for redundant monitoring of active-standby switching under flexible loads, which solves the problem of power management caused by the situation that when the whole cabinet is equipped with different loads, there may be multiple powershelves supplying power at the same time.
[0112] Since the entire cabinet can flexibly match power supply loads, more than one powershelf may be installed in the cabinet. When two powershelves are operated and managed at the same time, the management network ports of both powershelves need to be plugged into the switch at the same time. From the perspective of management software, it is not convenient to log in to two BMC WEBs, and each WEB page can only read half of the PSU information of the entire cabinet and cannot be fully displayed. Two BMC WEB pages are required to query all PSU information. If an alarm occurs in the PSU under a powershelf, if the operation and maintenance personnel are paying attention to the information of another powershelf on the WEB at this time, the PSU alarm may be missed.
[0113] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.
[0114] In this embodiment, a device for querying server power information is also provided, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0115] Figure 6 is a structural block diagram of a server power information query device according to an embodiment of the present application, such as Figure 6 As shown, a first power supply component and a second power supply component are deployed in the server, the first power supply component includes a first controller and a first power supply, the second power supply component includes a second controller and a second power supply, the first power supply component and the second power supply component are configured to allow operation information of the power supply generated by mutual synchronization, the operation information is used to detect the operation status of the corresponding power supply, the device is applied to the target controller of the first controller and the second controller, and the device includes:
[0116] A receiving module 602 is used to receive a target query request, wherein the target query request is used to request to query the operation information of the power supply deployed on the server;
[0117] An extraction module 604 is used to respond to the target query request, extract the target operation information of the target power supply in the target power supply component collected by the target controller, and extract the reference operation information of the reference power supply synchronized to the target controller, wherein the reference controller is a controller other than the target controller in the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller;
[0118] The output module 606 is used to output the target operation information and the reference operation information.
[0119] Through the above device, the operation information of the power supply generated by each power supply component in the server is allowed to be synchronized with each other. In this way, the operation and maintenance personnel can query the operation information of the power supply in all power supply components on the server through any controller. Therefore, the problem of low query efficiency of server power supply information is solved, thereby achieving the technical effect of improving the query efficiency of server power supply information.
[0120] In an exemplary embodiment, the apparatus further comprises:
[0121] A first processing module is used to collect and store target operation information and detect a reference operation state of a reference controller before extracting target operation information of a target power supply in a target power supply component collected by the target controller and extracting reference operation information of a reference power supply synchronized to the target controller, wherein the reference operation state is used to indicate an operation condition of the reference controller;
[0122] A second processing module is used to obtain and store reference operation information of the reference controller synchronized to the target controller when the reference operation state is used to indicate that the reference controller is operating normally;
[0123] The third processing module is used to collect and store reference operation information from the reference power supply when the reference operation state is used to indicate that the reference controller operates abnormally.
[0124] In an exemplary embodiment, a detection pin is disposed on the target controller, the detection pin is connected to the reference controller, and the first processing module includes:
[0125] A first detection unit, configured to detect a heartbeat signal sent by a reference controller from data received from a detection pin, and obtain a detection result, wherein the reference controller is configured to send a heartbeat signal to the detection pin according to a target period;
[0126] A determination unit is used to determine that a reference operating state is used to indicate that a reference controller is operating normally when a detection result indicates that a heartbeat signal is detected in data received from a detection pin; and to determine that a reference operating state is used to indicate that a reference controller is operating abnormally when a detection result indicates that a heartbeat signal is not detected in data received from the detection pin within a target time period.
[0127] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a first switch is deployed in the reference power supply component corresponding to the reference power supply, the first bus port is connected to the first switch, the first switch is further configured to allow connection to the second bus port, the second bus port is connected to the reference power supply, and the third processing module includes:
[0128] a switching unit, configured to switch the bus link to a management link connection with a reference controller through a first switch, wherein the bus link comprises a link between the first switch and the first bus port, and the management link comprises a link between the first switch and the second bus port;
[0129] The acquisition unit is used to acquire reference operation information via the connected bus link and management link.
[0130] In an exemplary embodiment, the switching unit is configured to:
[0131] generating a target switching instruction, wherein the target switching instruction is used to instruct to switch the bus link to be connected to the management link;
[0132] A target switching instruction is sent to the first switch, wherein the first switch is used to execute the target switching instruction.
[0133] In an exemplary embodiment, a first register is deployed in the reference power supply, the first register is connected to the second bus port, and the first register stores the operation information of the reference power supply. The acquisition unit is used to:
[0134] In a polling manner, reference operating information is extracted from the first register through a target transmission link, wherein the target transmission link includes a connected bus link and a management link, and the reference operating information includes voltage information of a reference power supply, current information of a reference power supply, power consumption information of a reference power supply, and temperature information of a reference power supply.
[0135] In an exemplary embodiment, a target data interface is deployed on the target controller, the target data interface is connected to the reference controller, and the second processing module includes:
[0136] a second detection unit, used to detect a reference transmission state of a reference controller;
[0137] A transmission unit, configured to transmit the collected target operation information to the reference controller through a target data interface when the reference transmission state is used to indicate that the reference controller allows receiving data transmitted by the target controller;
[0138] The processing unit is used to receive the reference running information transmitted by the reference controller through the target data interface when the target running information is transmitted to the reference controller through the target data interface, and store the reference running information.
[0139] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a second switch and a second register are deployed in a reference power supply component corresponding to the reference power supply, the second switch is configured to allow connection with the second register, the second switch is configured to allow connection with the second bus port, the second switch is connected to the first bus port, the second register is used to record a state parameter, the value of the state parameter is used to indicate whether the reference controller is allowed to receive data transmitted by the target controller, and the second detection unit is used to:
[0140] Switching the bus link to connect to the second register through the second switch, wherein the bus link includes a link between the first switch and the first bus port;
[0141] Reading the candidate value of the state parameter recorded in the second register through the second switch;
[0142] When the candidate value is equal to the reference value, the reference transmission state is determined to indicate that the reference controller is allowed to receive data transmitted by the target controller; when the candidate value is not equal to the reference value, the reference transmission state is determined to indicate that the reference controller is not allowed to receive data transmitted by the target controller.
[0143] In an exemplary embodiment, the apparatus further comprises:
[0144] A first detection module is used for, after detecting the reference transmission state of the reference controller, continuing to detect the reference transmission state in the case where the reference transmission state is used to indicate that the reference controller is not allowed to receive data transmitted by the target controller;
[0145] The transmission module is used to transmit the collected target operation information to the reference controller through the target data interface when the reference transmission state is converted from indicating that the reference controller is not allowed to receive data transmitted by the target controller to indicating that the reference controller is allowed to receive data transmitted by the target controller.
[0146] In an exemplary embodiment, detecting a reference transmission state of a reference controller includes:
[0147] a third detection unit, configured to start detecting a reference transmission state of a reference controller after collecting and storing target operation information;
[0148] Alternatively, the fourth detection unit is used to detect the reference transmission state of the reference controller when starting to collect updated operation information of the target power supply, wherein the updated operation information is the operation information of the next target power supply collected by the target controller after the target operation information.
[0149] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a third switch and a third register are deployed in a reference power supply component corresponding to the reference power supply, and when the reference operation state is used to indicate that the reference controller is operating normally, the bus link is also switched to be connected to the third register through the third switch, the bus link includes a link between the first switch and the first bus port, the third register is used to record transmission parameters, and the value of the transmission parameter is used to indicate whether the target controller completes the transmission of target operation information through the target data interface. After the collected target operation information is transmitted to the reference controller through the target data interface, the device also includes:
[0150] A second detection module is used to detect the target transmission status of the target operation information;
[0151] The adjustment module is used to adjust the value of the transmission parameter recorded in the third register to the target value through the bus link when the target transmission state is used to indicate that the target controller completes the transmission of target operation information through the target data interface.
[0152] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0153] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.
[0154] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0155] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0156] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0157] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0158] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.
[0159] An embodiment of the present application also provides a computer program, which includes computer instructions stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.
[0160] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0161] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0162] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for querying server power information, characterized in that: A first power supply component and a second power supply component are deployed in the server, the first power supply component includes a first controller and a first power supply, the second power supply component includes a second controller and a second power supply, the first power supply component and the second power supply component are configured to allow operation information of the power supply generated by mutual synchronization, the operation information is used to detect the operation status of the corresponding power supply, the method is applied to a target controller in the first controller and the second controller, and the method includes: Receive a target query request, wherein the target query request is used to request to query the operation information of the power supply deployed on the server; In response to the target query request, extracting target operation information of the target power supply in the target power supply component collected by the target controller, and extracting reference operation information of the reference power supply synchronized to the target controller, wherein the reference controller is a controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; The target operation information and the reference operation information are output.
2. The method according to claim 1, characterized in that: Before extracting the target operation information of the target power supply in the target power supply component collected by the target controller and extracting the reference operation information of the reference power supply synchronized to the target controller, the method further includes: Collecting and storing the target operation information, and detecting a reference operation state of the reference controller, wherein the reference operation state is used to indicate an operation condition of the reference controller; When the reference operation state indicates that the reference controller operates normally, acquiring and storing the reference operation information of the reference controller being synchronized to the target controller; In a case where the reference operation status is used to indicate that the reference controller operates abnormally, the reference operation information is collected from the reference power supply and stored.
3. The method according to claim 2, characterized in that A detection pin is disposed on the target controller, and the detection pin is connected to the reference controller. The detection of the reference running state of the reference controller includes: Detecting a heartbeat signal sent by the reference controller from data received by the detection pin to obtain a detection result, wherein the reference controller is configured to send the heartbeat signal to the detection pin according to a target period; When the detection result is used to indicate that the heartbeat signal is detected in the data received from the detection pin, the reference operating state is determined to indicate that the reference controller is operating normally; when the detection result is used to indicate that the heartbeat signal is not detected from the data received from the detection pin within the target time length, the reference operating state is determined to indicate that the reference controller is operating abnormally.
4. The method according to claim 2, characterized in that: The target controller is provided with a first bus port, the reference controller is provided with a second bus port, a first switch is provided in a reference power supply component corresponding to the reference power supply, the first bus port is connected to the first switch, the first switch is further configured to allow connection to the second bus port, the second bus port is connected to the reference power supply, and when the reference operation state is used to indicate that the reference controller is operating abnormally, the reference operation information is collected and stored from the reference power supply, including: Switching the bus link to a management link connection with the reference controller through the first switch, wherein the bus link includes a link between the first switch and the first bus port, and the management link includes a link between the first switch and the second bus port; The reference operation information is collected through the connected bus link and the management link.
5. The method according to claim 4, characterized in that The step of switching the bus link to the management link connection with the reference controller through the first switch includes: generating a target switching instruction, wherein the target switching instruction is used to instruct the bus link to be switched to be connected to the management link; The target switching instruction is sent to the first switch, wherein the first switch is used to execute the target switching instruction.
6. The method according to claim 4, characterized in that A first register is deployed in the reference power supply, the first register is connected to the second bus port, the first register stores operation information of the reference power supply, and the reference operation information is collected through the connected bus link and the management link, including: The reference operation information is extracted from the first register through a target transmission link in a polling manner, wherein the target transmission link includes the connected bus link and the management link, and the reference operation information includes voltage information of the reference power supply, current information of the reference power supply, power consumption information of the reference power supply, and temperature information of the reference power supply.
7. The method according to claim 2, characterized in that The target controller is provided with a target data interface, the target data interface is connected to the reference controller, and when the reference operation state is used to indicate that the reference controller is operating normally, obtaining and storing the reference operation information synchronized from the reference controller to the target controller includes: detecting a reference transmission state of the reference controller; In a case where the reference transmission state is used to indicate that the reference controller allows receiving data transmitted by the target controller, transmitting the collected target operation information to the reference controller through the target data interface; When the target operation information is transmitted to the reference controller through the target data interface, the reference operation information transmitted by the reference controller is received through the target data interface, and the reference operation information is stored.
8. The method according to claim 7, characterized in that A first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a second switch and a second register are deployed in a reference power supply component corresponding to the reference power supply, the second switch is configured to allow connection with the second register, the second switch is configured to allow connection with the second bus port, the second switch is connected to the first bus port, the second register is used to record a state parameter, the value of the state parameter is used to indicate whether the reference controller is allowed to receive data transmitted by the target controller, and the detection of the reference transmission state of the reference controller includes: Switching the bus link to connect with the second register through the second switch, wherein the bus link includes a link between the first switch and the first bus port; Reading the candidate value of the state parameter recorded in the second register through the second switch; When the candidate value is equal to the reference value, the reference transmission state is determined to indicate that the reference controller is allowed to receive data transmitted by the target controller; when the candidate value is not equal to the reference value, the reference transmission state is determined to indicate that the reference controller is not allowed to receive data transmitted by the target controller.
9. The method according to claim 7, characterized in that: After detecting the reference transmission state of the reference controller, the method further includes: In a case where the reference transmission status is used to indicate that the reference controller is not allowed to receive data transmitted by the target controller, continue to detect the reference transmission status; When the reference transmission state is converted from indicating that the reference controller is not allowed to receive data transmitted by the target controller to indicating that the reference controller is allowed to receive data transmitted by the target controller, the collected target operation information is transmitted to the reference controller through the target data interface.
10. The method according to claim 7, characterized in that The detecting the reference transmission state of the reference controller comprises: After collecting and storing the target operation information, start detecting the reference transmission state of the reference controller; or, When starting to collect updated operation information of the target power supply, the reference transmission state of the reference controller is detected, wherein the updated operation information is operation information of the next target power supply collected by the target controller after the target operation information.
11. The method according to claim 7, characterized in that A first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a third switch and a third register are deployed in a reference power supply component corresponding to the reference power supply, and when the reference operation state is used to indicate that the reference controller is operating normally, the bus link is also switched to be connected to the third register through the third switch, the bus link includes a link between the first switch and the first bus port, the third register is used to record transmission parameters, and the value of the transmission parameter is used to indicate whether the target controller completes the transmission of the target operation information through the target data interface, and after the target operation information collected is transmitted to the reference controller through the target data interface, the method further includes: Detecting a target transmission state of the target operation information; In a case where the target transmission status is used to indicate that the target controller has completed the transmission of the target operation information through the target data interface, the value of the transmission parameter recorded in the third register is adjusted to a target value through the bus link.
12. A device for querying server power information, characterized in that: A first power supply component and a second power supply component are deployed in the server, the first power supply component includes a first controller and a first power supply, the second power supply component includes a second controller and a second power supply, the first power supply component and the second power supply component are configured to allow operation information of the power supply generated by mutual synchronization, the operation information is used to detect the operation status of the corresponding power supply, the device is applied to a target controller of the first controller and the second controller, and the device includes: A receiving module, used for receiving a target query request, wherein the target query request is used for requesting to query the operation information of the power supply deployed on the server; an extraction module, configured to respond to the target query request, extract target operation information of a target power supply in a target power supply component collected by the target controller, and extract reference operation information of a reference power supply synchronized to the target controller, wherein the reference controller is a controller other than the target controller among the first controller and the second controller, and the reference power supply is a power supply corresponding to the reference controller; An output module is used to output the target operation information and the reference operation information.
13. A computer-readable storage medium, characterized in that: A computer program is stored in a computer-readable storage medium, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.
14. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When a processor executes the computer program, the steps of the method described in any one of claims 1 to 11 are implemented.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 11 are implemented.
Citation Information
Patent Citations
Multi-controller architecture and deployment method for service grid
CN115426257A
Query method and device of server power supply information, storage medium and electronic equipment
CN118296037A
Power supply performance control method of server power supply, storage medium and electronic equipment
CN119002669A
Data center power conversion efficiency management
US20120066519A1
Distributed power source integration management device and power system
WO2023203641A1
