CN109032320A - Battery back unit test method and relevant device - Google Patents

Battery back unit test method and relevant device Download PDF

Info

Publication number
CN109032320A
CN109032320A CN201810842277.7A CN201810842277A CN109032320A CN 109032320 A CN109032320 A CN 109032320A CN 201810842277 A CN201810842277 A CN 201810842277A CN 109032320 A CN109032320 A CN 109032320A
Authority
CN
China
Prior art keywords
bbu
instruction
threshold value
target detection
test result
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.)
Granted
Application number
CN201810842277.7A
Other languages
Chinese (zh)
Other versions
CN109032320B (en
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810842277.7A priority Critical patent/CN109032320B/en
Publication of CN109032320A publication Critical patent/CN109032320A/en
Application granted granted Critical
Publication of CN109032320B publication Critical patent/CN109032320B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The embodiment of the present application discloses a kind of battery back unit B BU test method, is applied to memory node, for the test by offer to BBU, to guarantee the high availability of the BBU in actual working environment.The embodiment of the present application method includes: to send test instruction to the BBU, and test instruction is used to indicate the BBU and returns to original test result;Target detection result is determined according to the original test result that the BBU is returned;Judge whether the target detection result is more than default test result threshold value;If being more than the default test result threshold value, report and alarm.

Description

Battery back unit test method and relevant device
Technical field
This application involves field of data storage, more particularly, to a kind of battery back unit test method and relevant device.
Background technique
In the 21st century, is with the arrival of internet, and the data that the mankind generate in production and life are with being presented exponential type Increase.Data are growing day by day, and the capacity for needing to store is increasing, and single node and disk array these traditional memory technologies are It is difficult to meet the needs of mass data storage, cluster storage system is obtained extensive fortune with its natural scalability advantage With including distributed file system.
It include multiple memory nodes, BBU (battery back-up unit, battery back list in distributed memory system Member) it is used as backup battery, it is widely used in each memory node.When the power-off of the external power supply of some memory node, by BBU is responsible for providing the electric power of data cached rule, data dump, avoids loss of data.
When external power supply power-off, if BBU breaks down, electric power can not be provided or electric power is insufficient, necessarily caused User data loss.Therefore it provides a kind of test method of BBU to be to guarantee the high availability of the BBU in actual working environment, It is those skilled in the art's urgent problem to be solved.
Summary of the invention
The embodiment of the present application provides a kind of battery back unit test method, for coming by providing the test to BBU Guarantee the high availability of the BBU in actual working environment.
In a first aspect, the embodiment of the present application provides a kind of battery back unit test method, it is applied to memory node, the party Method includes:
Test instruction is sent to the BBU, test instruction is used to indicate the BBU and returns to original test result;
Target detection result is determined according to the original test result that the BBU is returned;
Judge whether the target detection result is more than default test result threshold value;
If being more than the default test result threshold value, report and alarm.
Second aspect, the embodiment of the present application provide a kind of memory node, which includes:
Transmission unit, for sending test instruction to the BBU, test instruction is used to indicate the BBU and returns to original test As a result;
Determination unit, the original test result for being returned according to the BBU determine target detection result;
Judging unit, for judging whether the target detection result is more than default test result threshold value;
Reporting unit is used for when judging unit determines and is more than the default test result threshold value, report and alarm.
The third aspect, the embodiment of the present application provide a kind of memory node, which includes: processor and memory, The instruction of battery back unit testing described in aforementioned first aspect is stored in the memory;
The processor is used to execute the instruction of the battery back unit testing stored in memory, executes such as aforementioned first party Described in face the step of battery back unit test method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer readable storage medium In be stored with the instruction of battery back unit testing, when run on a computer, so that computer executes aforementioned first party Method described in face.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
Test instruction is sent to BBU, so that BBU returns to original test result, root after receiving test instruction The original test result returned according to BBU generates target detection as a result, and judging whether the target detection result has been more than preset Test result threshold value, the if more than test result threshold value then issues report and alarm.This programme is surveyed by sending to BBU The mode of examination instruction detects whether BBU is the BBU operated normally, to guarantee the high availability of BBU;And by memory node according to The original test result that BBU is returned determines target detection as a result, avoiding bringing extra work to bear to BBU;In target detection When being as a result more than preset test result threshold value, report and alarm is issued, to remind the failure of processing BBU in time, to guarantee to use The safety of user data.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of distributed file system provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram of battery back unit test method provided by the embodiments of the present application;
Fig. 3 is another flow diagram of battery back unit test method provided by the embodiments of the present application;
Fig. 4 is another flow diagram of battery back unit test method provided by the embodiments of the present application;
Fig. 5 is another flow diagram of battery back unit test method provided by the embodiments of the present application;
Fig. 6 is another flow diagram of battery back unit test method provided by the embodiments of the present application;
Fig. 7 is a kind of structural schematic diagram of memory node provided by the embodiments of the present application;
Fig. 8 is another structural schematic diagram of memory node provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application provides a kind of battery back unit test method, for coming by providing the test to BBU Guarantee the high availability of the BBU in actual working environment.The embodiment of the present application also provides corresponding memory nodes, server And computer readable storage medium.It is described in detail separately below.
Description and claims of this specification and term " first ", " second ", " third ", " in above-mentioned attached drawing The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage The data that solution uses in this way are interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to Here the sequence other than those of diagram or description is implemented.
As shown in Figure 1, distributed file system is made of multiple memory nodes 10, multiple memory nodes 10 can be distributed in Same place can also be distributed in any number of places, pass through network 20 between multiple memory nodes 10 and carry out communication and data Transmission.Wherein, BBU is each equipped on each memory node 10, operation has main system on each memory node 10, BBU fortune Row has independent BBU system.
In the present embodiment, distributed file system includes tide distributed memory system ICFS system, extensive dispersion text Part system (google file system, GFS), cluster file system Lustre or other distributed file systems etc., at this In embodiment and subsequent embodiment, only in a distributed manner file system be ICFS system for be illustrated.
In the present embodiment, network 20 can be cable network or wireless network, wireless network can be WAN (wide area network), Wireless network, point to point network, star network, token-ring network or other wireless networks etc., in the embodiment of the present application not by Limitation.
In the present embodiment, memory node 10 can be made of a storage equipment, be also possible to by several storage equipment The storage device cluster of composition can carry out the storage and processing of data, specifically herein without limitation.
The test method of the battery back unit in the application is described in detail below, referring to Fig. 2, the application is real Applying a kind of battery back unit test method embodiment that example provides may include:
201, memory node sends test instruction to BBU.
In the present embodiment, the main system run on each memory node may include one or more test modules, no Same test module can send different test instructions to BBU, and test instruction is used to indicate the BBU and returns to original test knot Fruit.
In the present embodiment, testing instruction is the situation and the instruction sent that memory node is understanding BBU, as an example, can Think that first of the build-in attribute for reading BBU reads instruction, or the second reading for reading the operating status of BBU refers to It enables, the electric discharge instruction or other kinds of test instruction of discharge operation can also be carried out for instruction BBU, is not limited herein specifically It is fixed.
In the present embodiment, original test result is corresponding with test instruction, feeds back after receiving test instruction for BBU Information, as an example, can be BBU build-in attribute, or the operating status of BBU, can also be discharge signal lamp, Specifically herein without limitation.
202, memory node determines target detection result according to the original test result that the BBU is returned.
In the present embodiment, memory node can be that receive this original after the original test result for receiving BBU return After test result, using the original test result read this as target detection result;Or receive the original test As a result after, target detection result is generated according to the original test result.
In the present embodiment, target detection result is that can react the information of the attribute of BBU, as an example, such as BBU's consolidates There are attribute, the practical specified electric quantity of BBU, BBU to receive the time interval or other kinds of attribute letter of information and return information Breath etc., specifically herein without limitation.
203, memory node judges whether the target detection result is more than default test result threshold value;If being more than the default survey Test result threshold value, then enter step 204;If being less than the default test result threshold value, 205 are entered step.
Test result threshold value is previously provided in the present embodiment, on memory node, due to can in the main system of memory node There are one or more test modules, difference is can be set for different types of target detection result in different test modules Test result threshold value.
204, memory node report and alarm.
In the present embodiment, when memory node determines that target detection result is more than default test result threshold value, it can report Alarm, as an example, if prompting the BBU unavailable when the build-in attribute according to BBU has been more than preset attribute thresholds; As another example, if the ratio of the practical specified electric quantity of BBU and standard specified electric quantity is lower than preset power threshold, The report and alarm etc. under BBU or other situations is replaced in prompt, it should be understood that herein for convenience of understanding, the act to report and alarm Example, the situation of specific report and alarm should flexibly be set according to the actual situation, herein without limitation.
205, memory node executes other programs.
In the present embodiment, to BBU send test instruction so that BBU receive test instruction after return it is original Test result, the original test result returned according to BBU generate target detection as a result, and judging whether the target detection result surpasses Preset test result threshold value is crossed, the test result threshold value if more than then issues report and alarm.This programme pass through to The mode that BBU sends test instruction detects whether BBU is the BBU operated normally, to guarantee the high availability of BBU;And by depositing It stores up node and target detection is determined as a result, avoiding bringing extra work to bear to BBU according to the original test result that BBU is returned; When target detection result is more than preset test result threshold value, report and alarm is issued, to remind the failure of processing BBU in time, To guarantee the safety of user data.
Since memory node may include multiple test modules, different test modules sends different tests to BBU and refers to It enables, so that memory node can receive different original test results, and then obtains different target detections as a result, based on not Same test module, is illustrated separately below:
One, electricity correction verification module
Referring particularly to Fig. 3, a kind of one embodiment of battery back unit test method provided by the embodiments of the present application can To include:
301, when the BBU is in full power state, memory node sends the first electric discharge instruction to the BBU.
In the present embodiment, the real time electrical quantity of the available BBU of memory node, when memory node determines that the BBU is in full electricity When state, the first electric discharge instruction is sent to the BBU, which at least carries first voltage, is used to indicate the BBU Discharge operation is executed until the current voltage of the BBU is the first voltage.
302, memory node generates the first electricity, which is the BBU according to the first electric discharge instruction execution electric discharge The electricity released during operation.
In the present embodiment, memory node receives the electric discharge of BBU return after sending the first electric discharge instruction to the BBU Signal reads a discharge current every fixed duration, in time by the discharge current after receiving discharge signal Integral generate first electricity.
In the present embodiment, a length of preset duration when fixed can be 5 seconds, 3 seconds, 6 seconds or the duration of other length, specifically Herein without limitation.
303, memory node determines the practical specified electric quantity of the BBU according to the first voltage and first electricity.
In the present embodiment, since in a certain range, the voltage and electricity of BBU is in a linear relationship, and memory node is obtaining To after first electricity, the discreet value of the current total electricity of the BBU can be determined according to the first voltage and first electricity.Make For example, such as when BBU voltage is A, remaining capacity is the 75% of FCC, after BBU is fully charged, is carried to BBU transmission First electric discharge instruction of A voltage, after receiving discharge signal, every the discharge current of reading in 5 seconds, passes through discharge current The electricity B that integral in time is released estimates the practical specified electric quantity C=B/0.25 of BBU according to electricity C;As another One example, for example, BBU voltage be D when, remaining capacity be FCC 50%, after BBU is fully charged, to the BBU transmission carry First electric discharge instruction of D voltage, after receiving discharge signal, every the discharge current of reading in 5 seconds, passes through discharge current The electricity E that integral in time is released estimates the practical specified electric quantity F=E/0.5 of BBU according to electricity, it should be understood that Since the linear relationship between the first voltage and the first electricity of different BBU may be different, it illustrates herein only for convenience Understand, the relationship between specific first voltage and the first electricity in the light of actual conditions should flexibly be set, herein without limitation.
304, it is default to judge whether the ratio of standard specified electric quantity shared by the practical specified electric quantity is lower than first for memory node Threshold value enters step 305 if being lower than first preset threshold;If being not below first preset threshold, 306 are entered step.
In the present embodiment, memory node generates the practical specified electric quantity institute after determining the practical specified electric quantity of the BBU The ratio of standard specified electric quantity is accounted for, and it is pre- to judge whether the ratio of standard specified electric quantity shared by the practical specified electric quantity is lower than first If threshold value.
Specified electric quantity in the present embodiment, when standard specified electric quantity can just dispatch from the factory for BBU.
In the present embodiment, the first preset threshold is that memory node is preset according to the actual conditions of memory node, due to The memory node for including in different storage products is different to the reliability requirement of BBU, wherein high to the reliability requirement of BBU Preset first preset threshold of memory node it is smaller, it is default to the memory node preset first that the reliability requirement of BBU is low Threshold value is larger.
305, memory node report and alarm.
In the present embodiment, memory node is lower than first in the ratio for determining standard specified electric quantity shared by the practical specified electric quantity After preset threshold, report and alarm, as an example, the warning content reported can for " BBU power supply capacity is insufficient, needs to change BBU ", The warning content specifically reported, herein without limitation.
It should be appreciated that can be to execute in first time when first time executing step 301 to 304, when memory node determines After the ratio of standard specified electric quantity shared by the practical specified electric quantity is lower than the first preset threshold, it is directly entered step 305;It can also be with For when first time executing step 301 to 304, if memory node determines the ratio of standard specified electric quantity shared by the practical specified electric quantity Example is lower than the first preset threshold, repeats and executes a step 301 to 304, namely to BBU charging until the BBU is full electric shape When state, the first electric discharge instruction is sent to the BBU again, generates the first electricity, with being determined according to the first voltage and first electricity The practical specified electric quantity of the BBU, and it is pre- to judge whether the ratio of standard specified electric quantity shared by the practical specified electric quantity is lower than first If threshold value, if entering back into step 305 when still above first preset value.
In the present embodiment, it can be one that memory node, which sends the time interval that first electric discharge instructs twice to the BBU, The moon was to three months.
In the present embodiment, timer may be provided on memory node, sending this to the BBU calculating memory node first puts The time interval of electricity instruction, the time interval can be one month, or two months, can also be three months etc., specifically The length for sending the time interval of the first electric discharge instruction twice can flexibly be set according to the actual situation, since time interval is arranged The too short normal work for influencing BBU also increases the burden of memory node, and if time interval setting is too long, it not can guarantee Time interval is set as one month to three months, not only ensure that the power supply capacity of BBU by the power supply capacity of BBU, but also is avoided that frequently It verifies to burden caused by memory node.
306, memory node executes other programs.
In the present embodiment, due to the use with BBU, practical specified electric quantity can be gradually decreased, so as to cause the BBU's Power supply capacity constantly declines, and periodically sends electric discharge instruction to BBU and arrives first voltage, and according to first voltage and BBU in the electric discharge The first electricity generated in operation determines the practical specified electric quantity of the BBU, the standard specified electric quantity shared by the practical specified electric quantity When ratio is lower than the first preset threshold, then prompting changing BBU, to ensure that the power supply capacity of BBU, to guarantee that the height of BBU can The property used.
Two, discharge test module
Referring particularly to Fig. 4, a kind of another embodiment of battery back unit test method provided by the embodiments of the present application May include:
401, memory node sends the second electric discharge instruction to the BBU.
In the present embodiment, memory node sends the second electric discharge instruction to the BBU, which is used to indicate this BBU executes discharge operation.
402, memory node receives the discharge signal of BBU return, to obtain first time interval.
In the present embodiment, after sending the second electric discharge instruction to the BBU, the discharge signal of BBU return is received, thus Determine first time interval, which is to send the time of the second electric discharge instruction to the BBU and receive the BBU The discharge signal time interval.
403, memory node judges the first time interval whether more than the second preset threshold, if being more than the second default threshold Value, then enter step 404;If being less than second preset threshold, 405 are entered step.
The second preset threshold is preset in the present embodiment, on memory node, after obtaining first time interval, judge this Whether one time interval is more than the second preset threshold.
In the present embodiment, the second preset threshold is used to react the power supply capacity of BBU, higher to the power supply capacity requirement of BBU, Then the second preset threshold is smaller, requires the power supply capacity of BBU lower, then the second preset threshold is bigger, as an example, such as the Two preset thresholds can be for 50 milliseconds, 40 milliseconds, 60 milliseconds or other length etc., specifically herein without limitation.
404, memory node report and alarm.
In the present embodiment, memory node determines that the first time interval is more than the second preset threshold, then report and alarm, reports Warning content can be for " BBU power supply time-out, please replace BBU ", the warning content specifically reported, herein without limitation.
It should be appreciated that can be to execute in first time when first time executing step 401 to 403, if between the first time Every more than the second preset threshold, then step 404 is directly entered;Or when first time executing step 401 to 403, if should First time interval is more than the second preset threshold, repeats and executes a step 401 to 403, if still above second preset value When, enter back into step 404;It can also be for when first time executing step 401 to 403, if the first time interval is more than second Preset threshold, repeating execution, step 401 is to 403 two or more times, if entering back into step when still above second preset value 404。
405, memory node executes other programs.
In the present embodiment, after sending the second electric discharge instruction to BBU, according to the discharge signal received to determine to the BBU Time and the first time interval for the discharge signal for receiving the BBU for sending the second electric discharge instruction, when the first time When interval is more than the second preset threshold, then report and alarm, so that BBU can be timely when guaranteeing the extraneous power cut-off of memory node Power supply.
Three, initialization module
Referring particularly to Fig. 5, a kind of another embodiment of battery back unit test method provided by the embodiments of the present application May include:
501, memory node sends first to the BBU and reads instruction.
In the present embodiment, in the system initialization of BBU, memory node sends first to the BBU and reads instruction, this first It reads instruction and is used to indicate the build-in attribute that the BBU obtains the BBU.Wherein, the build-in attribute of BBU may include the production of BBU Manufacturer, firmware version, battery size or other build-in attribute information.
502, memory node receives and reads the build-in attribute of the BBU of BBU return.
503, memory node judges whether the build-in attribute of the BBU is more than preset attribute threshold value, if being more than the preset attribute Threshold value then enters step 504;If being less than the preset attribute threshold value, 505 are entered step.
In the present embodiment, it is preset with attribute thresholds on memory node, is reading the intrinsic of the BBU of BBU return After attribute, judge whether the build-in attribute of the BBU is more than preset attribute threshold value.
In the present embodiment, the BBU that can be supported on different memory nodes is different, and therefore, different memory nodes is default Attribute thresholds it is different, production firm, the firmware version of BBU need to be set according to the actual BBU compatible context of different memory nodes The threshold value of the build-in attributes such as this or battery size.
504, memory node report and alarm.
In the present embodiment, memory node determines whether the build-in attribute of the BBU is more than preset attribute threshold value, then upper report Alert, report and alarm content can be " BBU is unavailable ", the warning content specifically reported, herein without limitation.
505, memory node executes other programs.
In the present embodiment, since the BBU that different memory nodes can be supported is different, in BBU initialization, BBU is read Build-in attribute, to judge whether the BBU can be used, thus guarantee be loaded into memory node BBU be the memory node support BBU。
Four, fault detection module
Referring particularly to Fig. 6, a kind of another embodiment of battery back unit test method provided by the embodiments of the present application May include:
601, memory node sends second to the BBU and reads instruction.
In the present embodiment, in the operational process of the BBU, memory node sends second to the BBU and reads instruction, this second It reads instruction and is used to indicate the running state information that the BBU obtains the BBU.Wherein the running state information of BBU includes the temperature of BBU The information such as degree.
602, memory node receives the running state information of BBU return, to obtain the second time interval.
In the present embodiment, memory node determines the second time interval after the running state information for receiving BBU return, Second time interval is the time for sending the second reading instruction and the time interval for receiving the running state information.
603, memory node judges whether second time interval is more than third predetermined threshold value, if being more than that the third presets threshold Value, then enter step 605;If being less than the third predetermined threshold value, 604 are entered step.
604, memory node judges the running state information whether more than the 4th preset threshold, if being more than the 4th default threshold Value, then enter step 605;If being less than the 4th preset threshold, 606 are entered step.
In the present embodiment, when determining that second time interval is less than third predetermined threshold value, then the operating status is judged Whether information is more than the 4th preset threshold.Wherein, the 4th preset threshold can be the information such as the temperature threshold of preset BBU.
605, memory node report and alarm.
In the present embodiment, when entering step 605 by step 603, the content of report and alarm can be for " in BBU communication It is disconnected ";When entering step 605 by step 604, the content of report and alarm can be " BBU temperature is excessively high " etc., not do herein specifically It limits.
It should be appreciated that step 604 is optional step, if without step 604, when in step 603 judgement be less than this When three preset thresholds, step 606 can be directly entered.
606, memory node executes other programs.
In the present embodiment, memory node exercises supervision to BBU operational process, guarantees the operation shape of BBU in the process of running State is good, to guarantee the high availability of BBU.
Based on Fig. 2 to Fig. 6 described embodiment, the embodiment of the present application also provides another battery back unit testings Embodiment of the method, after step 205, the battery back unit test method further include:
Memory node detects the voltage of the BBU;
When the voltage of the BBU is lower than predetermined voltage threshold, memory node is to BBU charging until the voltage of the BBU reaches To voltage rating;
Memory node sends third electric discharge instruction to the BBU, and third electric discharge instruction at least carries second voltage, is used for Indicate that the BBU executes discharge operation until the current voltage of the BBU is the second voltage, wherein the BBU is in the second voltage When service life be higher than in the voltage rating service life.
In the present embodiment, memory node detects the voltage of BBU, when being lower than predetermined voltage threshold, fills in time to the BBU Electricity, and discharge after reaching voltage rating, so that the current voltage of BBU is lower than voltage rating, thus guaranteeing BBU electricity Under the premise of abundance, the service life of BBU is improved.
It should be appreciated that any one test module in aforementioned four test module can be set in memory node, It can be provided with aforementioned four test module simultaneously, can also be any combination of aforementioned four test module.
Fig. 7 is a kind of structural schematic diagram of memory node provided in an embodiment of the present invention, which can wrap It includes:
Transmission unit 701, for sending test instruction to the BBU, test instruction is used to indicate the BBU and returns to original survey Test result;
Determination unit 702, the original test result for being returned according to the BBU determine target detection result;
Judging unit 703, for judging whether the target detection result is more than default test result threshold value;
Reporting unit 704 is used for when the judging unit 703 determines and is more than the default test result threshold value, report and alarm.
Further, transmission unit 701 is specifically used for when the BBU is in full power state, sends the first electric discharge to the BBU Instruction, the first electric discharge instruction at least carry first voltage, are used to indicate the BBU and execute discharge operation until the BBU's works as Preceding voltage is the first voltage;
Determination unit 702 is specifically used for the discharge signal returned according to the BBU, generates the first electricity, which is The BBU according to the first electric discharge instruction execution discharge operation during the electricity that is released, according to the first voltage and should First electricity determines the practical specified electric quantity of the BBU;
Judging unit 703 is specifically used for judging whether the ratio of standard specified electric quantity shared by the practical specified electric quantity is lower than the One preset threshold, when being lower than first preset threshold, it is determined that the target detection result is more than the default test result threshold value.
Further, transmission unit 701 is specifically used for sending the second electric discharge instruction to the BBU, which uses In instruction, the BBU executes discharge operation;
Determination unit 702 is specifically used for receiving the discharge signal that the BBU is returned, and to obtain first time interval, this first Time interval is that time and the time interval for the discharge signal for receiving the BBU of the second electric discharge instruction are sent to the BBU;
Judging unit 703 be specifically used for judge the first time interval whether more than the second preset threshold, when more than this When two preset thresholds, it is determined that the target detection result is more than the default test result threshold value.
Further, transmission unit 701 is specifically used for sending the first reading instruction to the BBU, which uses In indicating that the BBU obtains the build-in attribute of the BBU;
Determination unit 702 is specifically used for receiving and reading the build-in attribute of the BBU of BBU return;
Judging unit 703 is specifically used for judging whether the build-in attribute of the BBU is more than preset attribute threshold value, when pre- more than this If when attribute thresholds, it is determined that the target detection result is more than the default test result threshold value.
Further, transmission unit 701 is specifically used for sending the second reading instruction to the BBU, which uses In indicating that the BBU obtains the running state information of the BBU;
Determination unit 702 is specifically used for receiving the running state information that the BBU is returned, should to obtain the second time interval Second time interval is the time for sending the second reading instruction and the time interval for receiving the running state information;
Judging unit 703 is specifically used for judge whether second time interval is more than third predetermined threshold value, when more than this When three preset thresholds, it is determined that the target detection result is more than the default test result threshold value.
Further, which can also include:
Detection unit 705, for detecting the voltage of the BBU;
Charhing unit 706, for being charged to the BBU until the BBU when the voltage of the BBU is lower than predetermined voltage threshold Voltage reach voltage rating;
Discharge cell 707, for sending third electric discharge instruction to the BBU, third electric discharge instruction at least carries second Voltage is used to indicate the BBU and executes discharge operation until the current voltage of the BBU is the second voltage, wherein the BBU is in The service life when second voltage is higher than the service life in the voltage rating.
The process and earlier figures 2 that each unit executes in the present embodiment, in memory node store section into embodiment illustrated in fig. 6 The performed process of point is similar, and details are not described herein again.
In the present embodiment, transmission unit 701 sends test instruction to BBU, so that BBU is receiving test instruction After return to original test result, the original test result that is returned by determination unit 702 according to BBU generates target detection as a result, simultaneously Judge whether the target detection result has been more than preset test result threshold value by judging unit 703, the survey if more than Test result threshold value, then reporting unit 704 issues report and alarm.This programme detects BBU by way of sending test instruction to BBU It whether is the BBU operated normally, to guarantee the high availability of BBU;And the original test knot returned by memory node according to BBU Fruit determines target detection as a result, avoiding bringing extra work to bear to BBU;It is tied in target detection result more than preset test When fruit threshold value, report and alarm is issued, to remind the failure of processing BBU in time, to guarantee the safety of user data.
A kind of memory node is also provided in the embodiment of the present application, referring to Fig. 8, which can be because of configuration or performance It is different and generate bigger difference, may include one or more processors 801 and memory 802 (such as one or More than one mass memory unit).Wherein, memory 802 can be of short duration storage or persistent storage.It is stored in memory 802 On program may include one or more modules (diagram does not mark), each module may include in memory node Series of instructions operation.Further, processor 801 can be set to communicate with memory 802, on memory node 800 Execute the series of instructions operation in memory 802.
Memory node 800 can also include one or more input-output units 803, one or more power supplys 804, one or more wired or wireless network interfaces 805.
In some embodiments of the invention, processor 801, memory 802, input-output unit 803,804 and of power supply Wired or wireless network interface 805 can be connected by bus or other means, in Fig. 8 for being connected by bus.
The finger of earlier figures 2 to the test of battery back unit described in embodiment illustrated in fig. 6 is stored in the memory It enables;
The processor is used to execute the instruction of the test of the battery back unit stored in memory, executes such as earlier figures 2 To described in embodiment illustrated in fig. 6 the step of the test method of battery back unit.
A kind of computer readable storage medium is also provided in the embodiment of the present application, is stored in the computer readable storage medium There is the instruction of the test of battery back unit, when run on a computer, so that computer is executed such as earlier figures 2 to Fig. 6 Described in illustrated embodiment the step of the test method of battery back unit.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of battery back unit B BU test method, which is characterized in that be applied to memory node, which comprises
Test instruction is sent to the BBU, the test instruction is used to indicate the BBU and returns to original test result;
Target detection result is determined according to the original test result that the BBU is returned;
Judge whether the target detection result is more than default test result threshold value;
If being more than the default test result threshold value, report and alarm.
2. the method according to claim 1, wherein described send test instruction to the BBU, comprising:
When the BBU is in full power state, the first electric discharge instruction is sent to the BBU, the first electric discharge instruction is at least taken With first voltage, it is used to indicate the BBU and executes discharge operation until the current voltage of the BBU is the first voltage;
The original test result returned according to the BBU determines target detection result, comprising:
According to the discharge signal that the BBU is returned, the first electricity is generated, first electricity is the BBU according to described first The electricity released during electric discharge instruction execution discharge operation;
The practical specified electric quantity of the BBU is determined according to the first voltage and first electricity;
It is described to judge whether the target detection result is more than default test result threshold value, comprising:
Judge whether the ratio of standard specified electric quantity shared by the practical specified electric quantity is lower than the first preset threshold;
If being lower than first preset threshold, it is determined that the target detection result is more than the default test result threshold value.
3. according to the method described in claim 2, it is characterized in that, sending the first electric discharge instruction twice to the BBU Time interval is one month to three months.
4. the method according to claim 1, wherein described send test instruction to the BBU, comprising:
The second electric discharge instruction is sent to the BBU, the second electric discharge instruction is used to indicate the BBU and executes discharge operation;
The original test result returned according to the BBU determines target detection result, comprising:
The discharge signal that the BBU is returned is received, to obtain first time interval, the first time interval is to the BBU Send time and the time interval for the discharge signal for receiving the BBU of the second electric discharge instruction;
It is described to judge whether the target detection result is more than default test result threshold value, comprising:
Judge the first time interval whether more than the second preset threshold;
If being more than second preset threshold, it is determined that the target detection result is more than the default test result threshold value.
5. the method according to claim 1, wherein described send test instruction to the BBU, comprising:
First is sent to the BBU and reads instruction, and the first reading instruction is used to indicate the BBU and obtains consolidating for the BBU There is attribute;
The original test result returned according to the BBU determines target detection result, comprising:
Receive and read the build-in attribute for the BBU that the BBU is returned;
It is described to judge whether the target detection result is more than default test result threshold value, comprising:
Whether the build-in attribute for judging the BBU is more than preset attribute threshold value;
If being more than the preset attribute threshold value, it is determined that the target detection result is more than the default test result threshold value.
6. the method according to claim 1, wherein described send test instruction to the BBU, comprising:
Second is sent to the BBU and reads instruction, and described second, which reads instruction, is used to indicate the fortune that the BBU obtains the BBU Row status information;
The original test result returned according to the BBU determines target detection result, comprising:
The running state information that the BBU is returned is received, to obtain the second time interval, second time interval is transmission institute State the time of the second reading instruction and the time interval for receiving the running state information;
It is described to judge whether the target detection result is more than default test result threshold value, comprising:
Judge whether second time interval is more than third predetermined threshold value;
If being more than the third predetermined threshold value, it is determined that the target detection result is more than the default test result threshold value.
7. according to claim 1 to method described in 6 any claims, which is characterized in that the method also includes:
Detect the voltage of the BBU;
When the voltage of the BBU is lower than predetermined voltage threshold, to BBU charging until the voltage of the BBU reaches specified Voltage;
Third electric discharge instruction is sent to the BBU, the third electric discharge instruction at least carries second voltage, is used to indicate described BBU executes discharge operation until the current voltage of the BBU is the second voltage, wherein the BBU is in second electricity Service life when pressure is higher than the service life in the voltage rating.
8. a kind of memory node, which is characterized in that the memory node includes:
Transmission unit, for sending test instruction to the BBU, the test instruction is used to indicate the BBU and returns to original survey Test result;
Determination unit, the original test result for being returned according to the BBU determine target detection result;
Judging unit, for judging whether the target detection result is more than default test result threshold value;
Reporting unit is used for when judging unit determines and is more than the default test result threshold value, report and alarm.
9. a kind of memory node, which is characterized in that the memory node includes: processor and memory, is deposited in the memory Contain the instruction of battery back unit testing as claimed in claim 1 to 7;
The processor is used to execute the instruction of the battery back unit testing stored in memory, executes such as claim 1-7 The step of any described battery back unit test method.
10. a kind of computer readable storage medium, which is characterized in that it is standby to be stored with battery in the computer readable storage medium The instruction of part unit testing, when run on a computer, so that described in computer execution the claims 1-7 is any Method.
CN201810842277.7A 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment Active CN109032320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810842277.7A CN109032320B (en) 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810842277.7A CN109032320B (en) 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment

Publications (2)

Publication Number Publication Date
CN109032320A true CN109032320A (en) 2018-12-18
CN109032320B CN109032320B (en) 2022-04-22

Family

ID=64646079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810842277.7A Active CN109032320B (en) 2018-07-26 2018-07-26 Battery backup unit testing method and related equipment

Country Status (1)

Country Link
CN (1) CN109032320B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947372A (en) * 2019-03-28 2019-06-28 浙江众邦机电科技有限公司 A kind of speech storage medium guard method, system, equipment and computer media
CN110618388A (en) * 2019-09-04 2019-12-27 苏州浪潮智能科技有限公司 Battery performance detection method and device
CN111273181A (en) * 2020-02-28 2020-06-12 苏州浪潮智能科技有限公司 Battery backup unit monitoring method and device, server and readable storage medium
CN114089026A (en) * 2021-10-09 2022-02-25 广西世纪创新显示电子有限公司 Shutdown power test method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107202958A (en) * 2016-03-17 2017-09-26 伊姆西公司 For the method and apparatus for the situation for testing battery
CN107436414A (en) * 2017-08-03 2017-12-05 郑州云海信息技术有限公司 BBU validity test method and apparatus in a kind of storage system
CN107480031A (en) * 2017-08-28 2017-12-15 郑州云海信息技术有限公司 The method of testing and device of BBU temperature are monitored under a kind of MCS systems in real time
CN107748331A (en) * 2017-09-28 2018-03-02 郑州云海信息技术有限公司 A kind of method for verifying battery confidence level

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107202958A (en) * 2016-03-17 2017-09-26 伊姆西公司 For the method and apparatus for the situation for testing battery
CN107436414A (en) * 2017-08-03 2017-12-05 郑州云海信息技术有限公司 BBU validity test method and apparatus in a kind of storage system
CN107480031A (en) * 2017-08-28 2017-12-15 郑州云海信息技术有限公司 The method of testing and device of BBU temperature are monitored under a kind of MCS systems in real time
CN107748331A (en) * 2017-09-28 2018-03-02 郑州云海信息技术有限公司 A kind of method for verifying battery confidence level

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947372A (en) * 2019-03-28 2019-06-28 浙江众邦机电科技有限公司 A kind of speech storage medium guard method, system, equipment and computer media
CN110618388A (en) * 2019-09-04 2019-12-27 苏州浪潮智能科技有限公司 Battery performance detection method and device
CN110618388B (en) * 2019-09-04 2023-01-17 苏州浪潮智能科技有限公司 Battery performance detection method and device
CN111273181A (en) * 2020-02-28 2020-06-12 苏州浪潮智能科技有限公司 Battery backup unit monitoring method and device, server and readable storage medium
US11846677B2 (en) 2020-02-28 2023-12-19 Inspur Suzhou Intelligent Technology Co., Ltd. Method and apparatus for monitoring battery backup unit, server, and readable storage medium
CN114089026A (en) * 2021-10-09 2022-02-25 广西世纪创新显示电子有限公司 Shutdown power test method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109032320B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN109032320A (en) Battery back unit test method and relevant device
CN110568838B (en) Vehicle quiescent current acquisition method and system, electronic device and storage medium
CN107544839B (en) Virtual machine migration system, method and device
CN111104535B (en) Data management system and data management method
CN110287081A (en) A kind of service monitoring system and method
WO2015066024A1 (en) Multi-level data center consolidated power control
CN111881014B (en) System test method, device, storage medium and electronic equipment
CN109412902B (en) Intelligent monitoring method, storage device, terminal and system of power dispatching data network system
CN110535945A (en) Test method, device, equipment and the storage medium of storage cluster alarm function
CN111008026B (en) Cluster management method, device and system
CN115993549A (en) Correction method, device, system and medium of energy storage battery management system
CN112395156A (en) Fault warning method and device, storage medium and electronic equipment
CN105516293A (en) Cloud resource monitoring system of intelligent substation
CN109783260A (en) Intelligent IT whole process O&M method, apparatus, equipment and readable storage medium storing program for executing
CN112559329A (en) Method and system for detecting energy controller system and software
CN111596215A (en) Storage battery state monitoring method and device and storage medium
CN109862583A (en) A kind of method and device reporting exception information
CN108932182A (en) A kind of messaging bus performance test methods and system
CN115664932A (en) Energy block parallel communication method and device
CN109525036A (en) A kind of monitoring method, the device and system of the commercial power supply state of communication equipment
CN107733681B (en) A kind of scheduling scheme configuration method and device
CN108064054B (en) FTP file transmission monitoring method and system in LTE system
US8582444B2 (en) Method for detecting hardware faults by determining a ratio of released connections
CN115483763B (en) Lead-acid battery energy storage power station monitoring management system and method
CN113835961B (en) Alarm information monitoring method, device, server and storage medium

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
GR01 Patent grant
GR01 Patent grant