CN110535945A - Test method, device, equipment and the storage medium of storage cluster alarm function - Google Patents
Test method, device, equipment and the storage medium of storage cluster alarm function Download PDFInfo
- Publication number
- CN110535945A CN110535945A CN201910816443.0A CN201910816443A CN110535945A CN 110535945 A CN110535945 A CN 110535945A CN 201910816443 A CN201910816443 A CN 201910816443A CN 110535945 A CN110535945 A CN 110535945A
- Authority
- CN
- China
- Prior art keywords
- alarm
- test
- storage cluster
- monitoring data
- measured
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Abstract
The invention discloses a kind of test methods of storage cluster alarm function, the alarm configurations such as alarm threshold configuration and monitored item configuration are obtained first, and obtain the monitoring data of storage cluster to be measured, the truthful data of storage cluster i.e. to be measured, then it is based on alarm configuration, monitoring data and preset test case template, generate the reasonable alarm test use-case for being bonded storage cluster true environment to be measured, alarm test use-case is imported into storage cluster to be measured, and acquire the monitored results of storage cluster to be measured, to determine the alarm function test result of storage cluster to be measured according to monitored results, operation maintenance personnel only needs to change alarm configuration and data source, save the time of the human cost and consuming of writing test case, to reduce exploitation or the testing cost of the alarm module of storage cluster, reduce the waiting time, shorten exploitation test Period.The invention also discloses test device, equipment and the storage mediums of a kind of storage cluster alarm function, have above-mentioned beneficial effect.
Description
Technical field
The present invention relates to distributed storage Clustering fields, more particularly to a kind of test of storage cluster alarm function
Method, apparatus, equipment and storage medium.
Background technique
Exploitation is carried out with test process in the alarm module for distributed storage cluster, is designed into server node
Hardware device wear intensity, temperature, the alarm function of specific conditions such as operation exception state test, since part of appliance reaches
Loss caused by these critical conditions is larger, generally requires progress analogue data and is developed and tested.
Simulation means common at present are concentrated mainly on manually intervention manufacture false data and carry out commissioning, or using special
Fixed contextual data exploitation test case carries out maintenance test, as a result, in addition to manpower occupation problem, due also to test scene is specific
Or the problems such as test request change, cause the test case of manual compiling that can not be multiplexed, and then lead to the alarm mould of storage cluster
The exploitation of block or testing cost are higher, and need the longer waiting time.
Exploitation or the testing cost of the alarm module of storage cluster are how reduced, the waiting time is reduced, shortens exploitation test
Period is those skilled in the art's technical issues that need to address.
Summary of the invention
The object of the present invention is to provide test method, device, equipment and the storage medium of a kind of storage cluster alarm function,
Exploitation or testing cost for reducing the alarm module of storage cluster reduce the waiting time, shorten exploitation test period.
In order to solve the above technical problems, the present invention provides a kind of test method of storage cluster alarm function, comprising:
Obtain the monitoring data of alarm configuration and storage cluster to be measured;
Based on the alarm configuration, the monitoring data and preset test case template, alarm test use-case is generated;
The alarm test use-case is imported into the storage cluster to be measured, and acquires the monitoring knot of the storage cluster to be measured
Fruit, to determine the alarm function test result of the storage cluster to be measured according to the monitored results;
Wherein, the alarm configuration includes alarm threshold configuration and the configuration of monitoring data item.
Optionally, the alarm configuration is obtained, is specifically included:
When receiving the alarm configuration of input, it is subject to the alarm configuration of the input;
When not receiving the alarm configuration of the input, preset alarm configuration is called.
Optionally, the monitoring data for obtaining storage cluster to be measured, specifically includes:
Obtain the instantaneous monitoring data of the storage cluster to be measured;
By persistence after the instantaneous monitoring data formatting to presetting database;
Screening obtains the monitoring data in the presetting database.
Optionally, it is screened in the presetting database after obtaining the monitoring data, further includes:
The monitoring data is stored with preset data list structure;
Wherein, the preset data list structure includes the ID of monitoring data item, the node IP for monitoring node, the monitoring
The nodename of node, the title of the monitoring data item, the parameter value of the monitoring data item, the monitoring data item it is strong
The acquisition time of health state, the operating status of the monitoring data item and the monitoring data item.
Optionally, described to be based on the alarm configuration, the monitoring data and preset test case template, generate alarm
Test case specifically includes:
Based on the monitoring data, random number algorithm dynamic generation simulation monitoring data are utilized;
Test case quantity and test case type are determined according to the alarm configuration;
It is according to the test case quantity and the test case type, simulation monitoring data filling is described default
Test case template, obtain alarm test use-case.
Optionally, described to be based on the monitoring data, it is specific to wrap using random number algorithm dynamic generation simulation monitoring data
It includes:
Judge the storage cluster to be measured with the presence or absence of Mork service script;
If it is, being based on the monitoring data described in entering, random number algorithm dynamic generation simulation monitoring data are utilized
The step of.
Optionally, the alarm test use-case is imported into the storage cluster to be measured, and acquires the storage cluster to be measured
Monitored results specifically included with determining the alarm function test result of the storage cluster to be measured according to the monitored results:
The alarm test use-case is imported into the storage cluster to be measured;
Judge whether the storage cluster to be measured is detecting that the monitoring data item in the alarm test use-case surpasses
Alarm is triggered when the abnormal data of corresponding alarm threshold out, and is switched within the alarm threshold just in the abnormal data
Alarm is released when regular data;
If it is, determining that the corresponding alarm function test result of the alarm test use-case is to pass through;
If it is not, then determining that the corresponding alarm function test result of the alarm test use-case is not pass through.
In order to solve the above technical problems, the present invention also provides a kind of test devices of storage cluster alarm function, comprising:
Acquiring unit, for obtaining the monitoring data of alarm configuration and storage cluster to be measured;
Generation unit is generated and is accused for being based on the alarm configuration, the monitoring data and preset test case template
Alert test case;
Test cell for the alarm test use-case to be imported the storage cluster to be measured, and acquires described to be measured deposit
The monitored results of accumulation, to determine the alarm function test result of the storage cluster to be measured according to the monitored results;
Wherein, the alarm configuration includes alarm threshold configuration and the configuration of monitoring data item.
In order to solve the above technical problems, the present invention also provides a kind of test equipments of storage cluster alarm function, comprising:
Memory, for storing instruction, described instruction include the survey of storage cluster alarm function described in above-mentioned any one
The step of method for testing;
Processor, for executing described instruction.
In order to solve the above technical problems, it is stored thereon with computer program the present invention also provides a kind of storage medium, it is described
The step of the test method of storage cluster alarm function as described in above-mentioned any one is realized when computer program is executed by processor
Suddenly.
The test method of storage cluster alarm function provided by the present invention, the first configuration of acquisition alarm threshold and monitored item
The alarm configurations such as configuration, and obtain the monitoring data of storage cluster to be measured, i.e., the truthful data of storage cluster to be measured is then based on
Alarm configuration, monitoring data and preset test case template generate the reasonable announcement for being bonded storage cluster true environment to be measured
Alarm test use-case is imported storage cluster to be measured, and acquires the monitored results of storage cluster to be measured by alert test case, with basis
Monitored results determine the alarm function test result of storage cluster to be measured, for operation maintenance personnel, are being directed to certain specific fields
Scape and test request, it is only necessary to change alarm configuration and data source, save the human cost for largely writing test case
And the time expended reduces the waiting time to reduce exploitation or the testing cost of the alarm module of storage cluster, shortens
Exploitation test period.The present invention also provides test device, equipment and the storage mediums of a kind of storage cluster alarm function, have
Above-mentioned beneficial effect, details are not described herein.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art
Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair
Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of the test method of storage cluster alarm function provided in an embodiment of the present invention;
Fig. 2 is a kind of data processing timing of the test method of storage cluster alarm function provided in an embodiment of the present invention
Figure;
Fig. 3 is the flow chart of the specific embodiment of step S102 in a kind of Fig. 1 provided in an embodiment of the present invention;
Fig. 4 is the flow chart of the specific embodiment of step S103 in a kind of Fig. 1 provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the test device of storage cluster alarm function provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of the test equipment of storage cluster alarm function provided in an embodiment of the present invention.
Specific embodiment
Core of the invention is to provide test method, device, equipment and the storage medium of a kind of storage cluster alarm function,
Exploitation or testing cost for reducing the alarm module of storage cluster reduce the waiting time, shorten exploitation test period.
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of the test method of storage cluster alarm function provided in an embodiment of the present invention;
Fig. 2 is a kind of data processing timing of the test method of storage cluster alarm function provided in an embodiment of the present invention
Figure.
As shown in Figure 1, the test method of storage cluster alarm function provided in an embodiment of the present invention includes:
S101: the monitoring data of alarm configuration and storage cluster to be measured is obtained.
Wherein, alarm configuration includes alarm threshold configuration and the configuration of monitoring data item.
In the development process and test process of storage cluster alarm module, require to the alarm function of storage cluster into
Row test.When carrying out alarm function test, need to construct alarm test use-case, for mentioning to the host node of storage cluster to be measured
It for false data, observes whether storage cluster to be measured can be alerted when receiving abnormal data, and can switch in abnormal data
Alarm is released when normal data.For the automatization level for improving storage cluster alarm function test assignment, the embodiment of the present invention is mentioned
For a set of testing tool, can be installed on one for test server apparatus, which is accessed into be measured deposit
Accumulation, storage cluster to be measured are both data source and test object, realize automatic test.
Alarm test use-case is to simulate the test case that monitoring data is received when storage cluster to be measured operation, including simulation
The analogue data (including normal data and abnormal data) of the monitoring data of storage cluster to be measured and to storage cluster to be measured
The setting (including alarm threshold, alarm description etc.) of alarm configuration, and these data are the main variable items of alarm test use-case.
Therefore, during once automatically generating alarm test use-case, it is necessary first to obtain alarm configuration and storage cluster to be measured
Monitoring data.
In the prior art, for generate alarm test use-case alarm configuration and analogue data be all operation maintenance personnel according to
What the case where storage cluster to be measured and testing requirement designed.In embodiments of the present invention, it is tested to improve alarm function
Automatization level, reduces the dependence to manpower, and design script obtains alarm configuration and analogue data (with storage cluster to be measured automatically
True operation data as generate analogue data foundation).
In specific implementation, alarm configuration is obtained, is specifically included:
When receiving the alarm configuration of input, it is subject to the alarm configuration of input;
When not receiving the alarm configuration of input, preset alarm configuration is called.
As preset test case template, alarm configuration can be the local server for being pre-stored in server apparatus
, for being multiplexed to some Common Testings.When spy is tested specific scene or had to operation maintenance personnel needs
When different test request, need to change the alarm configuration in test case, it is therefore desirable to reserved REST interface, and it is directed to some poles
The special test case that can not apply test case template completely, also need to reserve for operation maintenance personnel test case introducting interface with
Import alarm test use-case.
The monitoring data for obtaining storage cluster to be measured, specifically includes:
Obtain the instantaneous monitoring data of storage cluster to be measured;
By persistence after the formatting of instantaneous monitoring data to presetting database;
Screening obtains monitoring data in the preset database.
At runtime, host node can collect the instantaneous monitoring data of each monitoring node to storage cluster to be measured, including prison
Control the data such as the parameter value of the IP of node, the title of monitoring data item, monitoring data item.The instantaneous monitoring number of storage cluster to be measured
According to, if some temperature value of monitoring node at some time point can not describe the operation conditions of storage cluster to be measured, because
This needs to carry out persistence operation to instantaneous monitoring data, thus can therefrom judge a certain monitoring node in a certain temperature
Continue how long to will cause the system failure under value, and how long should be alerted before the system failure.Instantaneous monitoring data is also wrapped
Include some other data unrelated with the operating status of storage cluster to be measured, it is therefore desirable to which therefrom screening obtains desired monitoring
Data.
Test script is debugged in order to facilitate operation maintenance personnel, after screening obtains monitoring data in the preset database, is also wrapped
It includes:
Monitoring data is stored with preset data list structure;
Wherein, preset data list structure includes the section of the ID of monitoring data item, the node IP of monitoring node, monitoring node
Point title, the title of monitoring data item, the parameter value of monitoring data item, the health status of monitoring data item, monitoring data item
The acquisition time of operating status and monitoring data item.
The instantaneous monitoring data of storage cluster to be measured is formatted, persistent storage, after screening obtains monitoring data,
Monitoring data is stored with preset data list structure, specific field definition and is described as follows shown in table:
The data list structure of 1 monitoring data of table
Presetting database can be the local data base of storage cluster to be measured, be also possible to the server apparatus for test
Local data base.A kind of embodiment be first by the local data base of instantaneous monitoring data persistence to storage cluster to be measured,
Again by the local data base of monitoring data backup persistence to server apparatus, in backup procedure, can also include:
It is correct to judge whether monitoring data parses normal and verification, if it is, backup operation is executed, if it is not, then into
Row error handle, misregistration log and corresponding error code of dishing out.
S102: being based on alarm configuration, monitoring data and preset test case template, generates alarm test use-case.
Alarm configuration determines the alarm test use-case of the parameters such as the alarm threshold of alarm test use-case and required construction
Number, monitoring data then determine the analogue data in alarm test use-case be arranged.
It is mentioned in above-mentioned steps, the true operation data based on storage cluster to be measured constructs alarm data, alerts generating
When test case, alarm data is adjusted according to the monitoring data of storage cluster to be measured dynamic.It in practical applications, further include dynamic
It adjusts the data-interface form of storage cluster to be measured and the data response source for acting on behalf of storage cluster to be measured with server apparatus is set.
Meanwhile according to operation maintenance personnel input or preset alarm configuration, behavior is arranged in the alarm of analog subscriber, with basis
Alarm configuration executes the interaction with storage cluster to be measured.
S103: alarm test use-case is imported into storage cluster to be measured, and acquires the monitored results of storage cluster to be measured, with root
The alarm function test result of storage cluster to be measured is determined according to monitored results.
Alarm configuration is deployed in storage cluster to be measured by the host node that alarm test use-case is imported to storage cluster to be measured
In, the scene that storage cluster to be measured monitors normal data and abnormal data in the process of running is simulated, checks storage collection to be measured
Group energy is no it is anticipated that executing alarm and releasing alarm, so that it is determined that the alarm function test result of storage cluster to be measured.
And then the alarm function test result of storage cluster to be measured generation test report can be stored or sent to specified
Address.
After test passes, need to only modify corresponding data source docking path can be completed the switchback of true environment and online.
In specific design, above-mentioned steps can be realized by different modularization scripts respectively, be cooperateed between each script
(process for such as obtaining instantaneous monitoring data and the process for generating alarm test use-case can carry out concurrent efforts simultaneously, according to wink
When monitoring data real-time update alarm test use-case), so as to each module independent maintenance commissioning, reduce human cost and operation
Difficulty.Meanwhile REST API service interface or CLI service interface etc. being externally provided, so that operation maintenance personnel is in exploitation or test
It is debugged.
As shown in Fig. 2, using the test method of storage cluster alarm function provided in an embodiment of the present invention, for testing
Server apparatus and storage cluster to be measured between data flow be based on server apparatus read WEB terminal/cli interface or after
Alarm configuration is delivered to alarm data analog module by external interface module through message channel and (corresponded to by the alarm configuration of platform
Virtual module corresponding with step S102) to generate simulation monitoring data, the alarm test generated by simulation monitoring data is used
Example imports the host node of storage cluster to be measured, and the monitoring system of the host node of storage cluster to be measured carries out cycle detection, leads at this time
The monitored results that alarm data analog module acquires the host node of storage cluster to be measured are crossed, detect storage to be measured according to monitored results
The monitor state of cluster determines the alarm function test result of storage cluster to be measured, and will alert function by external interface module
Energy test result passes through message channel and returns to notice client.
The test method of storage cluster alarm function provided in an embodiment of the present invention, the first configuration of acquisition alarm threshold and prison
It controls the alarm configurations such as item configuration, and obtains the monitoring data of storage cluster to be measured, i.e., the truthful data of storage cluster to be measured, then
Based on alarm configuration, monitoring data and preset test case template, generates and be bonded the reasonable of storage cluster true environment to be measured
Alarm test use-case, alarm test use-case is imported into storage cluster to be measured, and acquire the monitored results of storage cluster to be measured, with
The alarm function test result that storage cluster to be measured is determined according to monitored results is being directed to certain spies for operation maintenance personnel
Determine scene and test request, it is only necessary to change alarm configuration and data source, save the manpower for largely writing test case
The time of cost and consuming reduces the waiting time to reduce exploitation or the testing cost of the alarm module of storage cluster,
Shorten exploitation test period.
Fig. 3 is the flow chart of the specific embodiment of step S102 in a kind of Fig. 1 provided in an embodiment of the present invention.Above-mentioned
On the basis of embodiment, in the test method of storage cluster alarm function provided in an embodiment of the present invention, step S102 is specific
Include:
S301: it is based on monitoring data, utilizes random number algorithm dynamic generation simulation monitoring data.
S302: test case quantity and test case type are determined according to alarm configuration.
S303: according to test case quantity and test case type, simulation monitoring data are inserted into preset test case
Template obtains alarm test use-case.
In specific implementation, when generating simulation monitoring data based on monitoring data, it can use Mork service and deposited to be measured
All alarm type business services in accumulation, and random number algorithm is utilized, dynamically adjustment simulation is supervised in default range
Data and the corresponding data-interface form of storage cluster to be measured are controlled, the data response source of storage cluster to be measured is acted on behalf of.
Therefore step S301 can specifically include:
Judge storage cluster to be measured with the presence or absence of Mork service script;
It is based on the monitoring data if it is, entering, utilizes the step of random number algorithm dynamic generation simulation monitoring data
Suddenly.
When detecting Mork service script and process initiation, expression is currently in developer's mode, simulation monitoring data
From the local data base of the server apparatus for test, then different simulation monitoring data of random number algorithm dynamic generation
Value updates simulation monitoring data, and monitoring data is encapsulated as json formatted data according to the transformat of storage cluster to be measured
Interface.Meanwhile externally request serve port (including REST API service interface or CLI service interface etc.) is automatically turned on, externally
Offer interface service (it is different with the external serve port of former cluster, it does not interfere with each other, to play the monitoring data sound for acting on behalf of former cluster
Ying Yuan).
Fig. 4 is the flow chart of the specific embodiment of step S103 in a kind of Fig. 1 provided in an embodiment of the present invention.Above-mentioned
On the basis of embodiment, in the test method of storage cluster alarm function provided in an embodiment of the present invention, step S103 is specific
Include:
S401: alarm test use-case is imported into storage cluster to be measured.
S402: judge storage cluster to be measured whether detect monitoring data item in alarm test use-case occur beyond pair
Alarm, and the releasing when abnormal data switchs to the normal data within alarm threshold are triggered when the abnormal data for the alarm threshold answered
Alarm;If it is, entering step S403;If it is not, then entering step S404.
S403: determine that the corresponding alarm function test result of alarm test use-case is to pass through.
S404: determine that the corresponding alarm function test result of alarm test use-case is not pass through.
In the alarm function test for carrying out storage cluster to be measured using alarm test use-case, according in alarm test use-case
Alarm threshold and monitoring data item, check that can storage cluster host node to be measured in the abnormal number imported except alarm threshold
According to when generate warning information, and switch within alarm threshold in the simulation monitoring data for the monitoring data item for abnormal data occur
Alarm is released when normal data.
The corresponding each embodiment of test method of storage cluster alarm function as detailed above, on this basis, this hair
It is bright to also disclose the test device of storage cluster alarm function corresponding with the above method.
Fig. 5 is a kind of structural schematic diagram of the test device of storage cluster alarm function provided in an embodiment of the present invention.
As shown in figure 5, the test device of storage cluster alarm function provided in an embodiment of the present invention includes:
Acquiring unit 501, for obtaining the monitoring data of alarm configuration and storage cluster to be measured;
Generation unit 502 generates alarm and surveys for being based on alarm configuration, monitoring data and preset test case template
Example on probation;
Test cell 503 for alarm test use-case to be imported storage cluster to be measured, and acquires the prison of storage cluster to be measured
Control the alarm function test result as a result, to determine the storage cluster to be measured according to monitored results;
Wherein, alarm configuration includes alarm threshold configuration and the configuration of monitoring data item.
Since the embodiment of device part is corresponded to each other with the embodiment of method part, the embodiment of device part is asked
Referring to the description of the embodiment of method part, wouldn't repeat here.
Fig. 6 is a kind of structural schematic diagram of the test equipment of storage cluster alarm function provided in an embodiment of the present invention.
As shown in fig. 6, the test equipment of storage cluster alarm function provided in an embodiment of the present invention includes:
Memory 601, for storing instruction, described instruction include the alarm of storage cluster described in above-mentioned any one embodiment
The step of test method of function;
Processor 602, for executing described instruction.
The test equipment of storage cluster alarm function provided in this embodiment, since memory can be called by processor
The step of computer program of storage, the test method for the storage cluster alarm function that realization such as above-mentioned any embodiment provides,
So the test equipment of this storage cluster alarm function has the test method with above-mentioned storage cluster alarm function similarly real
Border effect.
This programme in order to better understand, the embodiment of the present invention also provide a kind of storage medium, store on the storage medium
There is computer program, the storage cluster alarm function that any embodiment as above is mentioned is realized when computer program is executed by processor
Test method the step of.
Storage medium provided in this embodiment, since the computer journey of storage medium storage can be called by processor
The step of sequence, the test method for the storage cluster alarm function that realization such as above-mentioned any embodiment provides, so this storage medium
With the same actual effect of test method with above-mentioned storage cluster alarm function.
In several embodiments provided herein, it should be understood that disclosed method, apparatus, equipment and storage
Medium may be implemented in other ways.For example, the apparatus embodiments described above are merely exemplary, for example, mould
The division of block, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules or
Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown
The mutual coupling, direct-coupling or communication connection shown or discussed can be through some interfaces, between device or module
Coupling or communication connection are connect, can be electrical property, mechanical or other forms.As illustrated by the separation member module can be or
It may not be and be physically separated, the component shown as module may or may not be physical module, it can
It is in one place, or may be distributed on multiple network modules.Part therein can be selected according to the actual needs
Or whole modules achieve the purpose of the solution of this embodiment.
It, can also be in addition, can integrate in a processing module in each functional module in each embodiment of the application
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.
If integrated module is realized and when sold or used as an independent product in the form of software function module, can
To be stored in a computer readable storage medium.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a storage medium, including some instructions are used so that a computer equipment
The whole of (can be personal computer, funcall device or the network equipment etc.) execution each embodiment method of the application
Or part steps.And storage medium above-mentioned may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory,
ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. are various can store program
The medium of code.
It is situated between above to a kind of test method of storage cluster alarm function provided by the present invention, device, equipment and storage
Matter is described in detail.Each embodiment is described in a progressive manner in specification, and each embodiment stresses
It is the difference from other embodiments, the same or similar parts in each embodiment may refer to each other.For embodiment public affairs
For the device opened, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to side
Method part explanation.It should be pointed out that for those skilled in the art, not departing from the principle of the invention
Under the premise of, it can be with several improvements and modifications are made to the present invention, these improvement and modification also fall into the claims in the present invention
In protection scope.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (10)
1. a kind of test method of storage cluster alarm function characterized by comprising
Obtain the monitoring data of alarm configuration and storage cluster to be measured;
Based on the alarm configuration, the monitoring data and preset test case template, alarm test use-case is generated;
The alarm test use-case is imported into the storage cluster to be measured, and acquires the monitored results of the storage cluster to be measured,
To determine the alarm function test result of the storage cluster to be measured according to the monitored results;
Wherein, the alarm configuration includes alarm threshold configuration and the configuration of monitoring data item.
2. test method according to claim 1, which is characterized in that obtain the alarm configuration, specifically include:
When receiving the alarm configuration of input, it is subject to the alarm configuration of the input;
When not receiving the alarm configuration of the input, preset alarm configuration is called.
3. test method according to claim 1, which is characterized in that the monitoring data for obtaining storage cluster to be measured,
It specifically includes:
Obtain the instantaneous monitoring data of the storage cluster to be measured;
By persistence after the instantaneous monitoring data formatting to presetting database;
Screening obtains the monitoring data in the presetting database.
4. test method according to claim 3, which is characterized in that screening obtains the prison in the presetting database
After control data, further includes:
The monitoring data is stored with preset data list structure;
Wherein, the preset data list structure includes the ID of monitoring data item, the node IP for monitoring node, the monitoring node
Nodename, the title of the monitoring data item, the parameter value of the monitoring data item, the monitoring data item healthy shape
The acquisition time of state, the operating status of the monitoring data item and the monitoring data item.
5. test method according to claim 1, which is characterized in that described to be based on the alarm configuration, the monitoring number
According to preset test case template, generate alarm test use-case, specifically include:
Based on the monitoring data, random number algorithm dynamic generation simulation monitoring data are utilized;
Test case quantity and test case type are determined according to the alarm configuration;
According to the test case quantity and the test case type, the simulation monitoring data are inserted into the preset survey
Example template on probation, obtains alarm test use-case.
6. test method according to claim 5, which is characterized in that it is described to be based on the monitoring data, utilize random number
Dynamic building algorithm simulation monitoring data, specifically include:
Judge the storage cluster to be measured with the presence or absence of Mork service script;
If it is, being based on the monitoring data described in entering, the step of random number algorithm dynamic generation simulation monitoring data is utilized
Suddenly.
7. test method according to claim 1, which is characterized in that the alarm test use-case is imported described to be measured deposit
Accumulation, and the monitored results of the storage cluster to be measured are acquired, to determine that the storage to be measured collects according to the monitored results
The alarm function test result of group, specifically includes:
The alarm test use-case is imported into the storage cluster to be measured;
Judge the storage cluster to be measured whether detect monitoring data item in the alarm test use-case occur beyond pair
Alarm is triggered when the abnormal data for the alarm threshold answered, and switchs to the normal number within the alarm threshold in the abnormal data
According to when release alarm;
If it is, determining that the corresponding alarm function test result of the alarm test use-case is to pass through;
If it is not, then determining that the corresponding alarm function test result of the alarm test use-case is not pass through.
8. a kind of test device of storage cluster alarm function characterized by comprising
Acquiring unit, for obtaining the monitoring data of alarm configuration and storage cluster to be measured;
Generation unit generates alarm and surveys for being based on the alarm configuration, the monitoring data and preset test case template
Example on probation;
Test cell for the alarm test use-case to be imported the storage cluster to be measured, and acquires the storage collection to be measured
The monitored results of group, to determine the alarm function test result of the storage cluster to be measured according to the monitored results;
Wherein, the alarm configuration includes alarm threshold configuration and the configuration of monitoring data item.
9. a kind of test equipment of storage cluster alarm function characterized by comprising
Memory, for storing instruction, described instruction include storage cluster alarm function described in claim 1 to 7 any one
Test method the step of;
Processor, for executing described instruction.
10. a kind of storage medium, is stored thereon with computer program, which is characterized in that the computer program is held by processor
It is realized when row as described in claim 1 to 7 any one the step of the test method of storage cluster alarm function.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910816443.0A CN110535945A (en) | 2019-08-30 | 2019-08-30 | Test method, device, equipment and the storage medium of storage cluster alarm function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910816443.0A CN110535945A (en) | 2019-08-30 | 2019-08-30 | Test method, device, equipment and the storage medium of storage cluster alarm function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110535945A true CN110535945A (en) | 2019-12-03 |
Family
ID=68665704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910816443.0A Pending CN110535945A (en) | 2019-08-30 | 2019-08-30 | Test method, device, equipment and the storage medium of storage cluster alarm function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110535945A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113590434A (en) * | 2021-06-20 | 2021-11-02 | 济南浪潮数据技术有限公司 | Cluster alarm method, system, device and medium |
CN114666301A (en) * | 2020-12-22 | 2022-06-24 | 深圳Tcl新技术有限公司 | APP testing method and system based on mock server |
CN114826871A (en) * | 2022-02-23 | 2022-07-29 | 浪潮软件集团有限公司 | Cloud platform monitoring alarm processing function test method and system |
CN114884799A (en) * | 2022-05-07 | 2022-08-09 | 北京志凌海纳科技有限公司 | Method, system, equipment and storage medium for testing cluster alarm function |
CN115333920A (en) * | 2022-08-12 | 2022-11-11 | 北京天融信网络安全技术有限公司 | Alarm testing method and device, electronic equipment and computer readable storage medium |
CN115473788A (en) * | 2022-08-29 | 2022-12-13 | 苏州浪潮智能科技有限公司 | Storage alarm testing method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030179703A1 (en) * | 2002-03-02 | 2003-09-25 | Yonatan Aharon Levy | Automatic router configuration based on traffic and service level agreements |
CN101098259A (en) * | 2006-06-30 | 2008-01-02 | 中兴通讯股份有限公司 | Automatized test method and system for implementing large data impact |
CN101212357A (en) * | 2006-12-31 | 2008-07-02 | 亿阳信通股份有限公司 | Interface testing method and device |
CN101989227A (en) * | 2009-08-04 | 2011-03-23 | 中兴通讯股份有限公司 | Test case generating method and device |
CN109586987A (en) * | 2017-09-28 | 2019-04-05 | 杭州海康威视系统技术有限公司 | The test method and device of equipment in a kind of pair of cloud storage system |
CN110018392A (en) * | 2019-04-12 | 2019-07-16 | 许继集团有限公司 | A kind of test macro of electrical power distribution automatization system main website |
-
2019
- 2019-08-30 CN CN201910816443.0A patent/CN110535945A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030179703A1 (en) * | 2002-03-02 | 2003-09-25 | Yonatan Aharon Levy | Automatic router configuration based on traffic and service level agreements |
CN101098259A (en) * | 2006-06-30 | 2008-01-02 | 中兴通讯股份有限公司 | Automatized test method and system for implementing large data impact |
CN101212357A (en) * | 2006-12-31 | 2008-07-02 | 亿阳信通股份有限公司 | Interface testing method and device |
CN101989227A (en) * | 2009-08-04 | 2011-03-23 | 中兴通讯股份有限公司 | Test case generating method and device |
CN109586987A (en) * | 2017-09-28 | 2019-04-05 | 杭州海康威视系统技术有限公司 | The test method and device of equipment in a kind of pair of cloud storage system |
CN110018392A (en) * | 2019-04-12 | 2019-07-16 | 许继集团有限公司 | A kind of test macro of electrical power distribution automatization system main website |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114666301A (en) * | 2020-12-22 | 2022-06-24 | 深圳Tcl新技术有限公司 | APP testing method and system based on mock server |
CN113590434A (en) * | 2021-06-20 | 2021-11-02 | 济南浪潮数据技术有限公司 | Cluster alarm method, system, device and medium |
CN113590434B (en) * | 2021-06-20 | 2023-12-22 | 济南浪潮数据技术有限公司 | Cluster alarm method, system, equipment and medium |
CN114826871A (en) * | 2022-02-23 | 2022-07-29 | 浪潮软件集团有限公司 | Cloud platform monitoring alarm processing function test method and system |
CN114826871B (en) * | 2022-02-23 | 2024-04-12 | 浪潮软件集团有限公司 | Cloud platform monitoring alarm processing function test method and system |
CN114884799A (en) * | 2022-05-07 | 2022-08-09 | 北京志凌海纳科技有限公司 | Method, system, equipment and storage medium for testing cluster alarm function |
CN115333920A (en) * | 2022-08-12 | 2022-11-11 | 北京天融信网络安全技术有限公司 | Alarm testing method and device, electronic equipment and computer readable storage medium |
CN115333920B (en) * | 2022-08-12 | 2024-04-23 | 北京天融信网络安全技术有限公司 | Alarm test method, alarm test device, electronic equipment and computer readable storage medium |
CN115473788A (en) * | 2022-08-29 | 2022-12-13 | 苏州浪潮智能科技有限公司 | Storage alarm testing method, device, equipment and storage medium |
CN115473788B (en) * | 2022-08-29 | 2023-08-11 | 苏州浪潮智能科技有限公司 | Storage alarm test method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110535945A (en) | Test method, device, equipment and the storage medium of storage cluster alarm function | |
CN108399114B (en) | System performance testing method and device and storage medium | |
US7315807B1 (en) | System and methods for storage area network simulation | |
CN106357457B (en) | A kind of alarm test method, apparatus and system | |
CN103336696B (en) | The Oftware updating method of test instrunment and system | |
CN109559583A (en) | Failure simulation method and its device | |
CN109783260A (en) | Intelligent IT whole process O&M method, apparatus, equipment and readable storage medium storing program for executing | |
CN110471834A (en) | Credit card analog detection method and relevant device under more transaction channels | |
CN102325036B (en) | The method for diagnosing faults of a kind of network system, system and device | |
CN105487859B (en) | A kind of big data component WEB dispositions methods based on template | |
CN109597729A (en) | A kind of monitoring method and device based on analog subscriber test | |
CN106411637A (en) | Internet-of-things device scenario testing method | |
CN106776346B (en) | Test method and device of CCMTS (China center testing System) equipment | |
CN110515854A (en) | Reproducing method, device and the electronic equipment of application exception | |
CN113010392B (en) | Big data platform testing method, device, equipment, storage medium and system | |
CN106844163A (en) | The method and device of a kind of database master-slave synchronisation condition monitoring | |
CN104144084B (en) | The monitoring method and device of the SOT state of termination | |
CN103944779B (en) | A kind of WAP service features monitoring method and system | |
CN109032320A (en) | Battery back unit test method and relevant device | |
CN109034416A (en) | A kind of method of Breakdown Maintenance, system and equipment | |
CN110474821A (en) | Node failure detection method and device | |
CN107342904B (en) | Data simulation method and device for testing substation control layer equipment of transformer substation | |
CN109800112A (en) | Test method, device, computer equipment and storage medium | |
CN109712701A (en) | Slave computer simulator and master system test method | |
CN205692155U (en) | The test device of electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191203 |