CN106598771B - A kind of failure event is dished out method and device - Google Patents
A kind of failure event is dished out method and device Download PDFInfo
- Publication number
- CN106598771B CN106598771B CN201611139865.1A CN201611139865A CN106598771B CN 106598771 B CN106598771 B CN 106598771B CN 201611139865 A CN201611139865 A CN 201611139865A CN 106598771 B CN106598771 B CN 106598771B
- Authority
- CN
- China
- Prior art keywords
- event
- measured
- failure
- failure event
- pond
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/08—Error detection or correction by redundancy in data representation, e.g. by using checking codes
- G06F11/10—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
- G06F11/1008—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
- G06F11/1064—Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices in cache or content addressable memories
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The method and device this disclosure relates to which a kind of failure event is dished out.The described method includes: choosing the event to be measured of predetermined number from event pond to be measured;Judge whether the number of failure event in the event to be measured is less than preset value;If the number of failure event is not less than preset value in the event to be measured, it then dishes out the failure event, and continue to choose next group event to be measured from the event pond to be measured, failure event detection is carried out, until the number of failure event in selected event to be measured is less than the preset value.Such scheme, not only the timeliness that failure event present in event to be measured is dished out had been can ensure that, but also can there are a large amount of failure events when a large amount of failure events, are effectively relieved while dishing out in event pond to be measured, on the occupancy of equipment process resource and influence, the robustness of failure event detection is helped to improve.
Description
Technical field
This disclosure relates to computer processing technical field, and in particular, to a kind of failure event is dished out method and device.
Background technique
In general, the performed movement of equipment can be divided into two types in software field: one is holding immediately for no time difference
Action is made, that is, acts i.e. execution movement B after A is finished;It is another then be it is non-instant execute movement, that is, movement C
After being finished, need under predetermined condition just execution act D, the predetermined condition can for reach predetermined time interval, meet
Predetermined execution condition etc..
By taking user's on-line checking in instant messaging field as an example, if user is spaced T at predetermined time intervals and issues a heartbeat
Packet then can determine that user is presence;Conversely, can determine that user is online loses if user does not issue heartbeat packet beyond T
Effect state illustrates the on-line checking event for the user for failure that is, user does not execute next movement under predetermined condition
Event.
For failure event of dishing out, the prior art mostly uses greatly redis caching mechanism to carry out failure event detection, this inspection
The robustness of survey scheme is poor, can specifically embody are as follows: and in failure event negligible amounts, cannot dish out failure event in time,
Timeliness is poor;When failure event quantity is more, failure event of continuously dishing out, and can largely occupy the processing money of equipment
Source influences the overall performance of equipment.
Summary of the invention
It dishes out method and device purpose of this disclosure is to provide a kind of failure event, to improve the Shandong of failure event detection
Stick.
To achieve the goals above, it in a first aspect, the disclosure provides a kind of failure event dishes out method, is run on computer
Application dished out failure event by the method, which comprises
The event to be measured of predetermined number is chosen from event pond to be measured;
Judge whether the number of failure event in the event to be measured is less than preset value;
If the number of failure event is not less than preset value in the event to be measured, the failure event of dishing out, and after
It is continuous that next group event to be measured is chosen from the event pond to be measured, failure event detection is carried out, until in selected event to be measured
Until the number of failure event is less than the preset value.
Optionally, if the number of failure event is less than preset value in the event to be measured, the method also includes:
Within a predetermined period of time, stop choosing next group event to be measured from the event pond to be measured.
Optionally, the predetermined amount of time T1=W* (1-M/N),
Wherein, W is preset stopping duration;N is the number of selected event to be measured;M is to fail in selected event to be measured
The number of event.
Optionally, if failure event is not present in the event to be measured, the method also includes:
Judge that whether not carrying out failure event under predetermined condition dishes out;
If not carrying out failure event under predetermined condition to dish out, the event pond to be measured is traversed, judges the thing to be measured
It whether there is failure event in part pond;
If there are failure event in the event pond to be measured, the failure event of dishing out.
Optionally, the predetermined condition is default detection duration, described to judge whether do not carry out failure thing under predetermined condition
Part is dished out, comprising:
Acquisition does not carry out the duration T that failure event is dished out2;
If the duration T2Not less than the default detection duration, then determine not lost under the predetermined condition
Effect event is dished out;
Wherein, T2=TCurrently-TIt dishes out, TCurrentlyFor current time, TIt dishes outIt dishes out the time for the last failure event.
Optionally, the predetermined condition is default detection number, described to judge whether do not carry out failure thing under predetermined condition
Part is dished out, comprising:
Acquisition does not carry out the continuous detection number that failure event is dished out;
If the continuous detection number is not less than the default detection number, determine under the predetermined condition not into
Row failure event is dished out.
Second aspect, the disclosure provide a kind of failure event and dish out device, and described device is applied to computer, described device
Include:
Module is chosen, for choosing the event to be measured of predetermined number from event pond to be measured;
First judgment module, for judging whether the number of failure event in the event to be measured is less than preset value;
Event is dished out module, when the number for the failure event in the event to be measured is not less than preset value, institute of dishing out
Failure event is stated, and continues to choose next group event to be measured from the event pond to be measured, failure event detection is carried out, until institute
The number of failure event in event to be measured is chosen less than until the preset value.
Optionally, described device further include:
Stop choosing module, when the number for the failure event in the event to be measured is less than preset value, in pre- timing
Between in section, stop choosing next group event to be measured from the event pond to be measured.
Optionally, the predetermined amount of time T1=W* (1-M/N),
Wherein, W is preset stopping duration;N is the number of selected event to be measured;M is to fail in selected event to be measured
The number of event.
Optionally, described device further include:
Second judgment module, when for failure event to be not present in the event to be measured, judge under predetermined condition whether
Failure event is not carried out to dish out;
Spider module when dishing out for not carrying out failure event in predefined conditions, traverses the event pond to be measured, judgement
It whether there is failure event in the event pond to be measured;If dished out described there are failure event in the event pond to be measured
Failure event.
Optionally, the predetermined condition is default detection duration,
Second judgment module, for obtaining the duration T for not carrying out failure event and dishing out2;If described lasting
Duration T2Not less than the default detection duration, then determine that not carrying out failure event under the predetermined condition dishes out;Wherein, T2=
TCurrently-TIt dishes out, TCurrentlyFor current time, TIt dishes outIt dishes out the time for the last failure event.
Optionally, the predetermined condition is default detection number,
Second judgment module, for obtaining the continuous detection number for not carrying out failure event and dishing out;If described
Continuous detection number is not less than the default detection number, then determines that not carrying out failure event under the predetermined condition dishes out.
The third aspect, the disclosure provide a kind of failure event and dish out device, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
The event to be measured of predetermined number is chosen from event pond to be measured;
Judge whether the number of failure event in the event to be measured is less than preset value;
If the number of failure event is not less than preset value in the event to be measured, the failure event of dishing out, and after
It is continuous that next group event to be measured is chosen from the event pond to be measured, failure event detection is carried out, until in selected event to be measured
Until the number of failure event is less than the preset value.
The failure event of the disclosure is dished out scheme, and computer disposal field is applied to, can when carrying out failure event and dishing out
The event to be measured for choosing predetermined number from event pond to be measured with elder generation, determines the failure event that whether there is in event to be measured.Such as
This processing, on the one hand, failure event can be dished out processing immediately, it is ensured that fail in event to be measured there are when failure event
The timeliness that event is dished out;On the other hand, it can also predict to obtain event to be measured by failure event present in event to be measured
The overall condition of failure event in pond can pass through circulation in event pond to be measured there may be when a large amount of failure events in this way
The mode of failure event detection, processing that failure event is dished out in batches can be effectively relieved a large amount of failure events while throw
Out, on the occupancy of equipment process resource and influence, the robustness of failure event detection is helped to improve.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool
Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is that disclosure failure event is dished out the flow diagram of embodiment of the method 1;
Fig. 2 is that disclosure failure event is dished out the flow diagram of embodiment of the method 2;
Fig. 3 is that disclosure failure event is dished out the flow diagram of embodiment of the method 3;
Fig. 4 is that disclosure failure event is dished out a kind of structural schematic diagram of device;
Fig. 5 is that disclosure failure event is dished out another structural schematic diagram of device.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched
The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
It is that disclosure failure event is dished out the flow diagram of embodiment of the method 1 referring to Fig. 1.The application run on computer
Application can be dished out failure event by this method, and this method may comprise steps of:
Step 101, the event to be measured of predetermined number is chosen from event pond to be measured.
It, then can will be every to monitor the state of 100,000 users still by taking user's on-line checking in instant messaging field as an example
The state of name user is stored in event pond to be measured as an on-line checking event.In this way, can failure event detect when,
The event to be measured of predetermined number is chosen from the event pond to be measured, in case used in subsequent processing.
It is to be appreciated that event to be measured is equivalent to the detection sample extracted from event pond to be measured, it is intended to by be measured
Failure event present in event, reacts the overall condition of failure event in event pond to be measured, therefore can be selected by random fashion
Event to be measured is taken, guarantees the generality and representativeness that sample this.
Step 102, judge whether the number of failure event in the event to be measured is less than preset value.
After obtaining event to be measured, failure event detection can be carried out for event to be measured, judge whether deposit in event to be measured
In failure event, namely judge in event to be measured with the presence or absence of the event for meeting default condition of dishing out.
As an example, preset the condition of dishing out can be time-out time, for example, carry out on-line checking when, user every
5s issues a heartbeat packet, therefore can set 5s for time-out time, that is to say, that if on-line checking event A is more than that 5s is not issued
Heartbeat packet then can determine that on-line checking event A meets default condition of dishing out, be failure event.
As an example, presetting the condition of dishing out can be combination condition, for example, can be set when carrying out cache cleaner
Cache cleaner time-out time, cache cleaner upper limit Max, if last time carries out the time of cache cleaner detection, apart from current time
Greater than cache cleaner time-out time, and current cache has been more than cache cleaner upper limit Max, then can determine that cache cleaner event accords with
Default condition of dishing out is closed, is failure event, need to be dished out and carry out cache cleaner.
Depending on the default condition of dishing out can be by practical application scene, the disclosure can be not specifically limited this.
Event to be measured is traversed, determines failure event present in it, can be determined subsequent according to the number of failure event
Processing scheme.As stated earlier, failure event present in event to be measured can be reacted to a certain extent in event pond to be measured
Therefore the overall condition of failure event if the number of failure event is not less than preset value in event to be measured, illustrates event to be measured
There may be a large amount of failure event needs to be spilled over processing in pond;Conversely, then illustrating that there are the numbers of failure event in event pond to be measured
It measures less.
It is to be appreciated that can successively judge one by one when traversing event to be measured, it can also be with multiple parallel judgements, thus really
It makes with the presence or absence of failure event in event to be measured, disclosure scheme can be not specifically limited this.
As an example, preset value can be presented as preset ratio, for example, preset ratio is 30%, then in this step,
It may determine that the ratio between the number of failure event and the number of event to be measured, if less than 30%.Alternatively, preset value can be with
Preset number is presented as, for example, preset number is 5, then in this step, it can be determined that the number of failure event, if less than 5.
Wherein, the specific manifestation form of preset value can be depending on practical application scene, and the value of preset value also can be according to practical need
It asks and adjusts, disclosure scheme can be not specifically limited this.
Step 103, if the number of failure event is not less than preset value, the failure thing of dishing out in the event to be measured
Part, and continue to choose next group event to be measured from the event pond to be measured, failure event detection is carried out, until selected to be measured
Until the number of failure event is less than the preset value in event.
In order to guarantee instantaneity that disclosure scheme failure event is dished out, there are failure events in determining event to be measured
When, i.e., failure event can be dished out and carry out subsequent processing.For example, described on-line checking event A above, which is dished out, carries out subsequent place
When reason, the corresponding User Status of event A can be set to offline, or entrance mark etc. of this login of user can be deleted
Deng.
In addition, it is necessary to explanation, if step 102 determines that the number of failure event in event to be measured is not less than preset value,
There may be when a large amount of failure event in event pond i.e. to be measured, can also in such a way that circulation executes failure event detection,
The failure event in event pond to be measured is dished out processing in batches.In this way, not only can guarantee dishing out in time for failure event, but also can have
The a large amount of failure events of effect alleviation are dished out simultaneously, on the occupancy of equipment process resource and influence, help to improve failure event detection
Robustness.
It is to be appreciated that when circulation executes failure event detection, the number of failure event in determining this event to be measured
After preset value, next group event to be measured can be chosen from event pond to be measured immediately;Alternatively, a timing can also be spaced
Between after again from event pond to be measured choose next group event to be measured, wherein above-mentioned separated in time can be presented as interval fix
Period or variable spaced period.It as an example, can be in conjunction with the number of failure event, equipment processing in event to be measured
Resource etc. determines whether need separated in time, type of gap periods etc. between failure event detection twice.For example, being
Failure event in event pond to be measured of dishing out in time, the failure event number in event to be measured is more, and failure event is examined twice
Interval time is shorter between survey;Alternatively, the processing capacity of equipment is stronger in order to coordinate the overall operation effect of equipment, two
Interval time is shorter between secondary failure event detection.
It is to be appreciated that when circulation executes failure event detection, the event to be measured chosen from event pond to be measured every time
Number can be preset fixed numbers, for example, predetermined number is 20;Or, or it is set according to practical application request
Set can variable value, for example, can adjust next time according to the number of failure event in this event to be measured and choose event to be measured
Number.Disclosure scheme can be not specifically limited the form of expression of predetermined number.
The scheme in conclusion failure event of the disclosure is dished out, event to be measured first relatively small number of to quantity fail
Event detection obtains the corresponding testing result of event to be measured (number of failure event present in event to be measured), so by
The corresponding testing result of survey event is analogized and obtains the corresponding testing result in event pond to be measured (with the presence or absence of big in event pond to be measured
Measure failure event), in this way, can predict to obtain event pond pair to be measured in the case where occupancy equipment process resource few as far as possible
The testing result answered;Meanwhile failure event can also be dished out as early as possible there are in the case where failure event in event to be measured,
Guarantee that failure event is handled in time.
In addition, also being detected by the way that failure event is conducted batch-wise in event pond to be measured there may be when a large amount of failure events
Mode, further alleviate a large amount of failure events while continuously dishing out, on the occupancy of equipment process resource and influence, help
In the robustness for improving failure event detection.
In addition, it should be noted that, in existing redis caching mechanism, it is contemplated that redis itself can not handle failure
Event, needing to dish out failure event is handled by applications, and applications cannot ensure centainly receive redis
The failure event dished out causes the prior art that can not be suitable for cluster mode.In contrast, disclosure scheme can also will fail
Event handler procedure is built in the inside for executing the application that failure event is dished out, and by horizontal extension mode, so that the disclosure
Scheme is more suitable for cluster mode.
It dishes out the flow diagram of embodiment of the method 2 for disclosure failure event referring to fig. 2.This method may include following
Step:
Step 201, the event to be measured of predetermined number is chosen from event pond to be measured.
Step 202, judge whether the number of failure event in the event to be measured is less than preset value.
Step 203, if the number of failure event is not less than preset value, the failure thing of dishing out in the event to be measured
Part, and continue to choose next group event to be measured from the event pond to be measured, failure event detection is carried out, until selected to be measured
Until the number of failure event is less than the preset value in event.
The specific implementation of step 201~203 can refer to and is described above step 101~103, and details are not described herein again.
Step 204, if the number of failure event is less than preset value in the event to be measured, within a predetermined period of time,
Stop choosing next group event to be measured from the event pond to be measured.
In the case where the global failure event for not influencing event pond to be measured as far as possible dishes out timeliness, in order to further save
Failure event can be detected thread in determining event pond to be measured there is no when a large amount of failure events by equipment process resource
Hang up, that is, in obtaining event to be measured failure event number be less than this result of preset value when, beginning predetermined amount of time
Interior, pause is executed chooses the movements such as event to be measured, detection failure event from event pond to be measured.Wherein, it fails in event to be measured
The number of event is less than preset value, may include following two situation: situation 1, and there are failure events in event to be measured, and fail
The number of event is less than preset value;Failure event is not present in event to be measured for situation 2.
It is to be appreciated that predetermined amount of time can be preset fixed duration;Or, or according to practical application need
The variable duration of setting is sought, disclosure scheme can be not specifically limited this.As an example, predetermined amount of time T1=W*
(1-M/N), wherein W is preset stopping duration;N is the number of selected event to be measured;M is to fail in selected event to be measured
The number of event.
In actual application, if the quantity of failure event is considerably less in event pond to be measured, it may result in selection
Event to be measured in be not present failure event, in response to this, in order to ensure the timeliness that global failure event is dished out, this public affairs
It opens and following failure event is also provided dishes out embodiment of the method 3, can specifically participate in flow diagram shown in Fig. 3.It may include following step
It is rapid:
Step 301, judge that whether not carrying out failure event under predetermined condition dishes out.
Step 302, it dishes out if not carrying out failure event under predetermined condition, traverses the event pond to be measured, judge institute
It states in event pond to be measured with the presence or absence of failure event.
Step 303, if there are failure event in the event pond to be measured, the failure event of dishing out.
As an example, predetermined condition can be default detection duration, accordingly, judge under predetermined condition whether not into
Row failure event is dished out, and can be embodied are as follows: acquisition does not carry out the duration T that failure event is dished out2;If the duration
T2Not less than the default detection duration, then determine that not carrying out failure event under the predetermined condition dishes out;Wherein, T2=TCurrently-
TIt dishes out, TCurrentlyFor current time, TIt dishes outIt dishes out the time for the last failure event.That is, in the default detection duration of judgement
Whether dish out failure event, if do not dished out, entire event pond to be measured can be traversed, failure event present in it of dishing out,
Ensure the timeliness that global failure event is dished out.
As an example, predetermined condition can be default detection number, accordingly, judge under predetermined condition whether not into
Row failure event is dished out, and can be embodied are as follows: acquisition does not carry out the continuous detection number that failure event is dished out;If described continuous
Detection number be not less than the default detection number, then determine that not carrying out failure event under the predetermined condition dishes out.Also
It is to say, obtaining the detection of this failure event of cut-off, (this failure event testing result is that there is no failure things in event to be measured
Part) until, it recycles in the failure event detection executed, the detection number for failure event of not dishing out continuously, if the detection time
Number can then traverse entire event pond to be measured not less than default detection number, failure event present in it of dishing out, it is ensured that whole to lose
The timeliness that effect event is dished out.
In conclusion failure event can be found in the case that the quantity of failure event is considerably less in event pond to be measured,
And it dishes out in time, further increase the robustness of failure event detection.
It dishes out the structural schematic diagram of device for disclosure failure event referring to fig. 4.The device is applied to computer, the device
May include:
Module 401 is chosen, for choosing the event to be measured of predetermined number from event pond to be measured;
First judgment module 402, for judging whether the number of failure event in the event to be measured is less than preset value;
Event is dished out module 403, when the number for the failure event in the event to be measured is not less than preset value, is dished out
The failure event, and continue to choose next group event to be measured from the event pond to be measured, failure event detection is carried out, until
Until the number of failure event is less than the preset value in selected event to be measured.
Optionally, described device further include: stop choosing module, the number for the failure event in the event to be measured
When less than preset value, within a predetermined period of time, stop choosing next group event to be measured from the event pond to be measured.
Optionally, the predetermined amount of time T1=W* (1-M/N), W are preset stopping duration;N is selected event to be measured
Number;M is the number of failure event in selected event to be measured.
Optionally, described device further include:
Second judgment module, when for failure event to be not present in the event to be measured, judge under predetermined condition whether
Failure event is not carried out to dish out;
Spider module when dishing out for not carrying out failure event in predefined conditions, traverses the event pond to be measured, judgement
It whether there is failure event in the event pond to be measured;If dished out described there are failure event in the event pond to be measured
Failure event.
Optionally, the predetermined condition is default detection duration,
Second judgment module, for obtaining the duration T for not carrying out failure event and dishing out2;If described lasting
Duration T2Not less than the default detection duration, then determine that not carrying out failure event under the predetermined condition dishes out;Wherein, T2=
TCurrently-TIt dishes out, TCurrentlyFor current time, TIt dishes outIt dishes out the time for the last failure event.
Optionally, the predetermined condition is default detection number,
Second judgment module, for obtaining the continuous detection number for not carrying out failure event and dishing out;If described
Continuous detection number is not less than the default detection number, then determines that not carrying out failure event under the predetermined condition dishes out.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
It is that disclosure failure event is dished out the structural schematic diagram of device 500 referring to Fig. 5.For example, device 500 can be provided
For a computer.Referring to Fig. 5, it further comprises one or more processors, Yi Jiyou that device 500, which includes processing component 501,
Memory resource representated by memory 502, can be by the instruction of the execution of processing component 501, such as application program for storing.
The application program stored in memory 502 may include it is one or more each correspond to one group of instruction module.
In addition, processing component 501 is configured as executing instruction, dished out method with executing above-mentioned failure event.
Device 500 can also include the power management that a power supply module 503 is configured as executive device 500, and one has
Line or radio network interface 504 are configured as device 500 being connected to network and input and output (I/O) interface 505.Dress
Setting 500 can operate based on the operating system for being stored in memory 502, such as Windows ServerTM, Mac OS XTM,
UnixTM, LinuxTM, FreeBSDTM or similar.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure
Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the disclosure to it is various can
No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally
Disclosed thought equally should be considered as disclosure disclosure of that.
Claims (13)
- A kind of method 1. failure event is dished out, which is characterized in that the application run on computer is dished out failure by the method Event, which comprisesThe event to be measured of predetermined number is chosen from event pond to be measured;Judge whether the number of failure event in the event to be measured is less than preset value;If in the event to be measured the number of failure event be not less than preset value, the failure event of dishing out, and continue from Next group event to be measured is chosen in the event pond to be measured, carries out failure event detection, until failing in selected event to be measured Until the number of event is less than the preset value.
- 2. the method according to claim 1, wherein if the number of failure event is less than in the event to be measured Preset value, the method also includes:Within a predetermined period of time, stop choosing next group event to be measured from the event pond to be measured.
- 3. according to the method described in claim 2, it is characterized in that,The predetermined amount of time T1=W* (1-M/N),W is preset stopping duration;N is the number of selected event to be measured;M is the number of failure event in selected event to be measured Mesh.
- 4. according to the method in claim 2 or 3, which is characterized in that if failure event, institute are not present in the event to be measured State method further include:Judge that whether not carrying out failure event under predetermined condition dishes out;If not carrying out failure event under predetermined condition to dish out, the event pond to be measured is traversed, judges the event pond to be measured In whether there is failure event;If there are failure event in the event pond to be measured, the failure event of dishing out.
- 5. according to the method described in claim 4, it is characterized in that, the predetermined condition is default detection duration, the judgement Failure event whether is not carried out under predetermined condition to dish out, comprising:Acquisition does not carry out the duration T that failure event is dished out2;If the duration T2Not less than the default detection duration, then determine not carry out failure thing under the predetermined condition Part is dished out;Wherein, T2=TCurrently-TIt dishes out, TCurrentlyFor current time, TIt dishes outIt dishes out the time for the last failure event.
- 6. according to the method described in claim 4, it is characterized in that, the predetermined condition is default detection number, the judgement Failure event whether is not carried out under predetermined condition to dish out, comprising:Acquisition does not carry out the continuous detection number that failure event is dished out;If the continuous detection number is not less than the default detection number, determine not lost under the predetermined condition Effect event is dished out.
- The device 7. a kind of failure event is dished out, which is characterized in that described device is applied to computer, and described device includes:Module is chosen, for choosing the event to be measured of predetermined number from event pond to be measured;First judgment module, for judging whether the number of failure event in the event to be measured is less than preset value;Event is dished out module, when the number for the failure event in the event to be measured is not less than preset value, the mistake of dishing out Effect event, and continue to choose next group event to be measured from the event pond to be measured, failure event detection is carried out, until selected Until the number of failure event is less than the preset value in event to be measured.
- 8. device according to claim 7, which is characterized in that described device further include:Stop choosing module, when the number for the failure event in the event to be measured is less than preset value, in predetermined amount of time It is interior, stop choosing next group event to be measured from the event pond to be measured.
- 9. device according to claim 8, which is characterized in thatThe predetermined amount of time T1=W* (1-M/N),W is preset stopping duration;N is the number of selected event to be measured;M is the number of failure event in selected event to be measured Mesh.
- 10. device according to claim 8 or claim 9, which is characterized in that described device further include:Second judgment module, when for failure event to be not present in the event to be measured, judge under predetermined condition whether not into Row failure event is dished out;Spider module when dishing out for not carrying out failure event in predefined conditions, traverses the event pond to be measured, described in judgement It whether there is failure event in event pond to be measured;If there are failure event in the event pond to be measured, the failure of dishing out Event.
- 11. device according to claim 10, which is characterized in that the predetermined condition is default detection duration,Second judgment module, for obtaining the duration T for not carrying out failure event and dishing out2;If the duration T2 Not less than the default detection duration, then determine that not carrying out failure event under the predetermined condition dishes out;Wherein, T2=TCurrently- TIt dishes out, TCurrentlyFor current time, TIt dishes outIt dishes out the time for the last failure event.
- 12. device according to claim 10, which is characterized in that the predetermined condition is default detection number,Second judgment module, for obtaining the continuous detection number for not carrying out failure event and dishing out;If described continuous Detection number be not less than the default detection number, then determine that not carrying out failure event under the predetermined condition dishes out.
- The device 13. a kind of failure event is dished out characterized by comprisingProcessor;Memory for storage processor executable instruction;Wherein, the processor is configured to:The event to be measured of predetermined number is chosen from event pond to be measured;Judge whether the number of failure event in the event to be measured is less than preset value;If in the event to be measured the number of failure event be not less than preset value, the failure event of dishing out, and continue from Next group event to be measured is chosen in the event pond to be measured, carries out failure event detection, until failing in selected event to be measured Until the number of event is less than the preset value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611139865.1A CN106598771B (en) | 2016-12-12 | 2016-12-12 | A kind of failure event is dished out method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611139865.1A CN106598771B (en) | 2016-12-12 | 2016-12-12 | A kind of failure event is dished out method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106598771A CN106598771A (en) | 2017-04-26 |
CN106598771B true CN106598771B (en) | 2019-11-08 |
Family
ID=58597618
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611139865.1A Active CN106598771B (en) | 2016-12-12 | 2016-12-12 | A kind of failure event is dished out method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106598771B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268080A (en) * | 2014-09-25 | 2015-01-07 | 北京金山安全软件有限公司 | Software exception handling method and device |
CN104331357A (en) * | 2014-10-10 | 2015-02-04 | 北京金山安全软件有限公司 | Application program abnormity detection method and device and mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9430117B2 (en) * | 2012-01-11 | 2016-08-30 | International Business Machines Corporation | Triggering window conditions using exception handling |
EP2866144B1 (en) * | 2013-10-28 | 2020-03-25 | Software AG | Self-correcting complex event processing system and corresponding method for error correction |
CN106021358A (en) * | 2016-05-10 | 2016-10-12 | 深圳云之家网络有限公司 | Abnormal information recording method and system |
-
2016
- 2016-12-12 CN CN201611139865.1A patent/CN106598771B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268080A (en) * | 2014-09-25 | 2015-01-07 | 北京金山安全软件有限公司 | Software exception handling method and device |
CN104331357A (en) * | 2014-10-10 | 2015-02-04 | 北京金山安全软件有限公司 | Application program abnormity detection method and device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106598771A (en) | 2017-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10321342B2 (en) | Methods and systems for performance monitoring for mobile applications | |
Dorfer et al. | Impact of mobile cross-platform development on CPU, memory and battery of mobile devices when using common mobile app features | |
CN104652089B (en) | Method for acquiring load of washing machine and washing machine | |
CN105813172B (en) | A kind of LTE slave pattern searches the method and system of net | |
US9179341B2 (en) | Method and system for simplifying WiFi setup for best performance | |
CN106097361A (en) | A kind of defective area detection method and device | |
RU2015133549A (en) | METHOD AND DEVICE FOR CHARGE MANAGEMENT | |
CN103019942A (en) | Method and system for automatically testing applications to be tested based on android system | |
CN102855184A (en) | Android automatic test cross application device and method | |
CN105530377B (en) | It is a kind of to wake up the processing method locked, apparatus and system | |
CN106897219A (en) | mobile terminal system stability test method and device | |
CN106598771B (en) | A kind of failure event is dished out method and device | |
CN106155646A (en) | A kind of external application that limits calls the method and device of service | |
CN107967207A (en) | The test method and device of user interface interaction function | |
CN106021083A (en) | Method and device for evaluating the real-time performance of real time operating system | |
CN106412016A (en) | Connection control method and device for server | |
CN105550120A (en) | Multisource-to-multi-target approaching testing method performed based on parallel symbols | |
Bulej et al. | Initial experiments with duet benchmarking: Performance testing interference in the cloud | |
CN106814935A (en) | The application icon display methods and terminal of a kind of terminal | |
CN106059691B (en) | Sensitivity decaying (desense) test method and device | |
CN111324536A (en) | Pressure testing method and device, electronic equipment and storage medium | |
CN109856699A (en) | Wearing detection method, device, wearable device and the storage medium of wearable device | |
CN115509931A (en) | System-based performance test method and device, electronic equipment and storage medium | |
CN105634982A (en) | Speed measuring server queuing method, speed measuring server and client | |
CN107562594B (en) | Method and system for testing operating system of mobile terminal |
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 |