PSU (Power Supply Unit) main and standby strategy switching method, device, equipment and medium
By comparing the energy conversion efficiency of the PSU master-slave strategy and dynamically adjusting the PSU master-slave status, the problem of insufficient power consumption utilization in the existing technology is solved, and the maximum utilization of server performance is achieved.
Patent Information
- Application Number
- CN202510895640.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-10-17
AI Technical Summary
The existing PSU active/standby strategy cannot meet the demand for maximizing server power utilization, affecting server performance.
By obtaining the energy conversion efficiency of the current PSU active/standby strategy and the candidate PSU active/standby strategies, comparing and determining the PSU active/standby strategy with the maximum energy conversion efficiency, the PSU active/standby status is dynamically adjusted to maximize the server power consumption utilization.
This maximizes server power consumption and avoids performance impact caused by fixed PSU policies.
Smart Images

Figure CN120803232A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a power supply unit (PSU) master-slave strategy switching method, device, equipment and medium. BACKGROUND
[0002] In the field of computer servers, the performance improvement and energy consumption management of servers are increasingly valued. For large data centers, the total power consumption of servers is often the main part of operating costs.
[0003] At present, the PSU is usually the only power input of a single server. In order to improve reliability and stability, the server usually supports user to set a redundant power supply system, that is, a redundant power supply system including a master PSU and a backup PSU. Under normal circumstances, the master PSU undertakes the task of supplying power to all components of the server, ensuring the continuous operation of the server and the stability of data processing. The main role of the backup PSU is to provide redundancy protection to prevent server downtime and data loss caused by master PSU failure. That is, when the master PSU fails, the backup PSU can quickly take over power supply to ensure the continuous operation of the server.
[0004] The PSU master-slave strategy currently used in the redundant power supply system of the server is usually N+N redundancy, that is, the number of master PSUs is the same as the number of backup PSUs, and the number of master PSUs and backup PSUs cannot be adjusted. In addition, it is required that the sum of the rated power of the master PSUs is not less than the maximum operating power of the server. However, the current PSU master-slave strategy scheme is relatively fixed, and to a large extent cannot meet the demand of maximizing the power utilization rate of the server, which may affect the performance of the server. SUMMARY
[0005] The embodiments of the present application provide a PSU master-slave strategy switching method, device, equipment and medium, to solve the problem that the prior art cannot meet the demand of maximizing the power utilization rate of the server, which may affect the performance of the server.
[0006] In a first aspect, the embodiments of the present application provide a PSU master-slave strategy switching method, which comprises:
[0007] obtaining a current PSU master-slave strategy for supplying power to a server, and a current energy conversion efficiency and a first load rate of a master PSU for supplying power to the server;
[0008] obtaining candidate energy conversion efficiencies saved for each candidate PSU master-slave strategy; wherein the number of master PSUs included in each candidate PSU master-slave strategy is different, and the number of backup PSUs included is different;
[0009] determining whether there is a candidate energy conversion efficiency greater than the current energy conversion efficiency, and if so, determining the candidate PSU active-standby strategy corresponding to the maximum candidate energy conversion efficiency as the target PSU active-standby strategy; and switching the active-standby states of the PSUs powering the server according to the target PSU active-standby strategy.
[0010] In this way, the energy conversion efficiencies of the current PSU active-standby strategy and each candidate PSU active-standby strategy are determined, and the energy conversion efficiencies of the current PSU active-standby strategy and each candidate PSU active-standby strategy are compared, so that the PSU active-standby strategy with the maximum energy conversion efficiency can be determined, and the power utilization rate of the server is maximized without affecting the performance of the server.
[0011] In a possible implementation, after the current energy conversion efficiency of the main PSU powering the server and the first load rate are obtained, the method further includes:
[0012] obtaining the optimal energy conversion efficiency of the main PSU at the first load rate saved;
[0013] determining whether the current energy conversion efficiency reaches the optimal energy conversion efficiency;
[0014] if not, continuing to perform the step of obtaining the candidate energy conversion efficiency saved for each candidate PSU active-standby strategy;
[0015] if so, continuing to perform the step of obtaining the current energy conversion efficiency of the main PSU powering the server and the first load rate.
[0016] In this way, by determining whether the energy conversion efficiency of the current main PSU powering the server reaches the optimal energy conversion efficiency, if the determination result is yes, it is determined that the optimal energy conversion efficiency has been reached, that is, the power utilization rate of the server is maximized, and there is no need to waste computing resources to determine whether the PSU active-standby strategy needs to be switched; if the determination result is no, the subsequent steps are used to dynamically adjust the PSU active-standby strategy to select the PSU active-standby strategy with the maximum energy conversion efficiency, and the power utilization rate of the server is further maximized.
[0017] In a possible implementation, the determination process of each candidate PSU active-standby strategy includes:
[0018] The total number of PSUs configured for the server and the preset PSU master-slave requirement are determined, and each candidate PSU master-slave strategy is determined according to the total number of PSUs configured for the server and the preset PSU master-slave requirement; wherein the number of master PSUs contained in each candidate PSU master-slave strategy is not less than the minimum number of master PSUs in the master-slave requirement, and the number of standby PSUs contained is not less than the minimum number of standby PSUs in the master-slave requirement.
[0019] In the foregoing manner, each candidate PSU master-slave strategy is determined according to the total number of PSUs configured for the server and the preset PSU master-slave requirement, so that the target PSU master-slave strategy finally determined can meet the PSU master-slave requirement of the server.
[0020] In a possible implementation, the process of determining the candidate energy consumption conversion efficiency of each candidate PSU master-slave strategy comprises:
[0021] The total load rate is determined according to the first number of master PSUs contained in the current PSU master-slave strategy and the first load rate;
[0022] For any candidate PSU master-slave strategy, the second load rate of the master PSUs in the candidate PSU master-slave strategy under the total load rate is determined according to the second number of master PSUs contained in the candidate PSU master-slave strategy, and the candidate energy consumption conversion efficiency of the candidate PSU master-slave strategy saved for the second load rate is obtained.
[0023] In the foregoing manner, the second load rate of the master PSUs in each candidate PSU master-slave strategy under the total load rate is determined, so that the candidate energy consumption conversion efficiency of each candidate PSU master-slave strategy can be determined based on the energy consumption conversion efficiency of the master PSUs in each candidate PSU master-slave strategy saved for any load rate.
[0024] In a possible implementation, the obtaining of the candidate energy consumption conversion efficiency of the candidate PSU master-slave strategy saved for the second load rate comprises:
[0025] The target rated conversion efficiency corresponding to the second load rate is determined according to the saved correspondence between the load rate and the rated conversion efficiency of the PSU, and the target rated conversion efficiency is determined as the candidate energy consumption conversion efficiency of the candidate PSU master-slave strategy.
[0026] In the foregoing manner, since the models of the PSUs configured for the server are the same, the target rated conversion efficiency corresponding to the second load rate of the master PSUs can be determined as the candidate energy consumption conversion efficiency of the candidate PSU master-slave strategy by determining the target rated conversion efficiency.
[0027] In a possible implementation, the obtaining of the current energy consumption conversion efficiency of the master PSU supplying power for the server comprises:
[0028] obtaining current input power and current output power of a main PSU powering the server;
[0029] determining a current energy conversion efficiency of the main PSU according to the current input power and the current output power.
[0030] In this way, by obtaining the current input power and the current output power of the main PSU in the PSU master-slave strategy, the current energy conversion efficiency of the main PSU can be obtained.
[0031] In a second aspect, the embodiments of the present application further provide a PSU master-slave strategy switching device, which has the functions of realizing the behaviors of the device in the method embodiments of the first aspect, and the beneficial effects can be referred to the description of the first aspect and will not be repeated here. The PSU master-slave strategy switching device comprises:
[0032] a first obtaining module, configured to obtain a current PSU master-slave strategy currently powering the server, and a current energy conversion efficiency of a main PSU powering the server and a first load rate;
[0033] a second obtaining module, configured to obtain candidate energy conversion efficiencies saved for each candidate PSU master-slave strategy; wherein the number of main PSUs included in each candidate PSU master-slave strategy is different, and the number of standby PSUs included is different;
[0034] a judging module, configured to judge whether there is a candidate energy conversion efficiency greater than the current energy conversion efficiency, and if so, determine a candidate PSU master-slave strategy corresponding to the maximum candidate energy conversion efficiency as a target PSU master-slave strategy; and switch the master-slave states of each PSU powering the server according to the target PSU master-slave strategy.
[0035] In a third aspect, the embodiments of the present application further provide an electronic device, which at least comprises a processor and a memory, and the processor is configured to realize the steps of the PSU master-slave strategy switching method as described in any of the above aspects when executing the computer program stored in the memory.
[0036] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the steps of the PSU master-slave strategy switching method as described in any of the above aspects.
[0037] In a fifth aspect, the embodiments of the present application provide a computer program product, which comprises computer program code, and when the computer program code is run on a computer, the computer is caused to execute the steps of the PSU master-slave strategy switching method as described in any of the above aspects. BRIEF DESCRIPTION OF DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiments description. Obviously, the drawings in the following description only constitute some of the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without any creative effort.
[0039] Figure 1 A PSU master-backup strategy switching process schematic diagram provided for the embodiments of the present application;
[0040] Figure 2 A corresponding relationship representation diagram of the load rate and energy conversion efficiency of the PSU with different certification marks provided for the embodiments of the present application;
[0041] Figure 3 A PSU master-backup strategy switching process schematic diagram provided for the embodiments of the present application;
[0042] Figure 4 A PSU master-backup strategy switching device structure schematic diagram provided for the embodiments of the present application;
[0043] Figure 5 An electronic device structure schematic diagram provided for the embodiments of the present application. DETAILED DESCRIPTION
[0044] In order to make the purpose and embodiments of the present application more clear, the following will combine the drawings in the exemplary embodiments of the present application to clearly and completely describe the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only some of the embodiments of the present application, but not all the embodiments.
[0045] It should be noted that the brief description of the terms in the present application is only for the convenience of understanding the following described embodiments, and is not intended to limit the embodiments of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.
[0046] The terms "first", "second", "third" and the like in the specification and claims of the present application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit the specific order or sequence, unless otherwise specified. It should be understood that the terms used in this way can be interchanged under appropriate circumstances.
[0047] The terms "include" and "have" and any variations thereof are intended to cover but not exclusive inclusion, for example, a product or device including a series of components does not necessarily limit to all the components clearly listed, but can include other components not clearly listed or inherent to these products or devices.
[0048] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functionality associated with that element.
[0049] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
[0050] For ease of explanation, the above description has been presented in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations are possible. The above embodiments have been selected and described to better explain the principles and practical applications, thereby enabling those skilled in the art to better utilize the embodiments and various variations of the embodiments suitable for specific use considerations.
[0051] The embodiment of the present application provides a PSU master-slave strategy switching method, apparatus, device and medium, in which the method obtains the PSU master-slave strategy currently powering a server, as well as the current energy conversion efficiency and first load rate of the master PSU powering the server; obtains the candidate energy conversion efficiency saved for each candidate PSU master-slave strategy; wherein each candidate PSU master-slave strategy includes a different number of master PSUs and backup PSUs; determines whether there is a candidate energy conversion efficiency greater than the current energy conversion efficiency, and if so, determines the candidate PSU master-slave strategy corresponding to the maximum candidate energy conversion efficiency as the target PSU master-slave strategy; and switches to the master-slave state of each PSU powering the server according to the target PSU master-slave strategy. In the embodiment of the present application, by comparing the energy conversion efficiency of the current PSU master-slave strategy with that of each candidate PSU master-slave strategy, it is possible to determine the PSU master-slave strategy with the maximum energy conversion efficiency, thereby maximizing the server power consumption utilization without affecting server performance.
[0052] Example 1:
[0053] Figure 1 A schematic diagram of a PSU master / slave strategy switching process provided in an embodiment of the present application includes:
[0054] S101: Obtain a current PSU master / slave strategy for powering a server, as well as a current energy conversion efficiency and a first load rate of a master PSU for powering the server.
[0055] The PSU master-slave strategy switching method provided in the embodiments of the present application is applied to an electronic device, which can be a personal computer (PC), a server, etc., and is not specifically limited herein.
[0056] The electronic device obtains a current PSU master-slave strategy for supplying power to the server, wherein the current PSU master-slave strategy includes a first quantity of master PSUs currently supplying power to the server and a quantity of backup PSUs providing redundancy protection for the server.
[0057] It can be understood that if different models of PSUs are provided for the same server, the problem of uneven load distribution can occur, that is, a certain PSU can bear more load due to specification differences, leading to overheating or premature failure, and the problem of redundancy failure can also occur, that is, different models of PSUs can not seamlessly take over the load during fault switching, affecting system stability. Therefore, in order to ensure load balancing, redundancy reliability, compatibility, operation and maintenance efficiency, and compliance with manufacturer design specifications, the models of the PSUs configured for the same server are usually the same in the embodiments of the present application. And since the PSUs currently used in the server industry are usually 80 PLUS certified PSUs, the PSUs configured for the server in the embodiments of the present application are also usually 80 PLUS certified PSUs.
[0058] Since the models of the PSUs configured for the same server are the same, and the same model of PSU will automatically balance the load in the redundancy mode (i.e., the PSU master-slave strategy provided in the embodiments of the present application), the electronic device can obtain the current energy conversion efficiency and the first load rate of any master PSU currently supplying power to the server, and determine the current energy conversion efficiency of the master PSU as the current energy conversion efficiency of each master PSU currently supplying power to the server, and determine the first load rate of the master PSU as the first load rate of each master PSU currently supplying power to the server.
[0059] In one possible implementation, if the energy conversion efficiency and the load rate of each master PSU are recorded in the electronic device or the server, the electronic device can directly read the current energy conversion efficiency and the first load rate of any master PSU.
[0060] In another possible implementation, if the energy conversion efficiency and the load rate of each master PSU are not recorded in the electronic device or the server, the electronic device can determine the current energy conversion efficiency of any master PSU by reading the current input power and the current output power of the master PSU, and determining the ratio of the current output power to the current input power as the current energy conversion efficiency of the master PSU; obtain the rated maximum input power of each master PSU, and determine the ratio of the current output power of any master PSU to the rated maximum input power as the first load rate of the master PSU.
[0061] S102: Obtain a candidate energy consumption conversion efficiency saved for each candidate PSU master-standby strategy; wherein the number of master PSUs contained in each candidate PSU master-standby strategy is different, and the number of standby PSUs contained is also different.
[0062] The electronic device obtains at least one candidate PSU master-standby strategy. The number of master PSUs contained in different candidate PSU master-standby strategies is different, and the number of standby PSUs contained is also different. In addition, the number of master PSUs contained in a certain candidate PSU master-standby strategy and the number of standby PSUs may be different or the same, which is not specifically limited here.
[0063] The electronic device saves a corresponding candidate energy consumption conversion efficiency for each candidate PSU master-standby strategy. The energy consumption conversion efficiency of each master PSU in any candidate PSU master-standby strategy is the same, and the energy consumption conversion efficiency of each master PSU is the candidate energy consumption conversion efficiency corresponding to the candidate PSU master-standby strategy. Therefore, the electronic device obtains the candidate energy consumption conversion efficiency saved by itself for each candidate PSU master-standby strategy.
[0064] S103: Determine whether there is a candidate energy consumption conversion efficiency greater than the current energy consumption conversion efficiency, if so, determine the candidate PSU master-standby strategy corresponding to the maximum candidate energy consumption conversion efficiency as the target PSU master-standby strategy; and switch the master-standby state of each PSU powered by the server according to the target PSU master-standby strategy.
[0065] Determine whether there is a candidate energy consumption conversion efficiency greater than the current energy consumption conversion efficiency corresponding to any candidate PSU master-standby strategy, if so, it means that there is a PSU master-standby strategy with higher energy consumption conversion efficiency. Therefore, determine the maximum candidate energy consumption conversion efficiency, and determine the candidate PSU master-standby strategy corresponding to the maximum candidate energy consumption conversion efficiency as the target PSU master-standby strategy, and switch the master-standby state of each PSU powered by the server based on the target PSU master-standby strategy, so that the number of master PSUs powered by the server meets the number of master PSUs specified in the target PSU master-standby strategy.
[0066] If the candidate energy consumption conversion efficiency corresponding to each candidate PSU master-standby strategy is not greater than the current energy consumption conversion efficiency, it means that the current PSU master-standby strategy is the scheme with the highest energy consumption conversion efficiency among all possible PSU master-standby strategies. Therefore, continue to use the current PSU master-standby strategy, that is, keep the configuration of each PSU for the server unchanged.
[0067] In a large data center environment, whether the total power consumption of a server cluster is too high is a key energy consumption indicator in data center and information technology (IT) infrastructure management, especially in an environment of large-scale deployment and high-density operation. In addition, in order to protect server hardware from damage caused by excessive load operation, improve the energy efficiency of the data center, reduce operating costs, and prolong the service life of the server, the server usually supports user setting of a power cap. When the power consumption of the CPU approaches or reaches the power cap value, the power consumption management unit will take a series of measures to reduce power consumption, such as reducing the frequency of the CPU, turning off unnecessary hardware components (such as a graphics processing unit (GPU), a memory controller, etc.), and optimizing power distribution. Although this technology can limit the total power of the machine within a certain range, this technology sacrifices the performance of the central processing unit (CPU) to limit the power, thereby causing the CPU to be downclocked and forcibly limiting the input / output (IO) of external devices. For a server cluster, this will greatly reduce the performance of the cluster.
[0068] To solve the above problems, the PSU master-slave strategy switching method provided in the present application can be used to maximize the power utilization rate of a single server in a server cluster on the basis of not affecting the CPU performance, so as to reduce the total power consumption of the server cluster.
[0069] In the embodiments of the present application, a plurality of PSU master-slave strategies are set for the server in advance. By determining the energy conversion efficiency of the current PSU master-slave strategy and each candidate PSU master-slave strategy with different numbers of master PSUs and different numbers of standby PSUs, and comparing the energy conversion efficiency of the current PSU master-slave strategy and each candidate PSU master-slave strategy, the PSU master-slave strategy with the maximum energy conversion efficiency can be determined, the power utilization rate of the server is maximized, and the server performance is not affected.
[0070] Embodiment 2
[0071] To further maximize the power utilization rate of the server, in the embodiments described above, in the embodiments of the present application, after obtaining the current energy conversion efficiency and the first load rate of the master PSU that supplies power to the server, the method further includes:
[0072] obtaining the optimal energy conversion efficiency of the master PSU at the first load rate;
[0073] determining whether the current energy conversion efficiency reaches the optimal energy conversion efficiency;
[0074] If not, the step of obtaining the candidate energy conversion efficiency saved for each candidate PSU active-standby strategy is continuously executed.
[0075] If yes, the step of obtaining the current energy conversion efficiency and the first load rate of the active PSU powering the server is continuously executed.
[0076] In the embodiments of the present application, the standard energy conversion efficiency of each active PSU under different load rates (i.e. the optimal energy conversion efficiency that the PSU can reach under the corresponding load rate) is saved in the electronic device, so that the electronic device obtains the standard energy conversion efficiency corresponding to the active PSU under the first load rate saved by itself through the baseboard management controller (BMC), and determines the standard energy conversion efficiency as the optimal energy conversion efficiency of the active PSU under the first load rate.
[0077] The standard energy conversion efficiency of the PSU under different load rates is the standard information provided by the manufacturer according to the model of the PSU (the model of the PSU can be the certification mark of the PSU) when the PSU is shipped, such as Figure 2 The corresponding relationship table of the load rate and the energy conversion efficiency of the PSU with different certification marks is shown. The certification marks (i.e. the model) of the PSU currently include white 80PLUS, copper 80PLUS, silver 80PLUS, gold 80PLUS, platinum 80PLUS, and titanium 80PLUS, and Figure 2 The corresponding energy conversion efficiency of the PSU with different certification marks under different load rates is also shown, such as: the energy conversion efficiency of the PSU with copper 80PLUS is 85% when the corresponding load rate is 50%; the energy conversion efficiency of the PSU with platinum 80PLUS is 90% when the corresponding load rate is 100%.
[0078] Therefore, after obtaining the current energy conversion efficiency of the main PSU and the first load rate, before obtaining the candidate energy conversion efficiency saved for each candidate PSU master-slave strategy, in the embodiment of the present application, it can be first judged whether the current energy conversion efficiency of the main PSU has reached the optimal state, that is, whether the current energy conversion efficiency of the main PSU reaches the corresponding optimal energy conversion efficiency. If yes, it means that the energy conversion efficiency of the current PSU master-slave strategy for powering the server has reached the optimal state, and the current PSU master-slave strategy can be kept unchanged. Since the power consumption of the server can change at any time, in order to realize dynamic detection of the energy conversion efficiency of the PSU master-slave strategy and realize dynamic switching of the PSU master-slave strategy, it is necessary to return to execute the step of obtaining the current energy conversion efficiency of the main PSU and the first load rate. If no, it means that the energy conversion efficiency of the current PSU master-slave strategy for powering the server has not reached the optimal state. In order to maximize the power utilization rate of the server, the step of obtaining the candidate energy conversion efficiency saved for each candidate PSU master-slave strategy can be continued to be executed to determine the PSU master-slave strategy with the maximum energy conversion efficiency among all the PSU master-slave strategies.
[0079] In the embodiment of the present application, by judging whether the energy conversion efficiency of the main PSU for powering the server reaches the optimal energy conversion efficiency, it can be determined that the optimal energy conversion efficiency has been reached in the case of yes, that is, the power utilization rate of the server has been maximized, and there is no need to waste computing resources to judge whether the PSU master-slave strategy needs to be switched. In the case of no, the subsequent steps are used to dynamically adjust the PSU master-slave strategy to select the PSU master-slave strategy with the maximum energy conversion efficiency, further maximizing the power utilization rate of the server.
[0080] Embodiment 3:
[0081] In order to meet the PSU master-slave requirements of the server, on the basis of the above embodiments, in the embodiment of the present application, the determination process of each candidate PSU master-slave strategy includes:
[0082] According to the total number of PSUs configured for the server and the saved preset PSU master-slave requirements, the candidate PSU master-slave strategies are determined. Each candidate PSU master-slave strategy contains a number of main PSUs which is not less than the minimum number of main PSUs in the master-slave requirements, and contains a number of standby PSUs which is not less than the minimum number of standby PSUs in the master-slave requirements.
[0083] Since the server can have a power saving priority requirement or a redundancy priority requirement, in the embodiment of the present application, a preset PSU master-slave requirement is pre-configured and saved for the server according to the power saving priority requirement or the redundancy priority requirement of the server; wherein the preset PSU master-slave requirement contains the minimum number of master PSUs configured for the server and the minimum number of standby PSUs configured for the server.
[0084] Wherein the power saving priority requirement is to reduce power consumption as much as possible without considering redundancy, and the minimum number of master PSUs is usually specified; the redundancy priority requirement is to give priority to the redundancy mechanism, and the minimum number of standby PSUs is usually specified.
[0085] Therefore, in a possible implementation, each candidate PSU master-slave strategy can be determined according to the total number of PSUs configured for the server and the minimum number of master PSUs configured for the server and the minimum number of standby PSUs configured for the server specified in the saved preset PSU master-slave requirement. In order to meet the power saving requirement and / or the redundancy requirement of the server, the number of master PSUs contained in each candidate PSU master-slave strategy is not less than the minimum number of master PSUs in the preset PSU master-slave requirement, and the number of standby PSUs contained is not less than the minimum number of standby PSUs in the preset PSU master-slave requirement; and the sum of the number of master PSUs and the number of standby PSUs in the candidate PSU master-slave strategy meets the total number of PSUs configured for the server.
[0086] For example, if the total number of PSUs configured for the server is 8, and the minimum number of master PSUs configured for the server is 3 and the minimum number of standby PSUs configured for the server is 2 in the preset PSU master-slave requirement, each candidate PSU master-slave strategy determined according to the total number of PSUs configured for the server and the saved preset PSU master-slave requirement includes: candidate PSU master-slave strategy 1 - master PSU number is 3, standby PSU number is 5, candidate PSU master-slave strategy 2 - master PSU number is 4, standby PSU number is 4, candidate PSU master-slave strategy 3 - master PSU number is 5, standby PSU number is 3, candidate PSU master-slave strategy 4 - master PSU number is 6, standby PSU number is 2.
[0087] In another possible implementation, all possible initial PSU master-slave strategies are determined according to the total number of PSUs configured for the server, and the initial PSU master-slave strategies that do not meet the preset PSU master-slave requirement are removed according to the minimum number of master PSUs configured for the server and the minimum number of standby PSUs configured for the server specified in the saved preset PSU master-slave requirement, to obtain each candidate PSU master-slave strategy.
[0088] It is also assumed that the total number of PSUs configured for the server is 8, and the minimum number of master PSUs configured for the server is 3 and the minimum number of standby PSUs configured for the server is 2 in the preset PSU master-standby requirement. For example, the following is described: according to the total number of PSUs configured for the server being 8, all possible initial PSU master-standby strategies can be determined, including initial PSU master-standby strategy 1, in which the number of master PSUs is 1 and the number of standby PSUs is 7, initial PSU master-standby strategy 2, in which the number of master PSUs is 2 and the number of standby PSUs is 6, initial PSU master-standby strategy 3, in which the number of master PSUs is 3 and the number of standby PSUs is 5, initial PSU master-standby strategy 4, in which the number of master PSUs is 4 and the number of standby PSUs is 4, initial PSU master-standby strategy 5, in which the number of master PSUs is 5 and the number of standby PSUs is 3, initial PSU master-standby strategy 6, in which the number of master PSUs is 6 and the number of standby PSUs is 2, initial PSU master-standby strategy 7, in which the number of master PSUs is 7 and the number of standby PSUs is 1, and initial PSU master-standby strategy 8, in which the number of master PSUs is 8 and the number of standby PSUs is 0; according to the minimum number of master PSUs configured for the server being 3 and the minimum number of standby PSUs being 2 in the preset PSU master-standby requirement, it is determined that initial PSU master-standby strategies 1, 2, 7, and 8 do not meet the preset PSU master-standby requirement, and therefore the initial PSU master-standby strategies are excluded, and the remaining initial PSU master-standby strategies (initial PSU master-standby strategies 3, 4, 5, and 6) are determined as candidate PSU master-standby strategies.
[0089] In the embodiments of the present application, the candidate PSU master-standby strategies are determined according to the total number of PSUs configured for the server and the saved preset PSU master-standby requirement, so that the target PSU master-standby strategy finally determined can meet the PSU master-standby requirement of the server.
[0090] Embodiment 4:
[0091] In order to determine the candidate energy consumption conversion efficiency of each candidate PSU master-standby strategy, on the basis of the above embodiments, in the embodiments of the present application, the determination process of the candidate energy consumption conversion efficiency of each candidate PSU master-standby strategy includes:
[0092] determining a total load rate according to the first number of master PSUs included in the current PSU master-standby strategy and the first load rate;
[0093] for any candidate PSU master-standby strategy, determining a second load rate of master PSUs in the candidate PSU master-standby strategy under the total load rate according to the second number of master PSUs included in the candidate PSU master-standby strategy, and obtaining the candidate energy consumption conversion efficiency of the candidate PSU master-standby strategy saved for the second load rate.
[0094] According to the first number of the main PSUs contained in the current PSU master-slave strategy currently powering the server and the first load rate, a product of the first number of the main PSUs contained in the current PSU master-slave strategy and the first load rate is determined, and the product is determined as the total load rate.
[0095] For any candidate PSU master-slave strategy, according to the second number of the main PSUs contained in the candidate PSU master-slave strategy and the total load rate determined above, a ratio of the total load rate to the second number is determined, and the ratio is determined as the second load rate of the main PSUs in the candidate PSU master-slave strategy under the total load rate.
[0096] Since the total input power of any candidate PSU master-slave strategy is the product of the second number of the main PSUs in the candidate PSU master-slave strategy, the second load rate of the main PSUs in the candidate PSU master-slave strategy, and the rated maximum input power of the main PSUs, wherein the product of the second number of the main PSUs in the candidate PSU master-slave strategy and the second load rate of the main PSUs in the candidate PSU master-slave strategy is the total load rate, and the rated maximum input power of the main PSUs is unchanged, therefore, under the condition that the total load rate is unchanged, the value of the total input power of each candidate PSU master-slave strategy will not change regardless of the change in the number of the main PSUs. However, when the load rate borne by the main PSUs changes, it will affect the change in the energy consumption conversion efficiency (as shown in Figure 2 Therefore, in order to be able to determine the candidate energy consumption conversion efficiency of each candidate PSU master-slave strategy corresponding to any load rate, in the embodiments of the present application, for any candidate PSU master-slave strategy, the energy consumption conversion efficiency of the main PSUs in the candidate PSU master-slave strategy under any load rate is saved in the electronic device.
[0097] Therefore, after the second load rate of the main PSUs in each candidate PSU master-slave strategy under the total load rate is determined, for any candidate PSU master-slave strategy, according to the second load rate of the main PSUs in the candidate PSU master-slave strategy and the saved energy consumption conversion efficiency of the main PSUs in the candidate PSU master-slave strategy under any load rate, the energy consumption conversion efficiency of the main PSUs under the second load rate is obtained, and the energy consumption conversion efficiency is determined as the candidate energy consumption conversion efficiency corresponding to the candidate PSU master-slave strategy.
[0098] In the embodiments of the present application, the determination of the second load rate of the main PSUs in each candidate PSU master-slave strategy under the total load rate can be based on the saved energy consumption conversion efficiency of the main PSUs in each candidate PSU master-slave strategy under any load rate to determine the candidate energy consumption conversion efficiency of each candidate PSU master-slave strategy.
[0099] Embodiment 5:
[0100] In order to determine the candidate energy conversion efficiency of each candidate PSU master-standby strategy, in the embodiments of the present application, the obtaining of the candidate energy conversion efficiency of the candidate PSU master-standby strategy corresponding to the second load rate comprises:
[0101] According to the correspondence between the load rate and the rated conversion efficiency of the PSU, the target rated conversion efficiency corresponding to the second load rate is determined, and the target rated conversion efficiency is determined as the candidate energy conversion efficiency of the candidate PSU master-standby strategy.
[0102] In the embodiments of the present application, the correspondence between the load rate and the rated conversion efficiency of each PSU is stored in the electronic device, wherein the rated conversion efficiency is the standard energy conversion efficiency in the above embodiments, that is, the correspondence between the load rate and the rated conversion efficiency of each PSU is the correspondence between the load rate and the standard energy conversion efficiency, and the correspondence between the load rate and the rated conversion efficiency of the PSU can be referred to Figure 2 The correspondence table shown.
[0103] Therefore, after the second load rate of the master PSU in the candidate PSU master-standby strategy is determined, the target rated conversion efficiency corresponding to the second load rate is determined according to the second load rate and the correspondence between the load rate and the rated conversion efficiency of the PSU.
[0104] Since the standard energy conversion efficiency (rated conversion efficiency) of the same model of PSU is the same under the same load rate, and the models of the PSUs configured for the same server in the embodiments of the present application are the same, the rated conversion efficiency of the master PSU in any candidate PSU master-standby strategy is the same under the same load rate, and when the energy conversion efficiency of each master PSU in the PSU master-standby strategy is the same, the energy conversion efficiency corresponding to the PSU master-standby strategy is also the same as the energy conversion efficiency of any PSU in the PSU master-standby strategy, therefore, in the embodiments of the present application, when the load rate of the master PSU in the candidate PSU master-standby strategy is the second load rate, the target rated conversion efficiency corresponding to the master PSU under the second load rate is determined as the candidate energy conversion efficiency of the candidate PSU master-standby strategy.
[0105] In the embodiments of the present application, since the models of the PSUs configured for the server are the same, by determining the target rated conversion efficiency corresponding to the master PSU under the second load rate, the target rated conversion efficiency can be determined as the candidate energy conversion efficiency of the candidate PSU master-standby strategy.
[0106] Embodiment 6:
[0107] In order to obtain the current energy conversion efficiency of the master PSU, on the basis of the above embodiments, in the embodiments of the present application, the obtaining of the current energy conversion efficiency of the master PSU for powering the server comprises:
[0108] obtaining current input power and current output power of a current main PSU currently powering the server;
[0109] determining a current energy conversion efficiency of the main PSU according to the current input power and the current output power.
[0110] In a possible implementation, the current input power of any main PSU currently powering the server is read by a clamp meter, an intelligent power distribution unit (PDU), a sensor built in the PSU, or a BMC; the current output power of any main PSU currently powering the server is read by the BMC.
[0111] According to the current input power and the current output power of any main PSU, a ratio of the current output power to the current input power is determined, and the ratio is determined as the current energy conversion efficiency of the main PSU. Since the PSUs configured for the server are of the same model, and the PSUs of the same model are automatically load balanced in the redundancy mode, the current energy conversion efficiency of any main PSU can be determined as the current energy conversion efficiency of each main PSU currently powering the server.
[0112] In another possible implementation, the current input power and the current output power of all main PSUs currently powering the server are read, and according to the current input power and the current output power of all main PSUs, a ratio of the current output power to the current input power is determined, and the ratio is determined as the current energy conversion efficiency of the PSU active-standby strategy, which is determined as the current energy conversion efficiency of any main PSU in the PSU active-standby strategy.
[0113] In the embodiments of the present application, the current energy conversion efficiency of the main PSU can be obtained by obtaining the current input power and the current output power of the main PSU in the PSU active-standby strategy.
[0114] Embodiment 7:
[0115] On the basis of the above embodiments, the embodiments of the present application provide a schematic diagram of a PSU active-standby strategy switching process, as shown in Figure 3 The process includes:
[0116] S301: The BMC obtains a current PSU active-standby strategy currently powering the server, and current input power, current output power, and a first load rate of a main PSU powering the server.
[0117] S302: According to the current input power and the current output power of the main PSU currently powering the server, a current energy conversion efficiency of the main PSU is determined.
[0118] S303: obtaining the optimal energy conversion efficiency of the master PSU at the first load rate according to the first load rate of the master PSU.
[0119] S304: determining whether the current energy conversion efficiency reaches the optimal energy conversion efficiency, if not, performing S305; if yes, performing S301.
[0120] S305: obtaining the candidate energy conversion efficiency saved for each candidate PSU master-slave strategy.
[0121] S306: determining whether there is a candidate energy conversion efficiency greater than the current energy conversion efficiency, if yes, performing S307; if not, performing S301.
[0122] S307: determining the candidate PSU master-slave strategy corresponding to the maximum candidate energy conversion efficiency as the target PSU master-slave strategy.
[0123] S308: switching the master-slave state of the PSU for server power supply according to the target PSU master-slave strategy.
[0124] Taking the total number of PSUs configured for the server as 6, the model of each PSU as platinum 80PLUS, and the rated maximum input power of each PSU as 2000W as an example, the phenomenon that the energy conversion efficiency corresponding to different PSU master-slave strategies is different is described as follows:
[0125] For example, if the current PSU master-slave strategy contains 4 master PSUs and 2 standby PSUs, and the first load rate of the master PSUs all reaches 25%, the current total input power is 4*2000*25%=2000W, and the current total output power is 1800W, then the current energy conversion efficiency is 1800 / 2000=90%.
[0126] If there is a candidate PSU master-slave strategy containing 2 master PSUs and 4 standby PSUs, then based on the total load rate of 25%*4=100% described above, the load rate of each master PSU in the candidate PSU master-slave strategy is determined to be 100% / 2=50%, and the candidate energy conversion efficiency of the candidate PSU master-slave strategy is determined to be 92% through the saved correspondence between the load rate and the rated conversion efficiency of the PSU. At this time, the total input power corresponding to the candidate PSU master-slave strategy is 2*2000*50%=2000W, and the total output power is 2000*92%=1840W. Therefore, it can be seen that under the same total input power, by adjusting the master-slave state of the PSU, there is a difference of 40W in power consumption, and after adjustment, there is higher power output, thereby achieving the effect of reducing the power consumption of the server.
[0127] As another example, if the current PSU master-slave strategy includes 2 master PSUs and 4 backup PSUs, and the first load rate of the master PSU reaches 100%, the current total input power is 2*2000*100%=4000W, and the current total output power is 3560W, then the current energy conversion efficiency is 3560 / 4000=89%.
[0128] If a candidate PSU master-slave strategy includes four master PSUs and two backup PSUs, then based on the aforementioned total load factor of 100% * 2 = 200%, the load factor of each master PSU in this candidate PSU master-slave strategy is determined to be 200% / 4 = 50%. Based on the stored relationship between the PSU load factor and the rated conversion efficiency, the candidate energy conversion efficiency for this candidate PSU master-slave strategy is determined to be 92%. Furthermore, the total input power for this candidate PSU master-slave strategy is 4 * 2000 * 50% = 4000W, and the total output power is 4000 * 92% = 3680W. Therefore, under the same total input power, adjusting the PSU master-slave status can result in a 120W power consumption difference, resulting in higher power output and thus reducing server power consumption.
[0129] Example 8:
[0130] Based on the same technical concept, on the basis of the above embodiments, this application provides a PSU active / standby strategy switching device. Figure 4 A schematic diagram of a PSU master / slave strategy switching device structure provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the device includes:
[0131] A first acquisition module 401 is configured to acquire a current PSU active / standby strategy for powering a server, and a current energy conversion efficiency and a first load rate of a primary PSU for powering the server;
[0132] The second acquisition module 402 is configured to acquire candidate energy conversion efficiencies stored for each candidate PSU master / slave strategy; wherein each candidate PSU master / slave strategy includes a different number of master PSUs and a different number of backup PSUs;
[0133] The judgment module 403 is used to determine whether there is a candidate energy consumption conversion efficiency greater than the current energy consumption conversion efficiency. If so, the candidate PSU master-slave strategy corresponding to the maximum candidate energy consumption conversion efficiency is determined as the target PSU master-slave strategy; according to the target PSU master-slave strategy, the master-slave status of each PSU powering the server is switched.
[0134] In a possible implementation, the first obtaining module 401 is further configured to: obtain a current energy conversion efficiency of a main PSU that supplies power for the server and a first load rate, and obtain a saved optimal energy conversion efficiency of the main PSU at the first load rate; determine whether the current energy conversion efficiency reaches the optimal energy conversion efficiency; if not, continue to perform the step of obtaining the saved candidate energy conversion efficiency of each candidate PSU active-standby strategy; and if yes, continue to perform the step of obtaining the current energy conversion efficiency of the main PSU that supplies power for the server and the first load rate.
[0135] In a possible implementation, the second obtaining module 402 is specifically configured to: determine the candidate PSU active-standby strategy according to a total number of PSUs configured for the server and a saved preset PSU active-standby requirement; wherein a number of main PSUs included in each candidate PSU active-standby strategy is not less than a minimum number of main PSUs in the active-standby requirement, and a number of standby PSUs included in each candidate PSU active-standby strategy is not less than a minimum number of standby PSUs in the active-standby requirement.
[0136] In a possible implementation, the second obtaining module 402 is specifically configured to: determine a total load rate according to a first number of main PSUs included in the current PSU active-standby strategy and the first load rate; for any candidate PSU active-standby strategy, determine a second load rate of main PSUs in the candidate PSU active-standby strategy at the total load rate according to a second number of main PSUs included in the candidate PSU active-standby strategy; and obtain a saved candidate energy conversion efficiency of the candidate PSU active-standby strategy at the second load rate.
[0137] In a possible implementation, the second obtaining module 402 is specifically configured to: determine a target rated conversion efficiency corresponding to the second load rate according to a saved correspondence between load rates and rated conversion efficiencies of PSUs, and determine the target rated conversion efficiency as the candidate energy conversion efficiency of the candidate PSU active-standby strategy.
[0138] In a possible implementation, the first obtaining module 401 is specifically configured to: obtain a current input power and a current output power of a main PSU that supplies power for the server; and determine a current energy conversion efficiency of the main PSU according to the current input power and the current output power.
[0139] Embodiment 9
[0140] Based on the same technical concept, the present application further provides an electronic device, Figure 5 A structural schematic diagram of an electronic device provided by an embodiment of the present application is shown in FIG. 1. Figure 5As shown, the server includes: a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504;
[0141] The memory 503 stores a computer program, when the program is executed by the processor 501, the processor 501 executes the following steps:
[0142] Obtain a current PSU master-slave strategy currently powering the server, and a current energy conversion efficiency of a master PSU powering the server and a first load rate;
[0143] Obtain a candidate energy conversion efficiency saved for each candidate PSU master-slave strategy; wherein the number of master PSUs contained in each candidate PSU master-slave strategy is different, and the number of standby PSUs contained is different;
[0144] Determine whether there is a candidate energy conversion efficiency greater than the current energy conversion efficiency, if yes, determine the candidate PSU master-slave strategy corresponding to the maximum candidate energy conversion efficiency as a target PSU master-slave strategy; and switch the master-slave state of each PSU powering the server according to the target PSU master-slave strategy.
[0145] In a possible implementation, the processor 501 is further configured to, after obtaining the current energy conversion efficiency of the master PSU powering the server and the first load rate, obtain an optimal energy conversion efficiency of the master PSU saved at the first load rate; determine whether the current energy conversion efficiency reaches the optimal energy conversion efficiency; if not, continue to execute the step of obtaining the candidate energy conversion efficiency saved for each candidate PSU master-slave strategy; and if yes, continue to execute the step of obtaining the current energy conversion efficiency of the master PSU powering the server and the first load rate.
[0146] In a possible implementation, the processor 501 is specifically configured to determine the each candidate PSU master-slave strategy according to the total number of PSUs configured for the server and a saved preset PSU master-slave requirement; wherein the number of master PSUs contained in each candidate PSU master-slave strategy is not less than the minimum number of master PSUs in the master-slave requirement, and the number of standby PSUs contained is not less than the minimum number of standby PSUs in the master-slave requirement.
[0147] In a possible implementation, the processor 501 is specifically configured to: determine a total load rate according to the first number of the master PSU and the first load rate in the current PSU master-slave strategy; for any candidate PSU master-slave strategy, determine a second load rate of the master PSU in the candidate PSU master-slave strategy under the total load rate according to a second number of the master PSU in the candidate PSU master-slave strategy; and obtain a candidate energy consumption conversion efficiency of the candidate PSU master-slave strategy saved for the second load rate.
[0148] In a possible implementation, the processor 501 is specifically configured to: determine a target rated conversion efficiency corresponding to the second load rate according to the saved correspondence between the load rate and the rated conversion efficiency of the PSU, and determine the target rated conversion efficiency as the candidate energy consumption conversion efficiency of the candidate PSU master-slave strategy.
[0149] In a possible implementation, the processor 501 is specifically configured to: obtain a current input power and a current output power of the master PSU that supplies power to the server; and determine a current energy consumption conversion efficiency of the master PSU according to the current input power and the current output power.
[0150] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0151] The communication interface 502 is configured to perform communication between the above electronic device and other devices.
[0152] The memory can include a Random Access Memory (RAM) and can also include a Non-Volatile Memory (NVM), for example, at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0153] The processor mentioned above can be a general-purpose processor, including a central processing unit, a network processing unit (NP), and the like; can also be a digital signal processing (DSP) processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and the like.
[0154] Embodiment 10:
[0155] Based on the same technical concept, the embodiment of the present application provides a computer readable storage medium, which stores a computer program executable by an electronic device, and when the program runs on the electronic device, causes the electronic device to execute the above-mentioned any embodiment.
[0156] The above-mentioned computer readable storage medium can be any available medium or data storage device accessible by a processor in the electronic device, including but not limited to magnetic storage such as floppy disk, hard disk, magnetic tape, magneto-optical disk (MO) and the like, optical storage such as CD, DVD, BD, HVD and the like, and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state disk (SSD) and the like.
[0157] Based on the same technical concept, the embodiment of the present application also provides a computer program product, which includes computer program code, and when the computer program code runs on a computer, causes the computer to execute the above-mentioned any embodiment. Since the principle of solving the problem of the above-mentioned computer program product is similar to the PSU master-slave strategy switching method, the implementation of the above-mentioned computer program product can be referred to the implementation of the method, and the repeated parts will not be described.
[0158] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0159] The present application is described with reference to flowcharts and / or block diagrams of the method, device (system), and computer program product according to the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the computer or other programmable data processing devices produce a device that implements the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The functions specified in one flow or multiple flows and / or blocks
[0160] These computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture including instructions which implement the flow Figure 1 The flow or flows and / or blocks Figure 1 The flow or flows and / or blocks
[0161] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions that execute on the computer or other programmable apparatus provide steps for implementing the flow Figure 1 The flow or flows and / or blocks Figure 1 The flow or flows and / or blocks
[0162] Obviously, numerous modifications and variations of the present application are possible in light of the above teachings. It is therefore to be understood that within the scope of the appended claims and their equivalents, the application can be practiced otherwise than as specifically described.
Claims
1. A PSU master / slave strategy switching method, characterized in that: The method comprises: Obtaining a primary / standby strategy of a current power supply unit (PSU) currently supplying power to a server, as well as a current energy conversion efficiency and a first load rate of a primary PSU supplying power to the server; Obtaining candidate energy conversion efficiencies saved for each candidate PSU master / slave strategy; wherein each candidate PSU master / slave strategy includes a different number of master PSUs and a different number of backup PSUs; Determine whether there is a candidate energy consumption conversion efficiency greater than the current energy consumption conversion efficiency. If so, determine the candidate PSU master-slave strategy corresponding to the maximum candidate energy consumption conversion efficiency as the target PSU master-slave strategy; according to the target PSU master-slave strategy, switch the master-slave status of each PSU powering the server.
2. The method according to claim 1, characterized in that After obtaining the current energy consumption conversion efficiency and the first load rate of the main PSU powering the server, the method further includes: Obtaining the saved optimal energy conversion efficiency of the main PSU at the first load rate; Determining whether the current energy consumption conversion efficiency reaches the optimal energy consumption conversion efficiency; If not, continue to execute the step of obtaining the candidate energy consumption conversion efficiency saved for each candidate PSU active / standby strategy; If so, continue to execute the step of obtaining the current energy consumption conversion efficiency and the first load rate of the main PSU that supplies power to the server.
3. The method according to claim 1, characterized in that The process of determining the active / standby strategy for each candidate PSU includes: The candidate PSU master-slave strategies are determined based on the total number of PSUs configured for the server and the saved preset PSU master-slave requirements; wherein the number of master PSUs included in each candidate PSU master-slave strategy is not less than the minimum number of master PSUs in the master-slave requirements, and the number of standby PSUs included is not less than the minimum number of standby PSUs in the master-slave requirements.
4. The method according to claim 1, wherein The process of determining the candidate energy conversion efficiency of each candidate PSU active / standby strategy includes: determining a total load rate according to a first number of master PSUs included in the current PSU master-standby strategy and the first load rate; For any candidate PSU master-slave strategy, determine the second load rate of the master PSU in the candidate PSU master-slave strategy under the total load rate based on the second number of master PSUs included in the candidate PSU master-slave strategy; and obtain the candidate energy consumption conversion efficiency of the candidate PSU master-slave strategy saved for the second load rate.
5. The method according to claim 4, characterized in that The obtaining of the candidate energy consumption conversion efficiency of the candidate PSU active / standby strategy saved for the second load rate includes: According to the saved correspondence between the load rate and the rated conversion efficiency of the PSU, the target rated conversion efficiency corresponding to the second load rate is determined, and the target rated conversion efficiency is determined as the candidate energy consumption conversion efficiency of the candidate PSU active-standby strategy.
6. The method according to claim 1, characterized in that The obtaining of the current energy conversion efficiency of the main PSU supplying power to the server includes: Obtaining the current input power and current output power of the main PSU that supplies power to the server; A current energy consumption conversion efficiency of the main PSU is determined according to the current input power and the current output power.
7. A PSU master / slave strategy switching device, characterized in that: The device comprises: A first acquisition module is used to obtain a current PSU active / standby strategy for powering the server, and a current energy conversion efficiency and a first load rate of a main PSU for powering the server; The second acquisition module is used to obtain the candidate energy consumption conversion efficiency saved for each candidate PSU master-slave strategy; wherein the number of master PSUs included in each candidate PSU master-slave strategy is different, and the number of backup PSUs included is different; A judgment module is used to determine whether there is a candidate energy consumption conversion efficiency greater than the current energy consumption conversion efficiency. If so, the candidate PSU master-slave strategy corresponding to the maximum candidate energy consumption conversion efficiency is determined as the target PSU master-slave strategy; according to the target PSU master-slave strategy, the master-slave status of each PSU powering the server is switched.
8. The device according to claim 7, characterized in that The first acquisition module is also used to obtain the current energy consumption conversion efficiency and the first load rate of the main PSU powering the server, and then obtain the saved optimal energy consumption conversion efficiency of the main PSU under the first load rate; determine whether the current energy consumption conversion efficiency reaches the optimal energy consumption conversion efficiency; if not, continue to execute the step of obtaining the candidate energy consumption conversion efficiency saved for each candidate PSU master-slave strategy; if so, continue to execute the step of obtaining the current energy consumption conversion efficiency and the first load rate of the main PSU powering the server.
9. An electronic device, characterized in that: The electronic device includes at least a processor and a memory, and the processor is configured to implement the steps of the PSU master-slave strategy switching method according to any one of claims 1 to 6 when executing a computer program stored in the memory.
10. A computer storage medium, characterized in that It stores a computer program that can be executed by an electronic device. When the program runs on the electronic device, the electronic device executes the steps of the PSU master-slave strategy switching method according to any one of claims 1 to 6.