[go: up one dir, main page]

CN117406846A - Power control method, device, computer equipment and storage medium - Google Patents

Power control method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN117406846A
CN117406846A CN202311708580.5A CN202311708580A CN117406846A CN 117406846 A CN117406846 A CN 117406846A CN 202311708580 A CN202311708580 A CN 202311708580A CN 117406846 A CN117406846 A CN 117406846A
Authority
CN
China
Prior art keywords
power
load range
power supply
load
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311708580.5A
Other languages
Chinese (zh)
Inventor
谷俊杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202311708580.5A priority Critical patent/CN117406846A/en
Publication of CN117406846A publication Critical patent/CN117406846A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/263Arrangements for using multiple switchable power supplies, e.g. battery and AC
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5094Allocation of resources, e.g. of the central processing unit [CPU] where the allocation takes into account power or heat criteria

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Power Engineering (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention relates to the technical field of computers and discloses a power supply control method, a device, computer equipment and a storage medium, wherein the power supply control method monitors the power supply load of each power supply in a plurality of groups of power supplies of a power supply cluster; determining a current load range of a power supply load of the first power supply; when the current load range of the power load of the first power supply is a first preset load range, determining a control strategy corresponding to the first preset load range; and selecting a target power supply from the plurality of groups of power supplies to execute the control strategy based on the control strategy. The power supply load of the power supply can be monitored, the load range of the power supply load can be determined, then the control strategy corresponding to the load range is determined, and the target power supply is selected from a plurality of groups of power supplies to execute the control strategy based on the control strategy, so that the power supply can be controlled more finely, the power supply condition can be reflected in time through monitoring the power supply load, and the real-time performance of management is improved.

Description

Power supply control method, device, computer equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a power control method, a device, a computer device, and a storage medium.
Background
The server power supply is a conversion device for providing the server device with required electric energy, as the data volume is increased and the processing speed is increased, the demand on calculation power is higher and higher, the energy consumption is increased accordingly, a large amount of power supplies are needed to meet the power supply requirement of the server cluster, the current power supply control is generally performed through a management unit, but in some extreme cases, the management of the power supply has the problems of time delay and unreasonable adjustment, and the problem of server operation possibly caused by insufficient power supply, so that economic loss is brought.
Disclosure of Invention
In view of the above, the present invention provides a power control method, apparatus, computer device and storage medium, so as to solve the problem of untimely power control.
In a first aspect, the present invention provides a power control method, the method being applied to a power control system, the power control system comprising a control terminal and a power cluster, the control terminal being connected to each power supply in the power cluster, the method being performed by the control terminal, the method comprising:
monitoring a power load of each power supply in a plurality of groups of power supplies of the power supply cluster;
determining a current load range of a power supply load of a first power supply, wherein the first power supply is any power supply in a plurality of groups of power supplies;
When the current load range of the power load of the first power supply is a first preset load range, determining a control strategy corresponding to the first preset load range;
and selecting a target power supply from the plurality of groups of power supplies to execute the control strategy based on the control strategy.
By the method, the power load of each power supply in the plurality of groups of power supplies of the power supply cluster is monitored; determining a current load range of a power supply load of a first power supply, wherein the first power supply is any power supply in a plurality of groups of power supplies; when the current load range of the power load of the first power supply is a first preset load range, determining a control strategy corresponding to the first preset load range; and selecting a target power supply from the plurality of groups of power supplies to execute the control strategy based on the control strategy. The power supply control method has the advantages that the load range of the power supply load can be determined by monitoring the power supply load of the power supply, then the control strategy corresponding to the load range is determined, and the target power supply is selected from a plurality of groups of power supplies to execute the control strategy based on the control strategy, so that the power supply can be controlled more finely, the power supply condition can be timely reflected by monitoring the power supply load, the real-time performance of management is improved, meanwhile, the control strategy is timely adjusted through the load change, the energy conservation is facilitated, and the excessive waste of energy is avoided.
In an alternative embodiment, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the first load range, determining a control strategy corresponding to the first preset load range includes:
respectively selecting one power supply with the longest sleep time from each group of power supplies of the multiple groups of power supplies as a target starting power supply;
sequencing all target starting power supplies according to the sleep time to obtain a first sequencing queue;
generating a first power control strategy according to the first sequencing queue, wherein the first power control strategy comprises: and starting the target starting power supply in sequence according to the first sequencing queue until the load range of the load of the first power supply is the second load range.
By the mode, when the power supply load is large, the power supply with the longest sleep time is alternately started from a plurality of groups of power supplies until the load enters a normal interval, the starting time of each power supply in each group of power supplies and the quantity of the started power supplies can be balanced well, and the occurrence of unbalanced power supplies started in groups and the risk of power failure during faults is avoided.
In an alternative embodiment, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the first load range, determining a control strategy corresponding to the first preset load range includes:
extracting the sleep time of each power supply in the plurality of groups of power supplies;
sequencing all power supplies according to the sleep time to obtain a second sequencing queue;
generating a second power control strategy according to the second ordering queue, wherein the second power control strategy comprises: and sequentially starting the power supplies in the second sequencing queue according to the second sequencing queue.
By the mode, the power supply with the longest dormancy time in all groups of power supplies can be turned on preferentially, the situation that the power supply is excessively used or excessively idle is avoided, and the power supply utilization rate is improved.
In an alternative embodiment, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the third load range, determining a control strategy corresponding to the first preset load range includes:
Extracting a power supply from each group of power supplies of the plurality of groups of power supplies as a target sleep power supply;
sequencing the target dormancy power supply to generate a third sequencing queue;
generating a third power control strategy according to the third sorting queue, wherein the third power control strategy comprises: and executing dormancy operation on the target dormancy power supply according to the third ordering queue.
By the above mode, the third load range is a range interval with lower load, representing that the efficiency of the power supply is lower, in order to save energy, a part of the power supplies can be alternately turned off from a plurality of groups of power supplies, namely, one power supply is respectively extracted from each group of power supplies to serve as a target dormancy power supply, the target dormancy power supplies are sequenced, and dormancy operation is sequentially carried out on the target dormancy power supplies, so that the utilization rate of the power supplies can be improved.
In an alternative embodiment, the method further comprises:
acquiring the number of power supplies in an on state in each group of power supplies, and determining the total number of the on power supplies;
performing an authorization operation on one or more of the power supplies in the sleep state when it is determined that the total number of turned-on power supplies is less than the target number of power supplies;
and stopping the operation of authorizing the dormant power supply when the sum of the authorized power supply number and the total power supply starting number meets the preset requirement.
By the mode, the dormant power supply can be authorized, so that the authorized power supply can complete state control on the power supply when the management unit fails or fails to process, and stable operation of the system is ensured.
In an alternative embodiment, the power cluster is configured to supply power to a powered device, and the method further includes:
monitoring the state of each power supply circuit in the power supply equipment;
when any power supply circuit of the powered equipment is monitored to be in a power-off state, starting operation is carried out on all power supplies in a dormant state.
By the mode, when one-path power failure occurs in the power supply equipment, all the dormant power supplies are quickly started, so that power supply support can be provided for the power supply equipment in time, and the situation that the power supply is down due to insufficient electric energy and the like is avoided.
In an alternative embodiment, when it is determined that the total number of power-on sources is less than the target number of power sources, performing an authorization operation on one or more of the power sources in the sleep state includes:
when the total number of the power supplies is determined to be smaller than the target number of the power supplies, searching a preset authorized register from one or more registers of the dormant power supplies;
And setting the value of the preset authorization register as a preset authorization value.
By the mode, the register flag bit can be set in the register of the control chip of the power supply, and the flag bit is set to be a preset authorization value, for example, 1 during authorization, so that the power supply can complete self-control in time when the power supply control end is not in control of the power supply.
In an alternative embodiment, the method further comprises:
the sleep time of each target power-on is cleared.
In an alternative embodiment, the method further comprises:
and respectively starting to execute the sleep operation for each target sleep power supply, and performing the sleep time timing operation.
In an alternative embodiment, the target number of power sources is used to indicate the number of power sources that can meet the maximum power of the device to be powered.
In a second aspect, the present invention provides a power control method applied to a power control system including a control terminal and a power cluster, the control terminal being connected to each power in the power cluster, the method being performed by any one of the power supplies, the method comprising:
monitoring the running state of the self;
when the running state is determined to be an opening state, monitoring the load of the self-body;
Determining the current load range of the self load;
when the current load range of the self load is determined to be a second preset load range, determining a state control strategy corresponding to the second preset load range;
and controlling the power supply state of the power supply based on the state control strategy.
By the mode, the running state of the self-body is monitored; when the running state is determined to be an opening state, monitoring the load of the self-body; determining the current load range of the self load; when the current load range of the self load is determined to be a second preset load range, determining a state control strategy corresponding to the second preset load range; and controlling the power supply state of the power supply based on the state control strategy. The control terminal can fail or the load changes drastically, when the control terminal is not in control, the power supply controls the state of the control terminal, the abrupt change of the load can be timely dealt with, and the stable operation of the system is better ensured.
In an optional implementation manner, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the load of the second preset load range currently belongs is the fourth load range, determining a state control policy corresponding to the fourth load range includes:
When the load range to which the self load currently belongs is determined to be a fourth load range, the state control strategy is:
and shielding the dormancy instruction sent by the control terminal.
By the mode, load detection of the power supply is faster than that of the power supply control end to monitor the power supply load, when the power supply load range is the fourth load range, for example, the load range is higher, the load is possibly increased rapidly, delay conditions exist in the monitoring of the power supply control end, and the power supply control end sleeps the power supply if sending an instruction, so that a power shortage system is possibly caused, and therefore, the sleep instruction sent by the control end is shielded, and power supply stability of the system can be better protected.
In an optional implementation manner, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the load of the second preset load range currently belongs is the fifth load range, determining a state control policy corresponding to the fifth load range includes:
when the load range to which the self load currently belongs is determined to be a fifth load range, the state control strategy is:
And reducing the self output voltage to the target early warning voltage.
By the mode, when the current load range of the self load is the fifth load range, the self output voltage is reduced to the target early warning voltage, and the target early warning voltage can be used for triggering power supply operation, so that the power supply can conveniently control the self state.
In an alternative embodiment, the method further comprises:
monitoring bus voltage when the running state is determined to be a dormant state;
when the bus voltage is determined to be smaller than or equal to a preset voltage threshold value, acquiring the authority state of the bus voltage;
and when the permission state is determined to be the authorized state, executing the opening operation on the self.
In an alternative embodiment, when the running state is determined to be the sleep state, the method further includes:
monitoring the output voltage of each power supply in the on state in all groups of power supplies;
when the output voltage of each power supply in any one on state is determined to be the target early warning voltage, acquiring the authority state of the power supply;
and when the permission state is determined to be the authorized state, executing the opening operation on the self.
In an alternative embodiment, the power cluster where the first power source is located is used to supply power to the powered device, and the method further includes:
Monitoring the state of each power supply circuit in the power supply equipment;
when any power supply circuit of the power supply equipment is monitored to be in a power-off state, an opening instruction is sent to all the power supplies in dormancy, so that all the power supplies in dormancy execute opening operation on the power supplies.
In a third aspect, the present invention provides a power supply control apparatus comprising:
the first monitoring module is used for monitoring the power load of each power supply in the plurality of groups of power supplies of the power supply cluster;
the first determining module is used for determining the current load range of the power supply load of the first power supply, wherein the first power supply is any one of a plurality of groups of power supplies;
the second determining module is used for determining a control strategy corresponding to a preset load range when the current load range of the power load of the first power supply is the preset load range;
and the execution module is used for selecting a target power supply from the plurality of groups of power supplies to execute the control strategy based on the control strategy.
In some optional embodiments, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the first load range, the second determining module includes:
The first selecting unit is used for selecting one power supply with the longest sleep time from each group of power supplies of the plurality of groups of power supplies as a target starting power supply;
the first sequencing unit is used for sequencing all the target starting power supplies according to the dormancy time to obtain a first sequencing queue;
the first generating unit is configured to generate a first power control policy according to the first ordering queue, where the first power control policy includes:
and starting the target starting power supply in sequence according to the first sequencing queue until the load range of the load of the first power supply is the second load range.
In some optional embodiments, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the first load range, the second determining module includes:
a first extracting unit for extracting a sleep time of each of the plurality of power supplies;
the second sequencing unit is used for sequencing all the power supplies according to the sleep time to obtain a second sequencing queue;
The second generating unit is configured to generate a second power control policy according to the second ordering queue, where the second power control policy includes: and sequentially starting the power supplies in the second sequencing queue according to the second sequencing queue.
In some optional embodiments, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the third load range, the second determining module includes:
a second extracting unit for extracting one power supply from each of the plurality of sets of power supplies as a target sleep power supply, respectively;
the third sequencing unit is used for sequencing the target dormant power supply to generate a third sequencing queue;
the third generating unit is configured to generate a third power control policy according to a third ordering queue, where the third power control policy includes: and executing dormancy operation on the target dormancy power supply according to the third ordering queue.
In some alternative embodiments, the apparatus further comprises:
The first acquisition module is used for acquiring the number of the power supplies in the on state in each group of power supplies and determining the total number of the on power supplies;
an authorization module for performing an authorization operation on one or more of the power supplies in the sleep state when it is determined that the total number of turned-on power supplies is less than the target number of power supplies;
and the stopping module is used for stopping the operation of authorizing the dormant power supply when the sum of the authorized power supply number and the total power supply starting number meets the preset requirement.
In some alternative embodiments, the power cluster is configured to supply power to a powered device, and the apparatus further includes:
the second monitoring module is used for monitoring the state of each power supply circuit in the power supply equipment;
and the first starting module is used for executing starting operation on all power supplies in a dormant state when any power supply circuit of the power supply equipment is monitored to be in a power-off state.
In some alternative embodiments, the authorization module includes:
the searching unit is used for searching a preset authorized register from one or more registers of the dormant power supply when the total number of the power supplies is determined to be smaller than the target number of the power supplies;
and the processing unit is used for setting the value of the preset authorization register as a preset authorization value.
In some alternative embodiments, the apparatus further comprises:
and the clearing module is used for clearing the sleep time of each target starting power supply.
In some alternative embodiments, the apparatus further comprises:
and the timing module is used for respectively performing sleep time timing operation on each target sleep power supply from the execution of the sleep operation.
In some alternative embodiments, the target number of power sources in the authorization module is used to indicate the number of power sources that can meet the maximum power of the device to be powered.
In a fourth aspect, the present invention provides a power supply control apparatus comprising:
the second monitoring module is used for monitoring the running state of the second monitoring module;
the third monitoring module is used for monitoring the load of the self when the running state is determined to be an opening state;
the third determining module is used for determining the current load range of the self load;
a fourth determining module, configured to determine a state control policy corresponding to a second preset load range when determining that a load range to which the load of the fourth determining module belongs currently is the second preset load range;
and the control module is used for controlling the power supply state of the control module based on the state control strategy.
In some optional embodiments, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the self load currently belongs is the fourth load range, the fourth determining module includes:
A shielding unit, configured to, when determining that the load range to which the self load currently belongs is the fourth load range, control the state according to the following strategy:
and shielding the dormancy instruction sent by the control terminal.
In some optional embodiments, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the self load currently belongs is the fifth load range, the fourth determining module includes:
a lowering unit, configured to, when determining that the load range to which the self load currently belongs is the fifth load range, state control policy is:
and reducing the self output voltage to the target early warning voltage.
In some alternative embodiments, the apparatus further comprises:
the fourth monitoring module is used for monitoring the bus voltage when the running state is determined to be the dormant state;
the second acquisition module is used for acquiring the authority state of the second acquisition module when the bus voltage is determined to be smaller than or equal to a preset voltage threshold value;
and the second opening module is used for executing opening operation on the second opening module when the permission state is determined to be the authorized state.
In some alternative embodiments, when the operational state is determined to be a sleep state, the apparatus further comprises:
The fifth monitoring module is used for monitoring the output voltage of each power supply in the on state in all groups of power supplies;
the third acquisition module is used for acquiring the authority state of the third acquisition module when the output voltage of each power supply in the on state is determined to be the target early warning voltage;
and the third opening module is used for executing opening operation on the third opening module when the permission state is determined to be the authorized state. In a fifth aspect, the present invention provides a computer device comprising: the power supply control device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions to execute the power supply control method of the first aspect or any corresponding embodiment thereof or execute the power supply control method of the second aspect or any corresponding embodiment thereof.
In a sixth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the power supply control method of the first aspect or any one of the embodiments corresponding thereto, or causing a computer to execute the power supply control method of the second aspect or any one of the embodiments corresponding thereto.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a power control method according to an embodiment of the invention;
FIG. 2 is a flow chart of a power authorization method according to an embodiment of the invention;
FIG. 3 is a flow chart of another power control method according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a multiple power supply system according to an embodiment of the invention;
FIG. 5 is a flow chart of yet another power control method according to an embodiment of the present invention;
FIG. 6 is a flow chart of yet another power control method according to an embodiment of the invention;
fig. 7 is a block diagram of a power supply control apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of another power control apparatus according to an embodiment of the present invention;
Fig. 9 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The server power supply is a conversion device for supplying power to the server device, and converts ac/dc power into a voltage that can support the operation of the device, typically 12V and 54V. Conventionally, as the power of the server is lower, the 1+1 redundancy design is generally realized by using 2 power modules, so that the normal operation of the server can be ensured, but as the data volume is increased and the processing speed is increased, the demand on calculation power is higher and higher, and the energy consumption is required to be increased accordingly, such as a GPU server, a whole cabinet server and the like, a plurality of power supply units Power Supply Unit, PSU for short, are required to be combined to meet the power demand of the equipment, so that the application scene of a multi-power system appears, the power variation range is large for the system, the existing scheme is effective for the system with less power supply quantity, such as a 1+1 or 2+1 redundancy system, the power supply quantity is less, the system control is simple, and the implementation is easy. If the number of power supplies is large, the management unit alone can not adjust the power supplies to deal with the large load change. For a multi-power system, when the system power is low, part of power sources can be actively turned off for energy saving, but if the number of the turned-off power sources is large, for example, when the working power sources cannot bear the full power of the system design, the adjustment is poor in timeliness through the adjustment of the management unit, and at the moment, the risk of downtime of the system exists.
Based on this, according to an embodiment of the present invention, there is provided a power control method embodiment, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
In this embodiment, a power control method is provided, where the method is applied to a power control system, where the power control system includes a control terminal and a power cluster, where the control terminal is connected to each power source in the power cluster, and the method is performed by the control terminal, for example, a separate management board card or a server BMC, and fig. 1 is a flowchart of the power control method according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
in step S101, the load of each power supply in the plurality of power supplies of the power supply cluster is monitored.
Specifically, for example, when the power supply cluster system is powered on, the management unit of the control terminal detects the load condition of the power supply.
In an alternative example, the power source may be a PSU.
Step S102, determining a load range of the power load of the first power supply.
Specifically, the first power supply is any one of the plurality of power supplies.
In an alternative example, the load range may be a range representing a high load section, a range of a normal load section, and a range of a low load section, which are set by humans. For example, when the power supply cluster system is powered on, the control end can detect the load condition of each power supply, and in the case of multiple power supplies, because of the use of a load balancing mechanism, the load of each power supply is generally almost the same. For example, a load section to which the current load of the first power supply belongs may be determined by taking a section greater than 70% of the maximum load as a high load range, a section of 30% to 70% as a normal load range, and a section less than 30% as a low load range.
Step S103, when the current load range of the power load of the first power supply is the first preset load range, determining a control strategy corresponding to the first preset load range.
Specifically, a mapping relationship between the first preset load range and the control policy may be set, and according to the load range to which the first power supply currently belongs, a corresponding control policy is determined, for example, turning on the power supply, turning off the power supply, dormancy power supply, or reducing the power of the power supply, etc.
Step S104, selecting a target power supply from a plurality of groups of power supplies to execute the control strategy based on the control strategy.
Specifically, the control policy may select one or more power supplies to execute, for example, when the power supply needs to be turned on, one power supply or multiple power supplies may be selectively turned on according to the power supply requirement, and a selection condition may be set, for example, a power supply is selected from a group with the least number of turned on power supplies, or a power supply with the longest sleep time is selected to be turned on.
The power control method provided by the embodiment monitors the power load of each power supply in a plurality of groups of power supplies of the power supply cluster; determining a current load range of a power supply load of a first power supply, wherein the first power supply is any power supply in a plurality of groups of power supplies; when the current load range of the power load of the first power supply is a first preset load range, determining a control strategy corresponding to the first preset load range; and selecting a target power supply from the plurality of groups of power supplies to execute the control strategy based on the control strategy. The power supply control method has the advantages that the load range of the power supply load can be determined by monitoring the power supply load of the power supply, then the control strategy corresponding to the load range is determined, and the target power supply is selected from a plurality of groups of power supplies to execute the control strategy based on the control strategy, so that the power supply can be controlled more finely, the power supply condition can be timely reflected by monitoring the power supply load, the real-time performance of management is improved, meanwhile, the control strategy is timely adjusted through the load change, the energy conservation is facilitated, and the excessive waste of energy is avoided.
In an alternative embodiment, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the first load range, determining a control strategy corresponding to the first preset load range includes:
step a1, selecting one power supply with the longest sleep time from each group of power supplies of the plurality of groups of power supplies as a target starting power supply.
Specifically, in an alternative example, the first load range may be a load range greater than 70%, representing a high load range; the second load range may be a 70% to 30% load range, including 70% and 30% is representative of a normal load range; the third load range may be a load range of less than 30%, representing a low load range. When the current load range of the power supply load of the first power supply is the first load range, that is, more than 70%, the power supply load is generally higher at this time, and the system has a certain risk, and the power supply in dormancy needs to be started to balance the load, so that one power supply with the longest dormancy time is selected from each group of power supplies of the multiple groups of power supplies as a target starting power supply. The power supplies may be grouped in ways, for example, in 2 power supplies, with one power supply having the longest sleep time being selected from each of the power supplies.
And a2, sequencing all the target starting power supplies according to the sleep time to obtain a first sequencing queue.
Specifically, the target starting power supply is sequenced according to the sleep time, and a first sequencing queue is obtained.
And a step a3, generating a first power supply control strategy according to the first sequencing queue.
Specifically, the first power control strategy includes: and starting the target starting power supply in sequence according to the first sequencing queue until the load range of the load of the first power supply is the second load range. The power supply with the longest sleep time is started preferentially, the load of each power supply is monitored in real time in the starting process, and when the load reaches the normal load range, the rest target starting power supplies are stopped.
By the mode, when the power supply load is large, the power supply with the longest sleep time is alternately started from a plurality of groups of power supplies until the load enters a normal interval, the starting time of each power supply in each group of power supplies and the quantity of the started power supplies can be balanced well, and the occurrence of unbalanced power supplies started in groups and the risk of power failure during faults is avoided.
In an alternative embodiment, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the first load range, determining a control strategy corresponding to the first preset load range includes:
Step b1, extracting the sleep time of each power supply in the plurality of groups of power supplies.
And b2, sequencing all the power supplies according to the sleep time to obtain a second sequencing queue.
And b3, generating a second power supply control strategy according to the second sequencing queue.
Specifically, the second power control strategy includes: and sequentially starting the power supplies in the second sequencing queue according to the second sequencing queue. The sleep time of each power supply in the plurality of groups of power supplies is extracted, all the power supplies are sequenced according to the sleep time, a second sequencing queue is obtained, the power supplies in the second sequencing queue are sequentially started according to the second sequencing queue, meanwhile, the power supply load of each power supply can be monitored in real time during starting, and the starting of the rest sleep power supplies is stopped when the load reaches a normal range.
By the mode, the power supply with the longest dormancy time in all groups of power supplies can be turned on preferentially, the situation that the power supply is excessively used or excessively idle is avoided, and the power supply utilization rate is improved.
In an alternative example, the preferred load may be set to a target load, for example 60% of the maximum load, and the starting of the remaining power supply is stopped when the load of the first power supply reaches 60% at the time of starting.
In an alternative embodiment, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when a load range to which a power load of the first power source currently belongs is the third load range, determining a control strategy corresponding to the first preset load range includes:
step c1, respectively extracting a power supply from each group of power supplies of a plurality of groups of power supplies as a target dormancy power supply;
step c2, sequencing the target dormancy power supply to generate a third sequencing queue;
and c3, generating a third power supply control strategy according to the third sequencing queue.
Specifically, the third power control strategy includes: and executing dormancy operation on the target dormancy power supply according to the third ordering queue.
In particular, the third load range may be, for example, a load range of less than 30% of the maximum load. When the current load range of the power load of the first power supply is the third load range, the power load is lower at this moment, the efficiency of the power supply is not ideal, the control end can enable some power supplies to sleep so as to improve the power supply efficiency, and considering that a general machine room is multi-path power supply, for example, two paths of power supply are adopted, the power supply module redundancy mode is generally N+N and N+M redundancy, if N+N redundancy is adopted, namely 2N power supplies (for example PSU) are respectively connected to AB two paths of the machine room for power supply, if one path of PSU is always in sleep, the other path of PSU is in sleep, and normal operation of the system cannot be ensured; therefore, it is preferable to follow the AB two paths to be turned on alternately or simultaneously, so that even when one path is powered off, the situation that the powered device is directly powered off will not occur.
It should be noted that, the sleep power supply in the present application means that the power supply reduces the output voltage, exits from the system to flow uniformly, but is still in an on-line state.
By the above mode, the third load range is a range with lower load, which represents lower efficiency of the power supply, and in order to save energy, a part of the power supplies can be alternately turned off from a plurality of groups of power supplies, namely, one power supply is respectively extracted from each group of power supplies as a target dormancy power supply, the target dormancy power supplies are sequenced, and dormancy operation is sequentially performed on the target dormancy power supplies, so that the utilization rate of the power supplies can be improved.
In an alternative embodiment, the method further comprises the method steps as shown in fig. 2:
in step S201, the number of power sources in the on state in each group of power sources is obtained, and the total number of the on power sources is determined.
In step S202, when it is determined that the total number of turned-on power supplies is smaller than the target number of power supplies, an authorized operation is performed on one or more of the power supplies in the sleep state.
In step S203, when the sum of the authorized power supply number and the total power supply number meets the preset requirement, the operation of authorizing the dormant power supply is stopped.
Specifically, in the design of a power supply system, there is a redundant design generally, when a power supply is dormant, it is required to ensure that other power supplies except the redundant power supply can perform self-control starting operation, so that when a power supply control end fails or fails to perform control, for example, under the condition of large-range jump of a load, the control end is easy to monitor and not timely cause the condition that a control instruction is not timely sent, and the dormant power supply is authorized, so that the power supply end can determine which power supplies have the capability of controlling the self-starting.
The sum of the number of the started power supplies and the number of the authorized power supplies in the dormancy is the number of other power supplies except the redundant power supplies in the power supply cluster, so that when the power supply equipment (such as a machine room server device) operates at the maximum power, even if the power supply control end cannot control the power supply to supply power, the power supply can complete power supply according to the authorized power supplies, and the stable operation of the system can be ensured.
In an alternative embodiment, the power cluster is configured to supply power to a powered device, and the method further includes:
monitoring the state of each power supply circuit in the power supply equipment;
when any power supply circuit of the powered equipment is monitored to be in a power-off state, starting operation is carried out on all power supplies in a dormant state.
Specifically, when one power supply circuit in the powered device is powered off, a two-way power supply is generally designed under normal conditions, if one power supply circuit is powered off, the situation of insufficient instantaneous power supply of the powered device can occur, and all power supplies in a dormant state are started at the moment, so that electric energy can be timely supplied to the powered device.
In an alternative embodiment, when it is determined that the total number of power-on sources is less than the target number of power sources, performing an authorization operation on one or more of the power sources in the sleep state includes:
When the total number of the power supplies is determined to be smaller than the target number of the power supplies, searching a preset authorized register from one or more registers of the dormant power supplies;
and setting the value of the preset authorization register as a preset authorization value.
Specifically, a register flag bit can be set in the micro control unit MCU of the power supply as an authorization flag bit, and the flag bit is set to a preset authorization value, for example, 1 during authorization, so that authorization can be conveniently performed, and meanwhile, the authorization state of the power supply can be rapidly and accurately judged.
In an alternative embodiment, the method further comprises:
the sleep time of each target power-on is cleared.
Specifically, the target starting power supply is started and simultaneously clears the sleep time of the target starting power supply, and accumulation of the sleep time is not caused, so that the current sleep time is obtained when the power supply needs to be started each time, and the target starting power supply has a reference value more than the accumulated sleep time.
In an alternative embodiment, the method further comprises:
and respectively starting to execute the sleep operation for each target sleep power supply, and performing the sleep time timing operation.
In an alternative embodiment, the method further comprises:
the target power supply number is used for indicating the number of power supplies capable of meeting the maximum power of the equipment to be powered.
Specifically, the number of power supplies meeting the maximum power of the equipment to be powered can ensure that the power supply is sufficient when the equipment to be powered works at the maximum power, and two modes are provided, namely a power supply control end and a power supply end.
In this embodiment, a power control method is provided, where the method is applied to a power control system, where the power control system includes a control terminal and a power cluster, where the control terminal is connected to each power supply in the power cluster, and the method is performed by any one of the power supplies, for example, a micro control unit MCU in the power supply, and fig. 3 is a flowchart of the power control method according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
step S301, monitoring the operation state of the device.
Specifically, for example, the MCU chip of the power supply can be used for monitoring the running state of the MCU chip in real time.
In step S302, when the operation state is determined to be the on state, the self load is monitored.
Specifically, the MCU may also monitor its own load, and it should be noted that, in this application, the sleep power supply means that the power supply reduces the output voltage, exits from the system to flow equalization, but is still in an on-line state. Because the dormant power supply does not participate in system current sharing, the self-load is not required to be monitored, and only when the power supply is in an on state, the self-load is monitored so as to adopt a corresponding power supply control strategy by using the self-load later.
Step S303, determining a load range to which the own load currently belongs.
Specifically, a plurality of load ranges may be preset, and the load of the load device and the plurality of load ranges are compared to determine the current load range of the load device.
Step S304, when the load range to which the self load currently belongs is determined to be a second preset load range, determining a state control strategy corresponding to the second preset load range.
Specifically, a mapping relationship between a plurality of load ranges and a state control policy is preset, and a corresponding state control policy is determined according to a load range to which a self load currently belongs, for example, a power supply is turned on, a power supply is turned off, or self output power is increased or decreased, which may be specifically defined according to actual situations.
Step S305 controls the power supply state of itself based on the state control policy.
Specifically, based on a state control policy, the power state of the self is controlled, for example, the self is turned on, the self is controlled to enter a sleep state, or the output power of the self is changed.
The power supply control method provided by the embodiment monitors the running state of the power supply control method; when the running state is determined to be an opening state, monitoring the load of the self-body; determining the current load range of the self load; when the current load range of the self load is determined to be a second preset load range, determining a state control strategy corresponding to the second preset load range; and controlling the power supply state of the power supply based on the state control strategy. The control terminal can fail or the load changes drastically, when the control terminal is out of control, the power supply controls the state of the control terminal, the abrupt change of the load can be timely dealt with, and the stable operation of the system is better ensured.
In an optional implementation manner, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the load of the second preset load range currently belongs is the fourth load range, determining a state control policy corresponding to the fourth load range includes:
when the load range to which the self load currently belongs is determined to be a fourth load range, the state control strategy is:
and shielding the dormancy instruction sent by the control terminal.
Specifically, the fourth load range may be a load interval greater than or equal to 70% and less than 90% of the maximum load of the power supply control terminal, if the main load is detected to be greater than or equal to 70%, the rapid increase process of the load is considered, the management unit detects whether the data is likely to be a low load or not, the judgment is performed before the load is increased, the power supply control terminal will send a power supply closing instruction at this time, the PSU has detected the load to be greater than 70%, if one PSU is closed, the system will have a downtime risk, and therefore the power supply selects a dormancy instruction sent by the shielding control terminal under the load, and the dormancy operation is not performed.
In an optional implementation manner, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the load of the second preset load range currently belongs is the fifth load range, determining a state control policy corresponding to the fifth load range includes:
When the load range to which the self load currently belongs is determined to be a fifth load range, the state control strategy is:
and reducing the self output voltage to the target early warning voltage.
Specifically, the fifth load range may be a load interval greater than or equal to 90% of the maximum load, when the load is detected to be greater than 90% and the load pressure is too high, the power supply may trigger the pre-overpower alarm function to reduce the voltage to a target early-warning voltage, so that other power supplies adjust the running state according to the target early-warning voltage.
In an alternative example, the value of the change register OCW1 may be set to a preset early warning value, such as "1" or "0", for example, when the self-load is detected to be greater than or equal to 90% of the maximum load, and the self-output voltage may be reduced to a target early warning voltage, such as 95% of the normal output voltage, when the power supply detects that the value of the self-register is the preset early warning value.
In an alternative embodiment, the method further comprises:
when the operational state is determined to be the sleep state, the bus voltage is monitored.
Specifically, the sleep state of the power supply in the application refers to that the output voltage is reduced, the system current sharing is exited and the power supply is in an on-line state, so that the MCU of the power supply in sleep is still in a working state, and the bus voltage can be monitored in real time.
And when the bus voltage is determined to be smaller than or equal to a preset voltage threshold value, acquiring the authority state of the bus voltage.
Specifically, the preset voltage threshold is a set threshold, and is set according to different power types, for example, 97% of rated voltage of the power supply.
And when the permission state is determined to be the authorized state, executing the opening operation on the self.
Specifically, when the power supply in dormancy detects that the bus voltage is smaller than or equal to a preset voltage threshold, the value of an authorization register in a register is searched, the authorization state is determined according to the value, when the authorization state is determined, the operation is started, and in this case, when the voltage is smaller than or equal to the preset voltage threshold, the condition that the system load exceeds the rated power consumption of the power supply at the moment is indicated, the power supply is insufficient, all authorized power supplies are started, the maximum power consumption of the system can be ensured, and the electric energy is timely supplied.
In an alternative embodiment, the power cluster where the first power source is located is used to supply power to the powered device, and the method further includes:
monitoring the state of each power supply circuit in the power supply equipment;
when any power supply circuit of the power supply equipment is monitored to be in a power-off state, an opening instruction is sent to all the power supplies in dormancy, so that all the power supplies in dormancy execute opening operation on the power supplies.
Specifically, the powered device may be a server of a machine room, and generally is powered by two or more paths, and the MCU of the power supply may also monitor the status of each path of power supply circuit in the powered device, whether normal or failure occurs.
When any one of the power supply circuits of the power supply equipment is monitored to be in a power-off state, all power supplies in the power supply circuit cannot supply power at the moment, and other power supplies in dormancy need to be started in time so as to ensure the power supply of the server system.
In an alternative example, the state of the power supply circuit may be detected by the power control terminal, for example, the management unit of the power control terminal, and the power supply signal, for example, the psuunifield signal, may be detected, and when a signal abnormality is detected, an instruction may be issued to turn on all the power supplies that are already in sleep.
In an alternative example, the state of the power supply circuit can also be detected through the power supply end, for example, by detecting the load condition of the power supply, when the load of the power supply is increased extremely rapidly and is increased to a higher load (for example, more than 90 percent) in an extremely short time, the problem of power supply circuit failure can occur, at this time, all dormant power supplies are quickly turned on, and an alarm message can be sent to prompt the staff to overhaul and maintain in time.
In order to make the implementation of the method of the present application clearer, the present application further provides a specific application scenario embodiment, for example, in the multi-power supply system shown in fig. 4, a two-way design is generally adopted, the power supplies are PSUs, the power supply control end may be an independent management board card or BMC, where a management unit may be set to control the power supplies, the management unit is in communication connection with the power supplies, and monitors the load condition of each power supply in real time, in the multi-power supply system, a load balancing mechanism is generally adopted, and meanwhile, an energy saving mechanism is also adopted, and in the running process, a part of the power supplies may be turned off according to the load condition, so that the energy saving purpose is achieved, because the load balancing mechanism, the loads of the multiple started power supplies are almost equal, and therefore, the power supply load of any power supply in the multi-power supply system can be detected as a control condition.
The control flow of the management unit is shown in fig. 5, and the management unit detects the PSU load x whenWhen the power load does not reach the normal load interval, the management unit selects one power supply with the longest sleep time from the other path to be started, or when detecting +. >The management unit alternately sleeps one PSU in each power supply and starts the sleep timer of the sleeping PSU.
The control flow of the power supply end is shown in FIG. 6, and the PSU detects the bus voltageWhen->Controlling the authorized power supply to be fully turned on, wherein +.>Delay 1 for target warning voltage00ms, the power supply resumes the output voltage U, and at the same time, the PSU detects the self-output load y, when determining the self-load +.>Mask the sleep instruction sent by the management unit if +.>Triggering a warning function, e.g. changing the value of register OCW1, the PSU output voltage is reduced to +.>Can be 95% of the normal output voltage, OCW1 is an interrupt handling register for adjusting and controlling the interrupt handling in operation when +.>The value of the register can be set to 1 when it is detected that the value of the register is set to 1, the PSU output voltage is reduced to +.>
The mode solves the problem that the system load is possibly unable to be handled by the control terminal when the system is in large jump through designing the management unit and PSU software, and the management unit is responsible for starting or dormancy management of the power supply, especially under an N+N system, through time management, the AB two-way alternate switching is realized, and the problem that the power supply of a machine room is abnormal in a dormant state due to a certain excessive power supply is avoided, so that the system is down is solved. After one path of the machine room is powered off, the management unit can start the dormant power supply, and normal operation of the system is ensured. When PSU realizes large jump of load, especially when load increases, the function of starting the dormancy power supply is realized through regulating voltage, and system downtime caused by communication lag of the management unit is avoided.
In this embodiment, a power control device is further provided, and the power control device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a power supply control apparatus, as shown in fig. 7, including:
a first monitoring module 701, configured to monitor a power load of each of a plurality of power supplies in the power supply cluster;
a first determining module 702, configured to determine a load range to which a power load of a first power supply currently belongs, where the first power supply is any one of multiple power supplies;
a second determining module 703, configured to determine a control policy corresponding to a preset load range when the load range to which the power load of the first power supply currently belongs is the preset load range;
and an executing module 704, configured to select a target power supply from multiple groups of power supplies to execute the control strategy based on the control strategy.
In some alternative embodiments, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when the load range to which the power load of the first power source currently belongs is the first load range, the second determining module 703 includes:
The first selecting unit is used for selecting one power supply with the longest sleep time from each group of power supplies of the plurality of groups of power supplies as a target starting power supply;
the first sequencing unit is used for sequencing all the target starting power supplies according to the dormancy time to obtain a first sequencing queue;
the first generating unit is configured to generate a first power control policy according to the first ordering queue, where the first power control policy includes: and starting the target starting power supply in sequence according to the first sequencing queue until the load range of the load of the first power supply is the second load range.
In some alternative embodiments, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when the load range to which the power load of the first power source currently belongs is the first load range, the second determining module 703 includes:
a first extracting unit for extracting a sleep time of each of the plurality of power supplies;
the second sequencing unit is used for sequencing all the power supplies according to the sleep time to obtain a second sequencing queue;
The second generating unit is configured to generate a second power control policy according to the second ordering queue, where the second power control policy includes: and sequentially starting the power supplies in the second sequencing queue according to the second sequencing queue.
In some alternative embodiments, the first preset load range includes a first load range, a second load range, and a third load range, a minimum value of the first load range is greater than a maximum value of the second load range, a minimum value of the second load range is greater than a maximum value of the third load range, and when the load range to which the power load of the first power source currently belongs is the third load range, the second determining module 703 includes:
a second extracting unit for extracting one power supply from each of the plurality of sets of power supplies as a target sleep power supply, respectively;
the third sequencing unit is used for sequencing the target dormant power supply to generate a third sequencing queue;
the third generating unit is configured to generate a third power control policy according to a third ordering queue, where the third power control policy includes: and executing dormancy operation on the target dormancy power supply according to the third ordering queue.
In some alternative embodiments, the apparatus further comprises:
A first obtaining module 705, configured to obtain the number of power sources in an on state in each group of power sources, and determine the total number of the on power sources;
an authorization module 706, configured to perform an authorization operation on one or more of the power supplies in the sleep state when it is determined that the total number of turned-on power supplies is less than the target number of power supplies;
and a stopping module 707 for stopping the operation of authorizing the dormant power supply when the sum of the authorized power supply number and the total power supply number meets the preset requirement.
In some alternative embodiments, the power cluster is configured to supply power to a powered device, and the apparatus further includes:
a second monitoring module 708, configured to monitor a state of each power supply circuit in the powered device;
the first turning-on module 709 is configured to perform a turning-on operation on all power sources in a sleep state when any one of the power supply circuits of the powered device is monitored to be in a power-off state.
In some alternative embodiments, the authorization module 706 includes:
the searching unit is used for searching a preset authorized register from one or more registers of the dormant power supply when the total number of the power supplies is determined to be smaller than the target number of the power supplies;
And the processing unit is used for setting the value of the preset authorization register as a preset authorization value.
In some alternative embodiments, the apparatus further comprises:
a clearing module 710, configured to clear the sleep time of each target power-on source.
In some alternative embodiments, the apparatus further comprises:
and a timing module 711 for performing sleep time timing operations for each target sleep power supply, respectively, from the start of performing the sleep operation.
In some alternative embodiments, the target number of power sources in the authorization module 706 is used to indicate the number of power sources that can meet the maximum power of the device to be powered.
The power supply control device provided by the embodiment monitors the power supply load of each power supply in a plurality of groups of power supplies of the power supply cluster; determining a current load range of a power supply load of a first power supply, wherein the first power supply is any power supply in a plurality of groups of power supplies; when the current load range of the power load of the first power supply is a first preset load range, determining a control strategy corresponding to the first preset load range; and selecting a target power supply from the plurality of groups of power supplies to execute the control strategy based on the control strategy. The power supply control method has the advantages that the load range of the power supply load can be determined by monitoring the power supply load of the power supply, then the control strategy corresponding to the load range is determined, and the target power supply is selected from a plurality of groups of power supplies to execute the control strategy based on the control strategy, so that the power supply can be controlled more finely, the power supply condition can be timely reflected by monitoring the power supply load, the real-time performance of management is improved, meanwhile, the control strategy is timely adjusted through the load change, the energy conservation is facilitated, and the excessive waste of energy is avoided.
In this embodiment, a power control device is further provided, and the power control device is used to implement the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a power supply control apparatus, as shown in fig. 8, including:
a second monitoring module 801, configured to monitor an operation state of the second monitoring module;
a third monitoring module 802, configured to monitor a load thereof when determining that the running state is an on state;
a third determining module 803, configured to determine a load range to which the self load currently belongs;
a fourth determining module 804, configured to determine, when it is determined that the load range to which the load of the fourth determining module itself currently belongs is a second preset load range, a state control policy corresponding to the second preset load range;
the control module 805 is configured to control a power state of itself based on a state control policy.
In some optional embodiments, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the self load currently belongs is the fourth load range, the fourth determining module 804 includes:
A shielding unit, configured to, when determining that the load range to which the self load currently belongs is the fourth load range, control the state according to the following strategy:
and shielding the dormancy instruction sent by the control terminal.
In some optional embodiments, the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when it is determined that the load range to which the self load currently belongs is the fifth load range, the fourth determining module 804 includes:
a lowering unit, configured to, when determining that the load range to which the self load currently belongs is the fifth load range, state control policy is:
and reducing the self output voltage to the target early warning voltage.
In some alternative embodiments, the apparatus further comprises:
a fourth monitoring module 806, configured to monitor the bus voltage when the running state is determined to be the sleep state;
a second obtaining module 807, configured to obtain a permission status of the second obtaining module when it is determined that the bus voltage is less than or equal to the preset voltage threshold;
a second opening module 808, configured to perform an opening operation on the second opening module when the permission status is determined to be an authorized status.
In some alternative embodiments, when the operational state is determined to be a sleep state, the apparatus further comprises:
A fifth monitoring module 809 for monitoring an output voltage of each power supply in an on state among all the group power supplies;
a third obtaining module 810, configured to obtain a permission state of the third obtaining module when determining that an output voltage of each power supply in an on state is a target early warning voltage;
and a third opening module 811, configured to perform an opening operation on the third opening module when the permission status is determined to be an authorized status.
The power supply control device provided by the embodiment monitors the running state of the power supply control device; when the running state is determined to be an opening state, monitoring the load of the self-body; determining the current load range of the self load; when the current load range of the self load is determined to be a second preset load range, determining a state control strategy corresponding to the second preset load range; and controlling the power supply state of the power supply based on the state control strategy. The control terminal can fail or the load changes drastically, when the control terminal is not in control, the power supply controls the state of the control terminal, the abrupt change of the load can be timely dealt with, and the stable operation of the system is better ensured.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The power control means in this embodiment is presented in the form of functional units, here referred to as ASIC (Application Specific Integrated Circuit ) circuits, processors and memories executing one or more software or fixed programs, and/or other devices that can provide the above described functionality.
The embodiment of the invention also provides computer equipment, which is provided with the power supply control device shown in the figure 7 or the power supply control device shown in the figure 8.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 9, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 9.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform a method for implementing the embodiments described above.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device also includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (20)

1. A power control method, the method being applied to a power control system including a control terminal and a power cluster, the control terminal being connected to each power in the power cluster, the method being performed by the control terminal, the method comprising:
monitoring a power load of each power supply in a plurality of groups of power supplies of the power supply cluster;
determining a load range of a power supply load of a first power supply, wherein the first power supply is any power supply in a plurality of groups of power supplies;
when the current load range of the power load of the first power supply is a first preset load range, determining a control strategy corresponding to the first preset load range;
and selecting a target power supply from a plurality of groups of power supplies to execute the control strategy based on the control strategy.
2. The method of claim 1, wherein the first preset load range includes a first load range, a second load range, and a third load range, wherein a minimum value of the first load range is greater than a maximum value of the second load range, wherein a minimum value of the second load range is greater than a maximum value of the third load range, wherein determining a control strategy corresponding to the first preset load range when a load range to which a power load of the first power source currently belongs is the first load range includes:
Respectively selecting one power supply with the longest sleep time from each group of power supplies of the multiple groups of power supplies as a target starting power supply;
sequencing all the target starting power supplies according to the sleep time to obtain a first sequencing queue;
generating a first power control strategy according to the first sequencing queue, wherein the first power control strategy comprises: and starting the target starting power supply in sequence according to the first sequencing queue until the load range of the power supply load of the first power supply is the second load range.
3. The method of claim 1, wherein the first preset load range includes a first load range, a second load range, and a third load range, wherein a minimum value of the first load range is greater than a maximum value of the second load range, wherein a minimum value of the second load range is greater than a maximum value of the third load range, wherein determining a control strategy corresponding to the first preset load range when a load range to which a power load of the first power source currently belongs is the first load range includes:
extracting the sleep time of each power supply in a plurality of groups of power supplies;
Sequencing all power supplies according to the sleep time to obtain a second sequencing queue;
generating a second power control strategy according to the second sequencing queue, wherein the second power control strategy comprises: and sequentially starting the power supplies in the second sequencing queue according to the second sequencing queue.
4. The method of claim 1, wherein the first preset load range includes a first load range, a second load range, and a third load range, wherein a minimum value of the first load range is greater than a maximum value of the second load range, wherein a minimum value of the second load range is greater than a maximum value of the third load range, and wherein determining a control strategy corresponding to the first preset load range when a load range to which a power load of the first power source currently belongs is the third load range comprises:
respectively extracting a power supply from each group of power supplies of the multiple groups of power supplies as a target dormancy power supply;
sequencing the target dormancy power supply to generate a third sequencing queue;
generating a third power control strategy according to the third sorting queue, wherein the third power control strategy comprises: and executing dormancy operation on the target dormancy power supply according to the third sequencing queue in sequence.
5. The method according to any one of claims 1 to 4, further comprising:
acquiring the number of the power supplies in the on state in each group of the power supplies, and determining the total number of the on power supplies;
performing an authorization operation on one or more of the power supplies in the sleep state when it is determined that the total number of power supplies turned on is less than the target number of power supplies;
and stopping the operation of authorizing the dormant power supply when the sum of the authorized power supply number and the total power supply number meets the preset requirement.
6. The method of claim 5, wherein the power cluster is configured to power a powered device, the method further comprising:
monitoring the state of each power supply circuit in the power supply equipment;
when any power supply circuit of the powered equipment is monitored to be in a power-off state, starting operation is carried out on all power supplies in a dormant state.
7. The method of claim 5, wherein performing an authorization operation on one or more of the power supplies in the sleep state when the total number of power supplies turned on is determined to be less than a target number of power supplies comprises:
When the total number of the power supplies is determined to be smaller than the target number of the power supplies, searching a preset authorized register from one or more registers of the dormant power supplies;
and setting the value of the preset authorization register as a preset authorization value.
8. A method according to claim 2 or 3, characterized in that the method further comprises:
and clearing the sleep time of each target starting power supply.
9. The method of claim 5, wherein the method further comprises:
and respectively starting to execute the sleep operation on each target sleep power supply, and performing sleep time timing operation.
10. A method according to claim 7 or 9, characterized in that the target number of power sources is indicative of the number of power sources that can meet the maximum power of the device to be powered.
11. A power control method, the method being applied to a power control system including a control terminal and a power cluster, the control terminal being connected to each power in the power cluster, the method being performed by any one of the power sources, the method comprising:
monitoring the running state of the self;
when the running state is determined to be an opening state, monitoring the self load;
Determining the current load range of the self load;
when the current load range of the self load is a second preset load range, determining a state control strategy corresponding to the second preset load range;
and controlling the power supply state of the self based on the state control strategy.
12. The method of claim 11, wherein the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when determining that the load range to which the self load currently belongs is the fourth load range, determining a state control policy corresponding to the fourth load range includes:
when the load range to which the self load currently belongs is determined to be a fourth load range, the state control strategy is:
and shielding the dormancy instruction sent by the control terminal.
13. The method of claim 11, wherein the second preset load range includes a fourth load range and a fifth load range, a maximum value of the fourth load range is smaller than a minimum value of the fifth load range, and when determining that the load range to which the self load currently belongs is the fifth load range, determining a state control strategy corresponding to the fifth load range includes:
When the load range to which the self load currently belongs is determined to be a fifth load range, the state control strategy is:
and reducing the self output voltage to the target early warning voltage.
14. The method of claim 13, wherein the method further comprises:
monitoring bus voltage when the running state is determined to be a dormant state;
when the bus voltage is determined to be smaller than or equal to a preset voltage threshold value, acquiring the authority state of the bus voltage;
and executing opening operation on the self when the permission state is determined to be the authorized state.
15. The method of claim 13, wherein when the operational state is determined to be a dormant state, the method further comprises:
monitoring the output voltage of each power supply in the on state in all groups of power supplies;
when the output voltage of each power supply in any one on state is determined to be the target early warning voltage, acquiring the authority state of the power supply;
and executing opening operation on the self when the permission state is determined to be the authorized state.
16. The method of any of claims 11 to 15, wherein the power cluster is configured to power a powered device, the method further comprising:
Monitoring the state of each power supply circuit in the power supply equipment;
when any power supply circuit of the powered equipment is monitored to be in a power-off state, an opening instruction is sent to all the power supplies in dormancy, so that all the power supplies in dormancy execute opening operation on the power supplies.
17. A power control apparatus, the apparatus comprising:
the first monitoring module is used for monitoring the power load of each power supply in the plurality of groups of power supplies of the power supply cluster;
the first determining module is used for determining a load range of a power supply load of a first power supply, wherein the first power supply is any one of a plurality of groups of power supplies;
the second determining module is used for determining a control strategy corresponding to a preset load range when the current load range of the power load of the first power supply is the preset load range;
and the execution module is used for selecting a target power supply from a plurality of groups of power supplies to execute the control strategy based on the control strategy.
18. A power control apparatus, the apparatus comprising:
the second monitoring module is used for monitoring the running state of the second monitoring module;
the third monitoring module is used for monitoring the load of the self when the running state is determined to be an opening state;
The third determining module is used for determining the current load range of the self load;
a fourth determining module, configured to determine a state control policy corresponding to a second preset load range when determining that the load range to which the self load currently belongs is the second preset load range;
and the control module is used for controlling the power supply state of the control module based on the state control strategy.
19. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the power control method of any one of claims 1 to 10 or to perform the power control method of any one of claims 11 to 16.
20. A computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the power supply control method according to any one of claims 1 to 10 or to execute the power supply control method according to any one of claims 11 to 16.
CN202311708580.5A 2023-12-13 2023-12-13 Power control method, device, computer equipment and storage medium Pending CN117406846A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311708580.5A CN117406846A (en) 2023-12-13 2023-12-13 Power control method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311708580.5A CN117406846A (en) 2023-12-13 2023-12-13 Power control method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117406846A true CN117406846A (en) 2024-01-16

Family

ID=89487440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311708580.5A Pending CN117406846A (en) 2023-12-13 2023-12-13 Power control method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117406846A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118889639A (en) * 2024-08-09 2024-11-01 河北美辉科技有限公司 Electric vehicle integrated intelligent charging system
CN119806300A (en) * 2024-11-29 2025-04-11 苏州元脑智能科技有限公司 Power supply unit access method and device, storage medium and electronic device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133540A (en) * 2013-05-02 2014-11-05 鸿富锦精密工业(深圳)有限公司 Power supply management system and method
CN104731294A (en) * 2015-03-17 2015-06-24 深圳中盛恒华电气有限公司 Uninterrupted power supply intelligent parallel operation power supply control system and method
CN114415810A (en) * 2022-01-27 2022-04-29 苏州浪潮智能科技有限公司 Power supply control method and device of PSU power supply, PSU power supply and storage medium
CN115347661A (en) * 2022-07-28 2022-11-15 科华数据股份有限公司 Dormancy control method and control terminal of UPS system
CN115793835A (en) * 2022-12-06 2023-03-14 华勤技术股份有限公司 Method, device, equipment and storage medium for adjusting load line
CN116317154A (en) * 2023-03-14 2023-06-23 深圳安耐特电子有限公司 Intelligent monitoring equipment for 5G communication power supply

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133540A (en) * 2013-05-02 2014-11-05 鸿富锦精密工业(深圳)有限公司 Power supply management system and method
CN104731294A (en) * 2015-03-17 2015-06-24 深圳中盛恒华电气有限公司 Uninterrupted power supply intelligent parallel operation power supply control system and method
CN114415810A (en) * 2022-01-27 2022-04-29 苏州浪潮智能科技有限公司 Power supply control method and device of PSU power supply, PSU power supply and storage medium
CN115347661A (en) * 2022-07-28 2022-11-15 科华数据股份有限公司 Dormancy control method and control terminal of UPS system
CN115793835A (en) * 2022-12-06 2023-03-14 华勤技术股份有限公司 Method, device, equipment and storage medium for adjusting load line
CN116317154A (en) * 2023-03-14 2023-06-23 深圳安耐特电子有限公司 Intelligent monitoring equipment for 5G communication power supply

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118889639A (en) * 2024-08-09 2024-11-01 河北美辉科技有限公司 Electric vehicle integrated intelligent charging system
CN118889639B (en) * 2024-08-09 2025-08-05 河北美辉科技有限公司 Electric vehicle integrated intelligent charging system for photovoltaic storage and charging
CN119806300A (en) * 2024-11-29 2025-04-11 苏州元脑智能科技有限公司 Power supply unit access method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
CN102687094B (en) Processing method and appliance for multi-power supply
CN117406846A (en) Power control method, device, computer equipment and storage medium
WO2010094170A1 (en) Method and apparatus for managing power supply and power supply system
CN101354606B (en) Method, system and device for controlling energy consumption of disk array
EP2607987A1 (en) Computing apparatus and system for remote control of operating states
CN118778790A (en) Operation control method and device of server power supply
TWI517033B (en) Conversion method for reducing power consumption and computing apparatus using the same
CN110399034A (en) A kind of power consumption optimization method and terminal of SoC system
CN111625080A (en) Server energy saving method and device, electronic equipment and storage medium
CN111984108B (en) Control method, circuit and system for reducing standby power consumption of computer mainboard
CN102761423B (en) The management-control method of rectification module in the power supply system for communications
CN112114650A (en) A power consumption control method, apparatus, device and readable storage medium
CN102520783B (en) Method capable of realizing energy saving of smart rack and rack system
CN110362180A (en) A kind of server power supply service life equalising control device and method
CN107341091A (en) Distributed memory system power consumption management method and device
CN114327017A (en) Server control method and device and server
TW202418039A (en) System for providing power saving in computer systems
CN111309132B (en) A method for server multi-level power supply redundancy
CN119781600A (en) A method, device, computer equipment and storage medium for automatically controlling power supply and system power consumption
CN101635636B (en) Method and device for controlling server
CN115334851A (en) Control method for fusion of liquid cooling and air cooling and refrigeration control system
CN110278147B (en) Power saving method and device for gateway and power saving gateway
CN103490498A (en) Power supply processing method and device of power supply system
CN120406706B (en) Power supply control method and device of server and electronic equipment
CN107479830A (en) A kind of energy saving of hard disks control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination