Power supply control method and device of storage server, storage medium and electronic equipment
By deploying and running power supply equipment and multiple battery devices in the storage server, detecting and extracting adaptive battery packs, the problem of poor power supply adaptability of storage devices is solved, efficient battery management of storage devices is achieved, and R&D costs are reduced and improved Battery life span.
Patent Information
- Application Number
- CN202411045551.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-26
AI Technical Summary
The power supply equipment of existing storage devices has poor adaptability to different storage devices, which makes it difficult for power supply equipment to meet new power supply needs when the storage devices are updated and replaced. It is necessary to redevelop supporting backup power supply equipment, which consumes a lot of research and development time.
Deploy running power supply equipment, cache power supply equipment and storage devices in the storage server. By detecting the cache status and battery parameters of the storage device, generate power reserve requirements parameters, extract battery packs that meet the needs from multiple battery devices to ensure that power is supplied during operation When the device is powered off, the battery device can provide power backup cache data.
It has achieved improved adaptability of power supply equipment for different storage devices, reduced investment in R&D of new types of batteries, extended battery life cycle, improved battery redundancy capabilities, and reduced the impact of cluster data loss.
Smart Images

Figure CN119024947A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the computer field, and in particular, to a power supply control method and device for a storage server, a storage medium, and an electronic device. Background Art
[0002] In the modern computing world, the security and reliability of data storage devices are of vital importance.
[0003] During the operation of the server, a power supply is usually used to power the server. However, if the power supply is interrupted, the cached data in the server cannot be backed up to the disk and will be lost. This will cause immeasurable losses to the server business. In order to solve this problem, a specific backup power supply device is currently designed for the storage device in the server. However, the current storage device is updated and replaced very frequently. After the new storage device is developed, the original power supply device will not be able to meet the power supply requirements of the new storage device. In other words, the power supply device is difficult to adapt to different storage devices and it is difficult to meet the backup power requirements of different power supply devices. It is necessary to re-develop a matching backup power supply device for the storage device. This process will consume a lot of research and development time.
[0004] In view of the problem in related technologies that power supply equipment has poor adaptability to different storage devices, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present application provide a power supply control method and device for a storage server, a storage medium, and an electronic device, so as to at least solve the problem of poor adaptability of the power supply device to different storage devices in the related art.
[0006] According to an embodiment of the present application, a power supply control method for a storage server is provided, wherein an operation power supply device, a cache power supply device and a storage device are deployed in the storage server, a memory and a controller are deployed in the storage device, the operation power supply device is used to provide power for the operation of the storage device, and N sub-power supply devices are deployed in the cache power supply device, where N is an integer greater than 1. The method is applied to the controller, and includes:
[0007] Detecting a current cache state of the storage device;
[0008] In the case where the cache state is used to indicate that the storage device has cached data, generating a backup power requirement parameter of the storage device according to a storage rate parameter, a storage capacity parameter, and an operating power consumption parameter of the storage device, wherein the storage rate parameter is used to indicate a storage rate of the memory for data, the storage capacity parameter is used to indicate a maximum amount of data allowed to be stored in the memory, and the power consumption parameter is used to indicate the operating power consumption of the storage device;
[0009] Extracting M sub-power supply devices that meet the backup power demand parameter from the N sub-power supply devices, where M is an integer greater than or equal to 1 and less than N;
[0010] When it is detected that the running power supply device is powered off, the M sub-power supply devices are controlled to supply power to the memory, wherein the memory is used to back up the cache data when powered by the M sub-power supply devices.
[0011] Optionally, extracting M sub-power supply devices that meet the backup power requirement parameters from the N sub-power supply devices includes:
[0012] Detecting an available power parameter of each of the N sub-power supply devices to obtain N available power parameters, wherein each available power parameter is used to indicate the amount of power currently allowed to be provided by the corresponding sub-power supply device in the N sub-power supply devices;
[0013] Detecting whether the N available power parameters are greater than the backup power requirement parameters;
[0014] When it is detected that the N available power parameters are greater than the backup power requirement parameter, M sub-power supply devices whose sum of the available power parameters is greater than or equal to the backup power requirement parameter are extracted from the N sub-power supply devices.
[0015] Optionally, the detecting an available power parameter of each of the N sub-power supply devices includes:
[0016] Determine the available power parameter of each sub-power supply device according to the current voltage parameter, remaining capacity parameter and full charge capacity parameter of each sub-power supply device, wherein the current voltage parameter is used to indicate the current actual voltage value of the corresponding sub-power supply device, the remaining capacity parameter is used to indicate the current remaining power of the corresponding sub-power supply device, and the full charge capacity parameter is used to indicate the power that can be stored in the sub-power supply device when it is fully charged;
[0017] After detecting whether the N available power parameters are greater than the backup power requirement parameter, the method further includes:
[0018] When it is detected that N of the available power parameters are less than or equal to the backup power requirement parameter, a target alarm message is generated, wherein the target alarm message is used to warn that the current total power of the cache power supply device does not meet the backup power requirement parameter;
[0019] The target alarm information is sent to a target account, wherein the target account is used to charge the cache power supply device when the target alarm information is received.
[0020] Optionally, controlling the M sub-power supply devices to supply power to the memory includes:
[0021] In the process that the M sub-power supply devices supply power to the memory, detecting whether each of the M sub-power supply devices meets a calibration condition, wherein the calibration condition is a condition that the sub-power supply device needs to meet before performing a power calibration operation, and the power calibration operation is used to calibrate the current available power parameter of the corresponding sub-power supply device, and the available power parameter is used to indicate the power currently allowed to be provided by the corresponding sub-power supply device;
[0022] In the case where it is detected that there is a target sub-power supply device that meets the calibration condition among the M sub-power supply devices, the power calibration operation is performed on the target sub-power supply device to obtain the calibrated available power parameter.
[0023] Optionally, the detecting whether each of the M sub-power supply devices meets a calibration condition includes:
[0024] Whether the i-th sub-power supply device among the M sub-power supply devices meets the calibration condition is detected by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to M:
[0025] Detecting whether the verification interval corresponding to the i-th sub-power supply device is greater than an interval threshold, wherein the verification interval is the time interval from the current time to the last time the power calibration operation was performed;
[0026] In the case where the verification interval duration is greater than or equal to the interval duration threshold, detect whether the sum of the current available power parameters of the other M-1 sub-power supply devices except the i-th sub-power supply device among the M sub-power supply devices meets the single backup power parameter, wherein the single backup power parameter is used to indicate the power required for the memory to run the storage duration indicated by the storage duration parameter according to the operating power consumption indicated by the operating power consumption parameter, and the storage duration parameter is used to indicate the storage duration required for the memory to store the maximum data amount indicated by the storage amount parameter at the storage rate indicated by the storage rate parameter. In the case where the sum of the current available power parameters of the M-1 sub-power supply devices is used to indicate that the sum of the power currently allowed to be provided by the M-1 sub-power supply devices is greater than the power indicated by the single backup power parameter, determine that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter;
[0027] When it is detected that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter, it is determined that the i-th sub-power supply device meets the calibration condition.
[0028] Optionally, performing the power calibration operation on the target sub-power supply device includes:
[0029] Get the preset discharge ratio;
[0030] Performing a discharge operation on the target sub-power supply device according to the preset discharge ratio, and accumulating the discharge power of the target sub-power supply device during the process of the target sub-power supply device performing the discharge operation to obtain a target discharge power;
[0031] The current actual available power parameter of the target sub-power supply device is determined according to the preset discharge ratio and the target discharge power, and the current available power parameter of the target sub-power supply device is updated to the current actual available power parameter.
[0032] Optionally, generating the backup power requirement parameter of the storage device according to the storage rate parameter, the storage capacity parameter, and the operation power consumption parameter of the storage device includes:
[0033] Determining a storage duration parameter according to the storage capacity parameter and the storage rate parameter, wherein the storage duration parameter is used to indicate a storage duration required for the memory to store the maximum data amount indicated by the storage capacity parameter at the storage rate indicated by the storage rate parameter;
[0034] Generate a single backup power parameter of the storage device according to the storage duration parameter and the operation power consumption parameter, wherein the single backup power parameter is used to indicate the amount of power required for the memory to operate the storage duration indicated by the storage duration parameter according to the operation power consumption indicated by the operation power consumption parameter;
[0035] The product of the single backup power parameter and the target value is determined as the backup power demand parameter, wherein the target value is a value greater than 1.
[0036] According to another embodiment of the embodiment of the present application, a power supply control device of a storage server is further provided. In this embodiment, a storage server is provided in which an operation power supply device, a cache power supply device and a storage device are deployed. A memory and a controller are deployed in the storage device. The operation power supply device is used to provide power for the operation of the storage device. N sub-power supply devices are deployed in the cache power supply device, where N is an integer greater than 1. The device is applied to the controller and includes:
[0037] A detection module, used to detect the current cache status of the storage device;
[0038] a generating module, configured to generate a backup power requirement parameter of the storage device according to a storage rate parameter, a storage capacity parameter and an operating power consumption parameter of the storage device when the cache state indicates that the storage device has cache data, wherein the storage rate parameter is used to indicate a storage rate of the memory for data, the storage capacity parameter is used to indicate a maximum amount of data allowed to be stored in the memory, and the power consumption parameter is used to indicate an operating power consumption of the storage device;
[0039] An extraction module, used to extract M sub-power supply devices that meet the backup power demand parameters from the N sub-power supply devices, where M is an integer greater than or equal to 1 and less than N;
[0040] A control module is used to control the M sub-power supply devices to supply power to the memory when it is detected that the running power supply device is powered off, wherein the memory is used to back up the cache data when powered by the M sub-power supply devices.
[0041] According to another embodiment of the present application, a computer program product is provided, including a computer program, wherein the computer program is executed by a processor to perform the steps in any of the above method embodiments.
[0042] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0043] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0044] In an embodiment of the present application, a power supply control method for a storage server is proposed. An operating power supply device, a cache power supply device and a storage device are deployed in the storage server. A memory and a controller are deployed in the storage device. The operating power supply device is used to provide power for the operation of the storage device. N sub-power supply devices are deployed in the cache power supply device, where N is an integer greater than 1. The controller first detects the current cache state of the storage device; and when the cache state is used to indicate that the storage device has cached data, a backup power demand parameter of the storage device is generated according to the storage rate parameter, storage capacity parameter and operating power consumption parameter of the storage device. The storage rate parameter can indicate the storage rate of the memory for data, and the storage capacity parameter can indicate the maximum data allowed to be stored in the memory. The power consumption parameter can indicate the operating power consumption of the storage device; then, M sub-power supply devices that meet the backup power demand parameters are extracted from the N sub-power supply devices, and when the operating power supply device is detected to be powered off, the M sub-power supply devices are controlled to power the memory, wherein M is an integer greater than or equal to 1 and less than N, and the memory is used to back up cache data when powered by M sub-power supply devices. Through the above method, even if different types of storage devices appear and the backup power demand of the storage device changes, M sub-power supply devices that meet the backup power demand parameters of the storage device can be extracted from the N sub-power supply devices of the cache power supply device, and the memory is powered when the operating power supply device is powered off, thereby ensuring that the cache data can be successfully backed up. The above technical solution is adopted to solve the problem that the power supply device has poor adaptability to different storage devices in the related technology, and achieve the technical effect of improving the adaptability of the power supply device to different storage devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a hardware structure block diagram of a computer device of a power supply control method for a storage server according to an embodiment of the present application;
[0046] Figure 2 is a flow chart of a power supply control method for a storage server according to an embodiment of the present application;
[0047] Figure 3 is a schematic diagram of a storage server according to an embodiment of the present application;
[0048] Figure 4 is a schematic diagram of a multi-battery management system according to an embodiment of the present application;
[0049] Figure 5 is a structural block diagram of a power supply control device for a storage server according to an embodiment of the present application;
[0050] Figure 6 is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0051] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0052] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0053] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a computer device of a power supply control method for a storage server according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0054] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the power supply control method of the storage server in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0055] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0056] In this embodiment, a method for controlling power supply of a storage server is provided. Figure 2 is a flow chart of a power supply control method for a storage server according to an embodiment of the present application. Figure 2 As shown, a running power supply device, a cache power supply device and a storage device are deployed in the storage server, a memory and a controller are deployed in the storage device, the running power supply device is used to provide power for the operation of the storage device, and N sub-power supply devices are deployed in the cache power supply device, where N is an integer greater than 1. The method is applied to the controller, and the process includes the following steps:
[0057] Step S12, detecting the current cache status of the storage device;
[0058] Step S14, when the cache state is used to indicate that the storage device has cached data, generating a backup power requirement parameter of the storage device according to a storage rate parameter, a storage capacity parameter, and an operating power consumption parameter of the storage device, wherein the storage rate parameter is used to indicate a storage rate of the memory for data, the storage capacity parameter is used to indicate a maximum amount of data allowed to be stored in the memory, and the power consumption parameter is used to indicate the operating power consumption of the storage device;
[0059] Step S16, extracting M sub-power supply devices that meet the backup power demand parameter from the N sub-power supply devices, where M is an integer greater than or equal to 1 and less than N;
[0060] Step S18, when it is detected that the running power supply device is powered off, controlling the M sub-power supply devices to supply power to the memory, wherein the memory is used to back up the cache data when powered by the M sub-power supply devices.
[0061] Optionally, in this embodiment, Figure 3 is a schematic diagram of a storage server according to an embodiment of the present application, such as Figure 3As shown, the storage server is deployed with a running power supply device, a cache power supply device and a storage device, wherein the storage device is deployed with a memory and a controller, and the cache power supply device is deployed with 6 (N is 6) sub-power supply devices (BBU1 to BBU6).
[0062] Optionally, in this embodiment, it is assumed that the device power demand parameter is 4mWh, and the power currently allowed to be provided by each sub-power supply device BBU in BBU1 to BBU6 is:
[0063] BBU1: 1mWh;
[0064] BBU2: 1.5mWh;
[0065] BBU3: 2mWh;
[0066] BBU4: 2.5mWh;
[0067] BBU5: 3mWh;
[0068] BBU6: 3.5mWh.
[0069] Then, BBU1, BBU2 and BBU3 among BBU1 to BBU6 can be selected to power the memory when it is detected that the running power supply device is powered off, because the sum of the power amounts allowed to be provided by BBU1, BBU2 and BBU3 is greater than the backup power requirement parameter 4mWh (of course, there may be other power supply combinations, such as BBU1 and BBU5, etc.).
[0070] As an optional solution, extracting M sub-power supply devices that meet the backup power requirement parameters from the N sub-power supply devices includes:
[0071] S21, detecting an available power parameter of each of the N sub-power supply devices to obtain N available power parameters, wherein each available power parameter is used to indicate the amount of power currently allowed to be provided by the corresponding sub-power supply device among the N sub-power supply devices;
[0072] S22, detecting whether the N available power parameters are greater than the backup power requirement parameters;
[0073] S23, when it is detected that the N available power parameters are greater than the backup power requirement parameter, extract M sub-power supply devices whose sum of the available power parameters is greater than or equal to the backup power requirement parameter from the N sub-power supply devices.
[0074] Optionally, in this embodiment, before determining the M sub-power supply devices, it is first necessary to ensure that the N available power parameters are greater than the backup power requirement parameters. Figure 3In the example, it is necessary to ensure that the sum of the power allowed to be provided by BBU1 to BBU6 is greater than or equal to the backup power requirement parameter 4mWh. Then, M sub-power supply devices (different power supply combinations may exist) whose sum of the available power parameters is greater than or equal to the backup power requirement parameter are extracted from the 6 sub-power supply devices.
[0075] Furthermore, when there are multiple power supply combinations, the best power supply combination can be determined in the following manner, for example, there are two power supply combinations:
[0076] Power supply combination 1: BBU1, BBU2 and BBU3;
[0077] Power supply combination 2: BBU1 and BBU5;
[0078] Calculate the sum of available power parameters in different power supply combinations:
[0079] The total value of power supply combination 1: 4.5mWh;
[0080] The total value of power supply combination 2: 4mWh;
[0081] Since the difference between the sum of the power supply combination 2, 4mWh, and the backup power demand parameter 4mWh is smaller, that is, the power utilization rate is higher when the power supply combination 2 is adopted, the power supply combination 2 is a better power supply combination than the power supply combination 1. In the above manner, the best power supply combination closest to the backup power demand parameter (i.e., the smallest difference) can be determined from multiple power supply combinations, thereby improving the power utilization rate.
[0082] As an optional solution, the detecting the available power parameter of each of the N sub-power supply devices includes:
[0083] S31, determining the available power parameter of each sub-power supply device according to the current voltage parameter, remaining capacity parameter and full charge capacity parameter of each sub-power supply device, wherein the current voltage parameter is used to indicate the current actual voltage value of the corresponding sub-power supply device, the remaining capacity parameter is used to indicate the current remaining power of the corresponding sub-power supply device, and the full charge capacity parameter is used to indicate the power that can be stored in the sub-power supply device when it is fully charged;
[0084] S32, after detecting whether the N available power parameters are greater than the backup power requirement parameter, the method further includes:
[0085] S33, when it is detected that the N available power parameters are less than or equal to the backup power requirement parameter, generating target alarm information, wherein the target alarm information is used to warn that the current total power of the cache power supply device does not meet the backup power requirement parameter;
[0086] S34, sending the target alarm information to a target account, wherein the target account is used to charge the cache power supply device when receiving the target alarm information.
[0087] Optionally, in this embodiment, a storage server multi-battery management system is run on the controller. Figure 4 is a schematic diagram of a multi-battery management system according to an embodiment of the present application, such as Figure 4 As shown, the multi-battery management system includes: a monitoring module, a calibration module, a charging module, an init module and N sub-power supply devices (BBU1 and BBU2, just as examples, more BBUs can be set as needed). The controller first calculates the backup power requirement (backup power requirement parameter) based on the amount of disk data (storage capacity parameter), disk drop rate (storage rate parameter) and device power consumption during backup power (operation power consumption parameter) of the storage device, and according to the amount of disk data / disk drop rate = disk drop time, disk drop time * device power consumption during backup power = single backup power requirement (requirement_mWh, that is, a single backup power parameter, used to indicate the amount of electricity required for the storage device to run the storage duration indicated by the storage duration parameter according to the operating power consumption indicated by the operating power consumption parameter), then the double backup power requirement double_requirement_mWh can be determined as the backup power requirement parameter. On the premise that N sub-power supply devices meet the double backup power demand double_requirement_mWh, refer to the battery discharge capacity within the life cycle of a single battery (sub-power supply device), evaluate the use of M batteries of the same battery model, and provide M I2C lines for accessing battery parameters and determining the battery status. At the same time, determine the charging voltage threshold on the premise of meeting double_requirement_mWh / n, and provide it to the init module.
[0088] The init module will traverse M batteries, obtain the VPD information of each battery, the real-time information of the battery such as voltage, current, remaining capacity, full charge capacity, the time when the last calibration was completed, and initialize the battery's charging voltage threshold (provided by the hardware), backup power threshold (double_requirement_mWh / n) and other necessary information, and provide it to the monitoring module.
[0089] The monitoring module calculates the available power (available power parameter) based on the current voltage (current voltage parameter), remaining capacity (remaining capacity parameter) and full charge capacity (full charge capacity parameter) of each battery. The sum of the available power of M batteries is the system available power. When the system available power is lower than the backup power demand, the target alarm information will be reported to trigger the low battery alarm, preventing the cluster service from running and generating new cache data. The alarm disappears when the system available power is met.
[0090] As an optional solution, controlling the M sub-power supply devices to supply power to the memory includes:
[0091] S41, in the process that the M sub-power supply devices supply power to the memory, detecting whether each of the M sub-power supply devices meets a calibration condition, wherein the calibration condition is a condition that the sub-power supply device needs to meet before performing a power calibration operation, and the power calibration operation is used to calibrate the current available power parameter of the corresponding sub-power supply device, and the available power parameter is used to indicate the power currently allowed to be provided by the corresponding sub-power supply device;
[0092] S42: When it is detected that there is a target sub-power supply device that meets the calibration condition among the M sub-power supply devices, perform the power calibration operation on the target sub-power supply device to obtain the calibrated available power parameter.
[0093] Optionally, in this embodiment, whether the sub-power supply device meets the calibration condition is determined on the one hand to determine whether the sub-power supply device has not been calibrated for a long time and currently needs to perform a power calibration operation. On the other hand, it is determined whether the sub-power supply device allows the execution of the power calibration operation, that is, whether the execution of the power calibration operation will affect the power supply of the sub-power supply device.
[0094] As an optional solution, the detecting whether each of the M sub-power supply devices meets the calibration condition includes:
[0095] Whether the i-th sub-power supply device among the M sub-power supply devices meets the calibration condition is detected by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to M:
[0096] S51, detecting whether the verification interval corresponding to the i-th sub-power supply device is greater than an interval threshold, wherein the verification interval is the time interval from the current time to the last time the power calibration operation was performed;
[0097] S52, when the verification interval duration is greater than or equal to the interval duration threshold, detect whether the sum of the current available power parameters of the other M-1 sub-power supply devices except the i-th sub-power supply device among the M sub-power supply devices meets the single backup power parameter, wherein the single backup power parameter is used to indicate the power required for the memory to run the storage duration indicated by the storage duration parameter according to the operating power consumption indicated by the operating power consumption parameter, and the storage duration parameter is used to indicate the storage duration required for the memory to store the maximum amount of data indicated by the storage capacity parameter at the storage rate indicated by the storage rate parameter. When the sum of the current available power parameters of the M-1 sub-power supply devices is used to indicate that the sum of the power currently allowed to be provided by the M-1 sub-power supply devices is greater than the power indicated by the single backup power parameter, determine that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter;
[0098] S53: When it is detected that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter, determine that the i-th sub-power supply device meets the calibration condition.
[0099] Optionally, in this embodiment, if Figure 4 As shown, the monitoring module can update the redundancy status of each battery in real time. When the total available capacity of the remaining bbu (i.e., the M-1 sub-power supply devices) is higher than the backup power demand, the redundancy status of the battery (the i-th sub-power supply device) is TRUE, otherwise it is FALSE.
[0100] The monitoring module can also determine whether the battery needs to be calibrated according to the last calibration completion time of each battery, and when the interval time from the last calibration completion time reaches the interval time threshold, determine that the system calibration state of the battery is idle.
[0101] The controller can only calibrate the battery when it detects that the battery redundancy state is TRUE and the system calibration state is idle. During calibration, the system calibration state will be set to a non-idle state to prevent other batteries from triggering the calibration process and avoid affecting the power supply.
[0102] As an optional solution, performing the power calibration operation on the target sub-power supply device includes:
[0103] S61, obtaining a preset discharge ratio;
[0104] S62, performing a discharge operation on the target sub-power supply device according to the preset discharge ratio, and accumulating the discharge power of the target sub-power supply device during the process of the target sub-power supply device performing the discharge operation to obtain a target discharge power;
[0105] S63, determining a current actual available power parameter of the target sub-power supply device according to the preset discharge ratio and the target discharge power, and updating the current available power parameter of the target sub-power supply device to the current actual available power parameter.
[0106] Optionally, in this embodiment, if Figure 4 As shown in the figure, the calibration module will perform deep discharge on the battery. During the discharge process, the discharge amount will be accumulated in real time. Finally, the target discharge amount is obtained through the "discharge amount / discharge ratio", and the target discharge amount is required to be greater than the backup power threshold. Otherwise, the EOL alarm will be reported to remind the user that the battery is unusable. The backup power threshold is obtained by double_requirement_mWh / n (the backup power threshold is equal to double_requirement_mWh / n divided by the number of batteries used). When the number of batteries used increases, the backup power threshold becomes smaller, and the battery life cycle is longer.
[0107] As an optional solution, generating the backup power requirement parameter of the storage device according to the storage rate parameter, storage capacity parameter and operation power consumption parameter of the storage device includes:
[0108] S71, determining a storage duration parameter according to the storage capacity parameter and the storage rate parameter, wherein the storage duration parameter is used to indicate the storage duration required for the memory to store the maximum data amount indicated by the storage capacity parameter at the storage rate indicated by the storage rate parameter;
[0109] S72, generating a single backup power parameter of the storage device according to the storage duration parameter and the operation power consumption parameter, wherein the single backup power parameter is used to indicate the amount of power required for the memory to operate the storage duration indicated by the storage duration parameter according to the operation power consumption indicated by the operation power consumption parameter;
[0110] S73: Determine the product of the single backup power parameter and the target value as the backup power demand parameter, wherein the target value is a value greater than 1.
[0111] Optionally, in this embodiment, the controller calculates the backup power requirement (backup power requirement parameter) based on the amount of data flushed to disk (storage capacity parameter), the flushing rate (storage rate parameter), and the device power consumption during backup power (operating power consumption parameter) of the storage device, and according to the amount of data flushed to disk / flush rate = flushing time, flushing time*device power consumption during backup power = single backup power requirement (requirement_mWh, i.e., a single backup power parameter, used to indicate the amount of electricity required for the storage to run for the storage time indicated by the storage time parameter at the operating power consumption indicated by the operating power consumption parameter), then 2 (target value) times the backup power requirement double_requirement_mWh can be determined as the backup power requirement parameter.
[0112] Optionally, in this embodiment, if Figure 4 As shown, the monitoring module can obtain the voltage value of each battery in real time. When the battery is not in the calibration process and the voltage is lower than the charging voltage threshold, the battery charging process will be triggered. When the battery charging current is less than 0.05C, the charging will stop, and the battery is fully charged. The multi-battery management system can charge multiple batteries at the same time, so when new batteries are used, the cluster establishment time can be shortened.
[0113] Through the power supply control method of the storage server proposed in this application, the initialization, charging, and calibration management of multiple batteries can be realized based on the battery model and the number of batteries actually required by the storage device, and a storage controller (controller) can be powered by multiple batteries (M sub-power supply devices) to complete the backup task. The backup power demand of the new storage device can be met by a combination of multiple existing batteries, reducing the R&D investment cost of new batteries and enriching the use scenarios of existing batteries. In addition, the life cycle of the battery can be extended by increasing the number of batteries in use. The increase in the number of batteries improves the battery redundancy capability and reduces the impact of battery failure on cluster data loss.
[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0115] In this embodiment, a power supply control device for a storage server is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0116] Figure 5 is a structural block diagram of a power supply control device for a storage server according to an embodiment of the present application; Figure 5 As shown, a running power supply device, a cache power supply device and a storage device are deployed in the storage server, a memory and a controller are deployed in the storage device, the running power supply device is used to provide power for the operation of the storage device, and N sub-power supply devices are deployed in the cache power supply device, where N is an integer greater than 1. The device is applied to the controller and includes:
[0117] A detection module 502, used to detect the current cache status of the storage device;
[0118] A generating module 504 is used to generate a backup power requirement parameter of the storage device according to a storage rate parameter, a storage capacity parameter and an operating power consumption parameter of the storage device when the cache state indicates that the storage device has cache data, wherein the storage rate parameter is used to indicate a storage rate of the memory for data, the storage capacity parameter is used to indicate a maximum amount of data allowed to be stored in the memory, and the power consumption parameter is used to indicate the operating power consumption of the storage device;
[0119] An extraction module 506 is used to extract M sub-power supply devices that meet the backup power demand parameter from the N sub-power supply devices, where M is an integer greater than or equal to 1 and less than N;
[0120] The control module 508 is used to control the M sub-power supply devices to supply power to the memory when it is detected that the running power supply device is powered off, wherein the memory is used to back up the cache data when powered by the M sub-power supply devices.
[0121] In an exemplary embodiment, the extraction module comprises:
[0122] A first detection unit, configured to detect an available power parameter of each of the N sub-power supply devices, and obtain N available power parameters, wherein each available power parameter is used to indicate the power currently allowed to be provided by the corresponding sub-power supply device among the N sub-power supply devices;
[0123] A second detection unit, used to detect whether the N available power parameters are greater than the backup power requirement parameter;
[0124] The extraction unit is used to extract M sub-power supply devices whose sum of the available power parameters is greater than or equal to the backup power requirement parameter from the N sub-power supply devices when it is detected that the N available power parameters are greater than the backup power requirement parameter.
[0125] In an exemplary embodiment, the first detection unit comprises:
[0126] Determine the available power parameter of each sub-power supply device according to the current voltage parameter, remaining capacity parameter and full charge capacity parameter of each sub-power supply device, wherein the current voltage parameter is used to indicate the current actual voltage value of the corresponding sub-power supply device, the remaining capacity parameter is used to indicate the current remaining power of the corresponding sub-power supply device, and the full charge capacity parameter is used to indicate the power that can be stored in the sub-power supply device when it is fully charged;
[0127] After detecting whether the N available power parameters are greater than the backup power requirement parameter, the method further includes:
[0128] When it is detected that N of the available power parameters are less than or equal to the backup power requirement parameter, a target alarm message is generated, wherein the target alarm message is used to warn that the current total power of the cache power supply device does not meet the backup power requirement parameter;
[0129] The target alarm information is sent to a target account, wherein the target account is used to charge the cache power supply device when the target alarm information is received.
[0130] In an exemplary embodiment, the control module comprises:
[0131] a third detection unit, configured to detect whether each of the M sub-power supply devices satisfies a calibration condition during the process in which the M sub-power supply devices supply power to the memory, wherein the calibration condition is a condition that the sub-power supply device needs to satisfy before performing a power calibration operation, and the power calibration operation is used to calibrate a current available power parameter of the corresponding sub-power supply device, and the available power parameter is used to indicate the power currently allowed to be provided by the corresponding sub-power supply device;
[0132] The execution unit is configured to, when detecting that there is a target sub-power supply device satisfying the calibration condition among the M sub-power supply devices, execute the power calibration operation on the target sub-power supply device to obtain the calibrated available power parameter.
[0133] In an exemplary embodiment, the third detection unit comprises:
[0134] Whether the i-th sub-power supply device among the M sub-power supply devices meets the calibration condition is detected by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to M:
[0135] Detecting whether the verification interval corresponding to the i-th sub-power supply device is greater than an interval threshold, wherein the verification interval is the time interval from the current time to the last time the power calibration operation was performed;
[0136] In the case where the verification interval duration is greater than or equal to the interval duration threshold, detect whether the sum of the current available power parameters of the other M-1 sub-power supply devices except the i-th sub-power supply device among the M sub-power supply devices meets the single backup power parameter, wherein the single backup power parameter is used to indicate the power required for the memory to run the storage duration indicated by the storage duration parameter according to the operating power consumption indicated by the operating power consumption parameter, and the storage duration parameter is used to indicate the storage duration required for the memory to store the maximum data amount indicated by the storage amount parameter at the storage rate indicated by the storage rate parameter. In the case where the sum of the current available power parameters of the M-1 sub-power supply devices is used to indicate that the sum of the power currently allowed to be provided by the M-1 sub-power supply devices is greater than the power indicated by the single backup power parameter, determine that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter;
[0137] When it is detected that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter, it is determined that the i-th sub-power supply device meets the calibration condition.
[0138] In an exemplary embodiment, the execution unit includes:
[0139] Get the preset discharge ratio;
[0140] Performing a discharge operation on the target sub-power supply device according to the preset discharge ratio, and accumulating the discharge power of the target sub-power supply device during the process of the target sub-power supply device performing the discharge operation to obtain a target discharge power;
[0141] The current actual available power parameter of the target sub-power supply device is determined according to the preset discharge ratio and the target discharge power, and the current available power parameter of the target sub-power supply device is updated to the current actual available power parameter.
[0142] In an exemplary embodiment, the generating module comprises:
[0143] a determining unit, configured to determine a storage duration parameter according to the storage capacity parameter and the storage rate parameter, wherein the storage duration parameter is used to indicate a storage duration required for the memory to store data of a maximum data volume indicated by the storage capacity parameter at a storage rate indicated by the storage rate parameter;
[0144] a generating unit, configured to generate a single backup power parameter of the storage device according to the storage duration parameter and the operation power consumption parameter, wherein the single backup power parameter is used to indicate the amount of power required for the memory to operate the storage duration indicated by the storage duration parameter according to the operation power consumption indicated by the operation power consumption parameter;
[0145] The product of the single backup power parameter and the target value is determined as the backup power demand parameter, wherein the target value is a value greater than 1.
[0146] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0147] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the method described in each embodiment of the present application; the computer program product also includes a non-volatile computer-readable storage medium, which stores the computer program, and when executed by a processor, implements the steps of the method described in each embodiment of the present application.
[0148] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.
[0149] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0150] An embodiment of the present application further provides an electronic device, Figure 6 is a schematic diagram of an electronic device according to an embodiment of the present application, such as Figure 6As shown, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0151] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0152] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.
[0153] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0154] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.
Claims
1. A power supply control method for a storage server, It is characterized in that An operation power supply device, a cache power supply device and a storage device are deployed in the storage server. A memory and a controller are deployed in the storage device. The operation power supply device is used to provide power for the operation of the storage device. N sub-power supply devices are deployed in the cache power supply device, where N is an integer greater than 1. The method is applied to the controller and includes: Detecting a current cache state of the storage device; In the case where the cache state is used to indicate that the storage device has cached data, generating a backup power requirement parameter of the storage device according to a storage rate parameter, a storage capacity parameter, and an operating power consumption parameter of the storage device, wherein the storage rate parameter is used to indicate a storage rate of the memory for data, the storage capacity parameter is used to indicate a maximum amount of data allowed to be stored in the memory, and the power consumption parameter is used to indicate the operating power consumption of the storage device; Extracting M sub-power supply devices that meet the backup power demand parameter from the N sub-power supply devices, where M is an integer greater than or equal to 1 and less than N; When it is detected that the running power supply device is powered off, the M sub-power supply devices are controlled to supply power to the memory, wherein the memory is used to back up the cache data when powered by the M sub-power supply devices.
2. The method according to claim 1, It is characterized in that The extracting M sub-power supply devices that meet the backup power requirement parameters from the N sub-power supply devices includes: Detecting an available power parameter of each of the N sub-power supply devices to obtain N available power parameters, wherein each available power parameter is used to indicate the amount of power currently allowed to be provided by the corresponding sub-power supply device in the N sub-power supply devices; Detecting whether the N available power parameters are greater than the backup power requirement parameters; When it is detected that the N available power parameters are greater than the backup power requirement parameter, M sub-power supply devices whose sum of the available power parameters is greater than or equal to the backup power requirement parameter are extracted from the N sub-power supply devices.
3. The method according to claim 2, It is characterized in that The detecting the available power parameter of each of the N sub-power supply devices includes: Determine the available power parameter of each sub-power supply device according to the current voltage parameter, remaining capacity parameter and full charge capacity parameter of each sub-power supply device, wherein the current voltage parameter is used to indicate the current actual voltage value of the corresponding sub-power supply device, the remaining capacity parameter is used to indicate the current remaining power of the corresponding sub-power supply device, and the full charge capacity parameter is used to indicate the power that can be stored in the sub-power supply device when it is fully charged; After detecting whether the N available power parameters are greater than the backup power requirement parameter, the method further includes: When it is detected that N of the available power parameters are less than or equal to the backup power requirement parameter, a target alarm message is generated, wherein the target alarm message is used to warn that the current total power of the cache power supply device does not meet the backup power requirement parameter; The target alarm information is sent to a target account, wherein the target account is used to charge the cache power supply device when the target alarm information is received.
4. The method according to claim 1, It is characterized in that The controlling the M sub-power supply devices to supply power to the memory includes: In the process that the M sub-power supply devices supply power to the memory, detecting whether each of the M sub-power supply devices meets a calibration condition, wherein the calibration condition is a condition that the sub-power supply device needs to meet before performing a power calibration operation, and the power calibration operation is used to calibrate the current available power parameter of the corresponding sub-power supply device, and the available power parameter is used to indicate the power currently allowed to be provided by the corresponding sub-power supply device; In the case where it is detected that there is a target sub-power supply device that meets the calibration condition among the M sub-power supply devices, the power calibration operation is performed on the target sub-power supply device to obtain the calibrated available power parameter.
5. The method according to claim 4, It is characterized in that The detecting whether each of the M sub-power supply devices meets the calibration condition includes: Whether the i-th sub-power supply device among the M sub-power supply devices meets the calibration condition is detected by the following steps, wherein i is an integer greater than or equal to 1 and less than or equal to M: Detecting whether the verification interval corresponding to the i-th sub-power supply device is greater than an interval threshold, wherein the verification interval is the time interval from the current time to the last time the power calibration operation was performed; In the case where the verification interval duration is greater than or equal to the interval duration threshold, detect whether the sum of the current available power parameters of the other M-1 sub-power supply devices except the i-th sub-power supply device among the M sub-power supply devices meets the single backup power parameter, wherein the single backup power parameter is used to indicate the power required for the memory to run the storage duration indicated by the storage duration parameter according to the operating power consumption indicated by the operating power consumption parameter, and the storage duration parameter is used to indicate the storage duration required for the memory to store the maximum data amount indicated by the storage amount parameter at the storage rate indicated by the storage rate parameter. In the case where the sum of the current available power parameters of the M-1 sub-power supply devices is used to indicate that the sum of the power currently allowed to be provided by the M-1 sub-power supply devices is greater than the power indicated by the single backup power parameter, determine that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter; When it is detected that the sum of the current available power parameters of the M-1 sub-power supply devices meets the single backup power parameter, it is determined that the i-th sub-power supply device meets the calibration condition.
6. The method according to claim 4, It is characterized in that The performing the power calibration operation on the target sub-power supply device includes: Get the preset discharge ratio; Performing a discharge operation on the target sub-power supply device according to the preset discharge ratio, and accumulating the discharge power of the target sub-power supply device during the process of the target sub-power supply device performing the discharge operation to obtain a target discharge power; The current actual available power parameter of the target sub-power supply device is determined according to the preset discharge ratio and the target discharge power, and the current available power parameter of the target sub-power supply device is updated to the current actual available power parameter.
7. The method according to claim 1, It is characterized in that Generating the backup power requirement parameter of the storage device according to the storage rate parameter, storage capacity parameter and operation power consumption parameter of the storage device includes: Determining a storage duration parameter according to the storage capacity parameter and the storage rate parameter, wherein the storage duration parameter is used to indicate a storage duration required for the memory to store the maximum data amount indicated by the storage capacity parameter at the storage rate indicated by the storage rate parameter; Generate a single backup power parameter of the storage device according to the storage duration parameter and the operation power consumption parameter, wherein the single backup power parameter is used to indicate the amount of power required for the memory to operate the storage duration indicated by the storage duration parameter according to the operation power consumption indicated by the operation power consumption parameter; The product of the single backup power parameter and the target value is determined as the backup power demand parameter, wherein the target value is a value greater than 1.
8. A power supply control device for a storage server, It is characterized in that An operation power supply device, a cache power supply device and a storage device are deployed in the storage server. A memory and a controller are deployed in the storage device. The operation power supply device is used to provide power for the operation of the storage device. N sub-power supply devices are deployed in the cache power supply device, where N is an integer greater than 1. The device is applied to the controller and includes: A detection module, used to detect the current cache status of the storage device; a generating module, configured to generate a backup power requirement parameter of the storage device according to a storage rate parameter, a storage capacity parameter and an operating power consumption parameter of the storage device when the cache state indicates that the storage device has cache data, wherein the storage rate parameter is used to indicate a storage rate of the memory for data, the storage capacity parameter is used to indicate a maximum amount of data allowed to be stored in the memory, and the power consumption parameter is used to indicate an operating power consumption of the storage device; An extraction module, used to extract M sub-power supply devices that meet the backup power demand parameters from the N sub-power supply devices, where M is an integer greater than or equal to 1 and less than N; A control module is used to control the M sub-power supply devices to supply power to the memory when it is detected that the running power supply device is powered off, wherein the memory is used to back up the cache data when powered by the M sub-power supply devices.
9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Storage equipment detection method and device, storage medium and electronic equipment
CN120544655A
Power supply system and power supply method for storage product
CN120978974A
