CN110096416A - Abnormal alarm method, apparatus, computer installation and readable storage medium storing program for executing - Google Patents

Abnormal alarm method, apparatus, computer installation and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110096416A
CN110096416A CN201910190295.6A CN201910190295A CN110096416A CN 110096416 A CN110096416 A CN 110096416A CN 201910190295 A CN201910190295 A CN 201910190295A CN 110096416 A CN110096416 A CN 110096416A
Authority
CN
China
Prior art keywords
task
abnormal
log
preset threshold
alarm
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910190295.6A
Other languages
Chinese (zh)
Other versions
CN110096416B (en
Inventor
时文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201910190295.6A priority Critical patent/CN110096416B/en
Publication of CN110096416A publication Critical patent/CN110096416A/en
Application granted granted Critical
Publication of CN110096416B publication Critical patent/CN110096416B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of abnormal alarm method, comprising: when occurring the abnormal task for needing to re-execute in task scheduling system, re-executes the abnormal task;When the abnormal task is still operating abnormally, number is re-executed for abnormal task statistics;When re-executing number corresponding to the abnormal task and reaching preset threshold N, it is alarmed according to preconfigured type of alarm, wherein, the preset threshold N is adjusted according to the running log dynamic of computer installation, all previous log of each task in the running log logger task scheduling system.The present invention also provides device, computer installation and the readable storage medium storing program for executing of realizing the abnormal alarm method.The present invention solves the technical issues of alarm not prompt enough or appearance inessential alarm.

Description

Abnormal alarm method, apparatus, computer installation and readable storage medium storing program for executing
Technical field
The present invention relates to field of computer technology, and in particular to a kind of abnormal alarm method, apparatus, computer installation and Readable storage medium storing program for executing.
Background technique
In task scheduling system, for convenient for the task that notes abnormalities in time, generally can pre-configured alarm trigger condition, It alarms when discovery meets the task of alarm trigger condition.In this fashion, since alarm trigger condition is to match in advance It has been set that, flexibility is poor, easily causes not prompt enough or non-essential alarm of alarming, causes alarm accuracy poor.
Summary of the invention
In view of the foregoing, it is necessary to propose a kind of abnormal alarm method, computer installation, anomaly alarming device and meter Calculation machine readable storage medium storing program for executing, to solve to alarm not prompt enough or the technical issues of inessential alarm occur.
The first aspect of the present invention provides abnormal alarm method, which comprises
When occurring the abnormal task for needing to re-execute in task scheduling system, the abnormal task is re-executed;
When the abnormal task is still operating abnormally, number is re-executed for abnormal task statistics;
When re-executing number corresponding to the abnormal task and reaching preset threshold N, according to preconfigured alarm Mode is alarmed, wherein the preset threshold N is adjusted according to running log dynamic, and the running log logger task dispatches system In each task all previous log.
Preferably, the abnormal task include operation error task, operation duration be greater than preset duration task.
Preferably, all previous log of each task include Starting Executing Time of each task in each run with And the operation conditions in each run, operation conditions of each task in each run refer to each task in each run When be up or misoperation.
Preferably, described to include: according to the alarm of preconfigured type of alarm
A notice template is pre-established, the notice template includes notice purport and content of announcement;
Using the operation conditions of the abnormal task as notice purport, and will be held again corresponding to the abnormal task Capable number inserts the notice template as the content of announcement;And
Will fill in it is described notice purport and content of announcement notice template be sent to as mail or information it is specified Object.
Preferably, the running log dynamic according to computer installation adjusts the preset threshold N and includes:
The all previous log that each task is periodically obtained from the running log is remembered according to all previous operation of each task Record classifies to each task, each task corresponds to one of classification in preset plurality of classes;And
Corresponding default threshold when determining each task as abnormal task according to classification corresponding to each task Value N.
Preferably, the preset plurality of classes includes newly deployed task, is the operating normally of the task, other kinds of Task, wherein described to be classified according to all previous log of each task to each task, each task corresponds to default Plurality of classes in one of classification include:
When a certain task only corresponds to a log in the running log, then a certain task is divided For newly deployed task;
When a certain task corresponds to a not only log in the running log, and including at least one normal fortune When capable record, then a certain task is divided into operating normally for task;And
It when a certain task corresponds to a not only log in the running log, and does not include the note operated normally When record, then a certain task is divided into other kinds of task.
Preferably, it is corresponding when the classification according to corresponding to each task determines each task as abnormal task The preset threshold N includes:
When a certain task is divided into the newly deployed task, the preset threshold corresponding to a certain task is determined N is equal to N1;
When a certain task is divided into operating normally for the task, determine described default corresponding to a certain task Threshold value N is equal to N2;
When a certain task is divided into the other kinds of task, the default threshold corresponding to a certain task is determined Value N is equal to N3, wherein N1, N2, N3 are the positive integer greater than 0, N2 >=N1 > N3.
Second aspect of the present invention provides a kind of computer installation, and the computer installation includes memory and processor, institute Memory is stated for storing at least one instruction, realizes the exception when processor is for executing at least one described instruction Alarm method.
Third aspect present invention provides a kind of computer readable storage medium, and the computer-readable recording medium storage has At least one instruction, at least one described instruction realize the abnormal alarm method when being executed by processor.
Fourth aspect present invention provides a kind of anomaly alarming device, and described device includes:
Execution module, for re-executing described when occurring the abnormal task for needing to re-execute in task scheduling system Abnormal task;
The execution module is also used to when the abnormal task is still operating abnormally, for abnormal task statistics weight It is new to execute number;And
The execution module is also used to re-execute number corresponding to the abnormal task when reaching preset threshold N, It is alarmed according to preconfigured type of alarm, wherein the preset threshold N is adjusted according to running log dynamic, the operation day The all previous log of each task in will logger task scheduling system.
Abnormal alarm method, apparatus, computer installation and readable storage medium storing program for executing described in the embodiment of the present invention, when appoint There is the abnormal task for needing to re-execute in business scheduling system, re-executes the abnormal task;When the abnormal task still When being so operating abnormally, number is re-executed for abnormal task statistics;It re-executes corresponding to the abnormal task time It when number reaches preset threshold N, is alarmed according to preconfigured type of alarm, wherein the preset threshold N is dynamic according to running log State adjusts, all previous log of each task in the running log logger task scheduling system.The present invention improves O&M Efficiency realizes intelligent control, avoids operation maintenance personnel from doing repetition and simply work.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart for the abnormal alarm method that the embodiment of the present invention one provides.
Fig. 2 is the structure chart of anomaly alarming device provided by Embodiment 2 of the present invention.
Fig. 3 is the schematic diagram for the computer installation that the embodiment of the present invention three provides.
The present invention that the following detailed description will be further explained with reference to the above drawings.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, the embodiment of the present invention and embodiment In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Embodiment one
Fig. 1 is the flow chart for the abnormal alarm method that the embodiment of the present invention one provides.
In the present embodiment, the abnormal alarm method can be applied in computer installation, abnormal for needing to carry out The computer installation of alarm can be integrated directly provided by method of the invention on a computing means for abnormal alarm Function, or computer installation is operated in the form of Software Development Kit (Software Development Kit, SDK) On.
As shown in Figure 1, the abnormal alarm method specifically includes following steps, according to different requirements, in the flow chart The sequence of step can change, and certain steps can be omitted.
Step S1, whether there is the abnormal task for needing to re-execute in computer installation monitoring task scheduling system.If Occur the abnormal task for needing to re-execute in task scheduling system, executes step S2.
In one embodiment, the abnormal task may include, but be not limited to, and run task, the operation duration of error Greater than the task of preset duration.
In one embodiment, computer installation can create a running log, in logger task scheduling system Each task all previous log.Wherein, all previous log of each task includes each task in each run Starting Executing Time and the operation conditions in each run.
In one embodiment, operation conditions of each task in each run refers to each task in each run It is up still misoperation.
In one embodiment, misoperation can be defined as needing to re-execute.Otherwise operating normally can be defined as It does not need to re-execute.
If step S2, occurring the abnormal task for needing to re-execute in task scheduling system, computer installation is re-executed The abnormal task.
Step S3, computer installation judges whether the abnormal task is still operating abnormally.When the abnormal task still When operation exception, step S4 is executed.When the abnormal task operates normally, step S1 is returned to, task schedule system is continued to test Whether the abnormal task that needs re-execute is occurred in system.
In one embodiment, if still occurring when the abnormal task re-executes, operation malfunctions or operation duration is big In the preset duration the case where, computer installation then determines that the abnormal task is still operating abnormally.
Step S4, when the abnormal task is still operating abnormally, computer installation is that the abnormal task counts again Number is executed, adds 1 for number is re-executed corresponding to the abnormal task.Step S5 is executed after executing the step S4.
Step S5, computer installation judge to re-execute corresponding to the abnormal task number whether reach one it is default Threshold value N.When re-executing number corresponding to the abnormal task and reaching the preset threshold N, step S6 is executed.When described When re-executing number corresponding to abnormal task less than the preset threshold N, the step S2 is returned to.
In one embodiment, computer installation can dynamically adjust the preset threshold N according to the running log Size.Specific Adjusted Option joins subsequent introduction.
Step S6, computer installation is alarmed according to preconfigured type of alarm.
In one embodiment, the preconfigured type of alarm can be directed to specified object (such as corresponding duty Let people or the terminal device of responsible person such as mobile phone) send short messages or mail etc..
In one embodiment, described that step (a1)-(a3) is included according to the alarm of preconfigured type of alarm:
Step (a1) pre-establishes a notice template, which includes notice purport and content of announcement.
Step (a2) makees the operation conditions of the abnormal task (as operation error or operation duration are greater than preset duration) To notify purport, and it is described logical using the number re-executed corresponding to the abnormal task as content of announcement filling Know template.
Step (a3) will fill in the notice template of the notice purport and content of announcement as mail or information transmission To the specified object (the terminal device such as mobile phone of such as corresponding person liable or responsible person).
In one embodiment, computer installation can adjust the preset threshold N's according to the running log dynamic The embodiment of size includes following first embodiment and second embodiment.
In one embodiment, computer installation can in the running log create a period of time (such as one week or Person one month) after adjust the size of the preset threshold N again.
It is described that adjust the size first embodiment of the preset threshold N according to running log dynamic include step (b1)-(b2):
Step (b1), periodically (such as on every Mondays, Tuesday or other times) obtain each task from the running log All previous log classifies to each task according to all previous log of each task, each task corresponds to default Plurality of classes in one of classification.
As previously described, all previous log of each task in the running log logger task scheduling system.Its In, all previous log of each task includes Starting Executing Time of each task in each run and in each run When operation conditions (such as be up or misoperation).
In one embodiment, the preset plurality of classes includes, but are not limited to newly deployed task, normal operation Task, the other kinds of task crossed.
In one embodiment, described to be classified according to all previous log of each task to each task, each One of classification that task corresponds in preset plurality of classes includes:
When a certain task only corresponds to a log (i.e. only once log) in the running log, The a certain task is then divided into newly deployed task;
(it is greater than or equal to two operations when a certain task corresponds to a not only log in the running log Record), and including at least one operate normally record when, then a certain task is divided into operating normally for task;And
(it is greater than or equal to two operations when a certain task corresponds to a not only log in the running log Record), and do not include operate normally record when, then a certain task is divided into other kinds of task.
Step (b2), the classification according to corresponding to each task institute corresponding when determining each task as abnormal task State preset threshold N.
In one embodiment, when the classification according to corresponding to each task determines each task as abnormal task The corresponding preset threshold N includes (b21)-(b23):
(b21), it when a certain task is divided into the newly deployed task, determines described pre- corresponding to a certain task If threshold value N is equal to N1;
(b22), when a certain task is divided into operating normally for the task, institute corresponding to a certain task is determined Preset threshold N is stated equal to N2;
(b23), it when a certain task is divided into the other kinds of task, determines described corresponding to a certain task Preset threshold N is equal to N3, wherein N1, N2, N3 are the positive integer greater than 0, N2 >=N1 > N3.
It should be noted why by N3 be arranged minimum, allow for the other kinds of task refer to including A plurality of log but do not include any operating normally record namely the probability that can operate normally of the other kinds of task It is smaller, to trigger alarm mechanism as early as possible, maintenance personnel is reminded to handle as early as possible.
It should also be noted that, this case can be obtained periodically in task scheduling system according to above-mentioned steps (b1)-(b2) The all previous log of each task, the dynamic cataloging of each task is realized according to all previous log of each task.Due to It is different classes of to correspond to different preset thresholds, therefore, this case institute corresponding when realizing each task as abnormal task State the dynamic adjustment of preset threshold.
It is described that adjust the second embodiment of the size of the preset threshold N according to running log dynamic include step (c1)-(c5):
Specifically, it can use big data and machine learning techniques automatically generate, pass through statistical analysis task schedule system The all previous log of each task in system classifies to each task.
Step (c1), all previous log that each task is obtained from the running log.Wherein, each task is gone through Secondary log includes Starting Executing Time of each task in each run and the operation conditions (example in each run Such as it is up still misoperation);
Step (c2) carries out clustering to all previous log of each task of the task scheduling system, and right Classification is marked;
It is returned after step (c3), classification, all previous log of each task is denoted as true value;
Step (c4), according to similitude, all previous log of each task is sorted out;
Step (c5), the preset threshold corresponding when determining each task as abnormal task according to above-mentioned classification N。
For example, being re-executed in the history log in 1 year of the task scheduling system whenever certain generic task Number is more than 3 times, even if the generic task is re-executed or can be unable to operate normally.It so can analyze study and obtain such The corresponding preset threshold N is equal to 3 times when task is as abnormal task.
Embodiment listed above is only an illustrative explanation, is not limited the invention, the engineering The method of habit include but is not limited to rote learning, by teach study, analogical learning, inductive learning, the study based on explanation and By the way that event selection etc. is existing and the machine learning method of following appearance, all within protection scope of the present invention.
In conclusion abnormal alarm method described in the embodiment of the present invention, when occurring needing weight in task scheduling system The abnormal task newly executed re-executes the abnormal task;It is the exception when the abnormal task is still operating abnormally Task statistics re-executes number;When re-executing number corresponding to the abnormal task and reaching preset threshold N, according to pre- The type of alarm alarm first configured, wherein the preset threshold N is adjusted according to running log dynamic, the running log record The all previous log of each task in task scheduling system.The present invention improves O&M efficiency, realizes intelligent control, avoids transporting Dimension personnel do repetition and simply work.
Above-mentioned Fig. 1 describes abnormal alarm method of the invention in detail, below with reference to Fig. 2 and Fig. 3, to the realization exception The functional module of the software service of alarm method and the hardware device framework of the realization abnormal alarm method are introduced.
It should be appreciated that the embodiment is only purposes of discussion, do not limited by this structure in patent claim.
Embodiment two
As shown in fig.2, being the structure chart of anomaly alarming device provided by Embodiment 2 of the present invention.
In some embodiments, the anomaly alarming device 30 is run in computer installation.The computer installation is logical It crosses and has been connected to the network computer installation.The anomaly alarming device 30 may include multiple functions as composed by program code segments Module.The program code of each program segment in the anomaly alarming device 30 can store the memory in computer installation In, and as performed by least one described processor, with realization (being detailed in Fig. 2 description) abnormal alarm.
In the present embodiment, function of the anomaly alarming device 30 according to performed by it can be divided into multiple functions Module.The functional module may include: detection module 301, execution module 302.The so-called module of the present invention refers to a kind of energy The series of computation machine program segment that reaches performed by least one processor and can complete fixed function, is stored in storage In device.In the present embodiment, it will be described in detail in subsequent embodiment about the function of each module.
Detection module 301 monitors the abnormal task for whether occurring needing to re-execute in task scheduling system.
In one embodiment, the abnormal task may include, but be not limited to, and run task, the operation duration of error Greater than the task of preset duration.
In one embodiment, detection module 301 can create a running log, in logger task scheduling system Each task all previous log.Wherein, all previous log of each task includes each task in each run Starting Executing Time and the operation conditions in each run.
In one embodiment, operation conditions of each task in each run refers to each task in each run It is up still misoperation.
In one embodiment, misoperation can be defined as needing to re-execute.Otherwise operating normally can be defined as It does not need to re-execute.
If occurring the abnormal task for needing to re-execute in task scheduling system, execution module 302 re-executes described different Permanent business.
Execution module 302 judges whether the abnormal task is still operating abnormally.
When the abnormal task operates normally, whether detection module 301 continues to test in task scheduling system and needs The abnormal task to be re-executed.
In one embodiment, if still occurring when the abnormal task re-executes, operation malfunctions or operation duration is big In the preset duration the case where, execution module 302 then determines that the abnormal task is still operating abnormally.
When the abnormal task is still operating abnormally, execution module 302 re-executes secondary for abnormal task statistics Number, adds 1 for number is re-executed corresponding to the abnormal task.
Execution module 302 judges to re-execute whether number reaches a preset threshold N corresponding to the abnormal task. When re-executing number corresponding to the abnormal task less than the preset threshold N, execution module 302 re-executes described Abnormal task.
In one embodiment, execution module 302 can dynamically adjust the preset threshold N according to the running log Size.Specific Adjusted Option joins subsequent introduction.
When re-executing number corresponding to the abnormal task and reaching the preset threshold N, 302 basis of execution module Preconfigured type of alarm alarm.
In one embodiment, the preconfigured type of alarm can be directed to specified object (such as corresponding duty Let people or the terminal device of responsible person such as mobile phone) send short messages or mail etc..
In one embodiment, described that step (a1)-(a3) is included according to the alarm of preconfigured type of alarm:
Step (a1) pre-establishes a notice template, which includes notice purport and content of announcement.
Step (a2) makees the operation conditions of the abnormal task (as operation error or operation duration are greater than preset duration) To notify purport, and it is described logical using the number re-executed corresponding to the abnormal task as content of announcement filling Know template.
Step (a3) will fill in the notice template of the notice purport and content of announcement as mail or information transmission To the specified object (the terminal device such as mobile phone of such as corresponding person liable or responsible person).
In one embodiment, execution module 302 can adjust the preset threshold N's according to the running log dynamic The embodiment of size includes following first embodiment and second embodiment.
In one embodiment, execution module 302 can in the running log create a period of time (such as one week or Person one month) after adjust the size of the preset threshold N again.
It is described that adjust the size first embodiment of the preset threshold N according to running log dynamic include step (b1)-(b2):
Step (b1), periodically (such as on every Mondays, Tuesday or other times) obtain each task from the running log All previous log classifies to each task according to all previous log of each task, each task corresponds to default Plurality of classes in one of classification.
As previously described, all previous log of each task in the running log logger task scheduling system.Its In, all previous log of each task includes Starting Executing Time of each task in each run and in each run When operation conditions (such as be up or misoperation).
In one embodiment, the preset plurality of classes includes, but are not limited to newly deployed task, normal operation Task, the other kinds of task crossed.
In one embodiment, described to be classified according to all previous log of each task to each task, each One of classification that task corresponds in preset plurality of classes includes:
When a certain task only corresponds to a log (i.e. only once log) in the running log, The a certain task is then divided into newly deployed task;
(it is greater than or equal to two operations when a certain task corresponds to a not only log in the running log Record), and including at least one operate normally record when, then a certain task is divided into operating normally for task;And
(it is greater than or equal to two operations when a certain task corresponds to a not only log in the running log Record), and do not include operate normally record when, then a certain task is divided into other kinds of task.
Step (b2), the classification according to corresponding to each task institute corresponding when determining each task as abnormal task State preset threshold N.
In one embodiment, when the classification according to corresponding to each task determines each task as abnormal task The corresponding preset threshold N includes (b21)-(b23):
(b21), it when a certain task is divided into the newly deployed task, determines described pre- corresponding to a certain task If threshold value N is equal to N1;
(b22), when a certain task is divided into operating normally for the task, institute corresponding to a certain task is determined Preset threshold N is stated equal to N2;
(b23), it when a certain task is divided into the other kinds of task, determines described corresponding to a certain task Preset threshold N is equal to N3, wherein N1, N2, N3 are the positive integer greater than 0, N2 >=N1 > N3.
It should be noted why by N3 be arranged minimum, allow for the other kinds of task refer to including A plurality of log but do not include any operating normally record namely the probability that can operate normally of the other kinds of task It is smaller, to trigger alarm mechanism as early as possible, maintenance personnel is reminded to handle as early as possible.
It should also be noted that, this case can be obtained periodically in task scheduling system according to above-mentioned steps (b1)-(b2) The all previous log of each task, the dynamic cataloging of each task is realized according to all previous log of each task.Due to It is different classes of to correspond to different preset thresholds, therefore, this case institute corresponding when realizing each task as abnormal task State the dynamic adjustment of preset threshold.
It is described that adjust the second embodiment of the size of the preset threshold N according to running log dynamic include step (c1)-(c5):
Specifically, it can use big data and machine learning techniques automatically generate, pass through statistical analysis task schedule system The all previous log of each task in system classifies to each task.
Step (c1), all previous log that each task is obtained from the running log.Wherein, each task is gone through Secondary log includes Starting Executing Time of each task in each run and the operation conditions (example in each run Such as it is up still misoperation);
Step (c2) carries out clustering to all previous log of each task of the task scheduling system, and right Classification is marked;
It is returned after step (c3), classification, all previous log of each task is denoted as true value;
Step (c4), according to similitude, all previous log of each task is sorted out;
Step (c5), the preset threshold corresponding when determining each task as abnormal task according to above-mentioned classification N。
For example, being re-executed in the history log in 1 year of the task scheduling system whenever certain generic task Number is more than 3 times, even if the generic task is re-executed or can be unable to operate normally.It so can analyze study and obtain such The corresponding preset threshold N is equal to 3 times when task is as abnormal task.
Embodiment listed above is only an illustrative explanation, is not limited the invention, the engineering The method of habit include but is not limited to rote learning, by teach study, analogical learning, inductive learning, the study based on explanation and By the way that event selection etc. is existing and the machine learning method of following appearance, all within protection scope of the present invention.
In conclusion anomaly alarming device described in the embodiment of the present invention, when occurring needing weight in task scheduling system The abnormal task newly executed re-executes the abnormal task;It is the exception when the abnormal task is still operating abnormally Task statistics re-executes number;When re-executing number corresponding to the abnormal task and reaching preset threshold N, according to pre- The type of alarm alarm first configured, wherein the preset threshold N is adjusted according to running log dynamic, the running log record The all previous log of each task in task scheduling system.The present invention improves O&M efficiency, realizes intelligent control, avoids transporting Dimension personnel do repetition and simply work.
Embodiment three
As shown in fig.3, the structural schematic diagram of the computer installation provided for the embodiment of the present invention three.Of the invention preferable In embodiment, the computer installation 3 includes memory 31, at least one processor 32, at least one communication bus 33.Ability Field technique personnel, both can be with it should be appreciated that the structure of the computer installation shown in Fig. 3 does not constitute the restriction of the embodiment of the present invention Be bus topology, be also possible to star structure, the computer installation 3 can also include than illustrate it is more or fewer other Hardware perhaps software or different component layouts.
In some embodiments, the computer installation 3 includes that one kind can be according to the instruction for being previously set or storing, certainly The dynamic terminal for carrying out numerical value calculating and/or information processing, hardware include but is not limited to microprocessor, specific integrated circuit, can Program gate array, digital processing unit and embedded device etc..
It should be noted that the computer installation 3 is only for example, other electronics that are existing or being likely to occur from now on are produced Product are such as adaptable to the present invention, should also be included within protection scope of the present invention, and are incorporated herein by reference.
In some embodiments, the memory 31 is used to store program code and various data, such as is mounted on described Anomaly alarming device 30 in computer installation 3, and in the operational process of computer installation 3 realize high speed, be automatically completed The access of program or data.The memory 31 includes read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read only memory (Programmable Read-Only Memory, PROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, EPROM), one Secondary programmable read only memory (One-time Programmable Read-Only Memory, OTPROM), electronics erasing type Can make carbon copies read-only memory (Electrically-Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other disc memories, magnetic disk storage, magnetic Tape storage or any other the computer-readable medium that can be used in carrying or storing data.
In some embodiments, at least one described processor 32 can be made of integrated circuit, such as can be by single The integrated circuit of encapsulation is formed, and is also possible to be made of the integrated circuit that multiple identical functions or different function encapsulate, be wrapped Include one or more central processing unit (Central Processing unit, CPU), microprocessor, digital processing chip, The combination etc. of graphics processor and various control chips.At least one described processor 32 is the control of the computer installation 3 Core (Control Unit), using all parts of various interfaces and the entire computer installation 3 of connection, by operation or The program or module being stored in the memory 31 are executed, and calls the data being stored in the memory 31, with The various functions and processing data of computer installation 3 are executed, such as execute the function of abnormal alarm.
In some embodiments, at least one communication bus 33 is arranged to realize the memory 31 and described Connection communication between at least one processor 32 etc..
Although being not shown, the computer installation 3 can also include the power supply (such as battery) powered to all parts, excellent Choosing, power supply can be logically contiguous by electric power controller and at least one described processor 32, to pass through power management Device realizes the functions such as management charging, electric discharge and power managed.Power supply can also include one or more direct current or AC power source, recharging device, power failure detection circuit, power adapter or inverter, power supply status indicator etc. are appointed Meaning component.The computer installation 3 can also include multiple sensors, bluetooth module, Wi-Fi module etc., and details are not described herein.
It should be appreciated that the embodiment is only purposes of discussion, do not limited by this structure in patent claim.
The above-mentioned integrated unit realized in the form of software function module, can store and computer-readable deposit at one In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer Device (can be server, PC etc.) or processor (processor) execute each embodiment the method for the present invention Part.
In a further embodiment, in conjunction with Fig. 2, the computer installation 3 is can be performed at least one described processor 32 Operating device and the types of applications program (anomaly alarming device 30 as mentioned) of installation, program code etc., for example, above-mentioned Modules.
Program code is stored in the memory 31, and at least one described processor 32 can call the memory 31 The program code of middle storage is to execute relevant function.For example, modules described in Fig. 2 are stored in the memory 31 In program code, and as performed by least one described processor 32, to realize the function of the modules to reach The purpose of abnormal alarm.
In one embodiment of the invention, the memory 31 be stored with one or more instructions i.e. at least one refer to It enables, the purpose of abnormal alarm is realized at least one described instruction performed by least one described processor 32.
Specifically, at least one described processor 32 can refer to Fig. 1 to the concrete methods of realizing of at least one above-mentioned instruction The description of correlation step in corresponding embodiment, this will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the module, only Only a kind of logical function partition, there may be another division manner in actual implementation.
The module as illustrated by the separation member may or may not be physically separated, aobvious as module The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of the modules therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " is not excluded for other units or, odd number is not excluded for plural number.The multiple units stated in device claim Or device can also be implemented through software or hardware by a unit or device.The first, the second equal words are used to indicate name Claim, and does not indicate any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. a kind of abnormal alarm method, which is characterized in that the described method includes:
When occurring the abnormal task for needing to re-execute in task scheduling system, the abnormal task is re-executed;
When the abnormal task is still operating abnormally, number is re-executed for abnormal task statistics;
When re-executing number corresponding to the abnormal task and reaching preset threshold N, according to preconfigured type of alarm Alarm, wherein the preset threshold N is adjusted according to running log dynamic, in the running log logger task scheduling system The all previous log of each task.
2. abnormal alarm method as described in claim 1, which is characterized in that the abnormal task includes appointing for operation error Business, operation duration are greater than the task of preset duration.
3. abnormal alarm method as described in claim 1, which is characterized in that all previous log of each task includes each Starting Executing Time of the task in each run and the operation conditions in each run, each task is in each run Operation conditions refer to that each task is up or misoperation in each run.
4. abnormal alarm method as claimed in claim 3, which is characterized in that described to be alarmed according to preconfigured type of alarm Include:
A notice template is pre-established, the notice template includes notice purport and content of announcement;
Using the operation conditions of the abnormal task as notice purport, and will re-execute corresponding to the abnormal task Number inserts the notice template as the content of announcement;And
The notice template that will fill in the notice purport and content of announcement is sent to specified object as mail or information.
5. abnormal alarm method as claimed in claim 3, which is characterized in that the running log according to computer installation is dynamic State adjusts the preset threshold N
The all previous log that each task is periodically obtained from the running log, according to all previous log pair of each task Each task is classified, each task corresponds to one of classification in preset plurality of classes;And
Corresponding preset threshold N when determining each task as abnormal task according to classification corresponding to each task.
6. abnormal alarm method as claimed in claim 5, which is characterized in that the preset plurality of classes includes newly deployed Task, operating normally for task, other kinds of task, wherein all previous log according to each task is to every Item task is classified, and one of classification that each task corresponds in preset plurality of classes includes:
When a certain task only corresponds to a log in the running log, then a certain task is divided into newly The task of deployment;
When a certain task corresponds to a not only log in the running log, and operated normally including at least one When record, then a certain task is divided into operating normally for task;And
It when a certain task corresponds to a not only log in the running log, and does not include the record operated normally When, then a certain task is divided into other kinds of task.
7. abnormal alarm method as claimed in claim 6, which is characterized in that the classification according to corresponding to each task is true The corresponding preset threshold N includes: when each fixed task is as abnormal task
When a certain task is divided into the newly deployed task, described preset threshold N etc. corresponding to a certain task is determined In N1;
When a certain task is divided into operating normally for the task, the preset threshold corresponding to a certain task is determined N is equal to N2;
When a certain task is divided into the other kinds of task, the preset threshold N corresponding to a certain task is determined Equal to N3, wherein N1, N2, N3 are the positive integer greater than 0, N2 >=N1 > N3.
8. a kind of computer installation, which is characterized in that the computer installation includes memory and processor, and the memory is used In storing at least one instruction, realized when the processor is for executing at least one described instruction as appointed in claim 1 to 7 One abnormal alarm method of meaning.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has at least one Instruction, at least one described instruction realize the abnormal alarm side as described in any one of claim 1 to 7 when being executed by processor Method.
10. a kind of anomaly alarming device, which is characterized in that described device includes:
Execution module, for re-executing the exception when occurring the abnormal task for needing to re-execute in task scheduling system Task;
The execution module is also used to when the abnormal task is still operating abnormally, and is held again for abnormal task statistics Row number;And
The execution module is also used to re-execute number corresponding to the abnormal task when reaching preset threshold N, according to Preconfigured type of alarm alarm, wherein the preset threshold N is adjusted according to running log dynamic, the running log note Record all previous log of each task in task scheduling system.
CN201910190295.6A 2019-03-13 2019-03-13 Abnormity warning method and device, computer device and readable storage medium Active CN110096416B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910190295.6A CN110096416B (en) 2019-03-13 2019-03-13 Abnormity warning method and device, computer device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910190295.6A CN110096416B (en) 2019-03-13 2019-03-13 Abnormity warning method and device, computer device and readable storage medium

Publications (2)

Publication Number Publication Date
CN110096416A true CN110096416A (en) 2019-08-06
CN110096416B CN110096416B (en) 2022-07-08

Family

ID=67443947

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910190295.6A Active CN110096416B (en) 2019-03-13 2019-03-13 Abnormity warning method and device, computer device and readable storage medium

Country Status (1)

Country Link
CN (1) CN110096416B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699057A (en) * 2021-03-24 2021-04-23 广州弘一信息科技股份有限公司 Early warning system in software development process

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371983A (en) * 2016-08-31 2017-02-01 五八同城信息技术有限公司 Method and device for alarming based on data development
CN106452830A (en) * 2016-08-22 2017-02-22 平安科技(深圳)有限公司 Test task execution machine distribution method and device
CN106997314A (en) * 2016-01-22 2017-08-01 广州市动景计算机科技有限公司 Abnormality eliminating method, apparatus and system for distributed system
CN107957903A (en) * 2017-11-13 2018-04-24 中国平安财产保险股份有限公司 Asynchronous task scheduling method, server and storage medium
CN107967189A (en) * 2016-10-20 2018-04-27 南京途牛科技有限公司 Abnormal task retries method and device
CN108681598A (en) * 2018-05-21 2018-10-19 平安科技(深圳)有限公司 Task runs method, system, computer equipment and storage medium again automatically
US20180308002A1 (en) * 2017-04-20 2018-10-25 Bank Of America Corporation Data processing system with machine learning engine to provide system control functions
CN108768591A (en) * 2018-05-28 2018-11-06 东南大学 A method of the number of retransmissions dynamic based on the triggering of real-time packet loss information adjusts
CN109445918A (en) * 2018-10-17 2019-03-08 Oppo广东移动通信有限公司 Method for scheduling task, device, terminal and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106997314A (en) * 2016-01-22 2017-08-01 广州市动景计算机科技有限公司 Abnormality eliminating method, apparatus and system for distributed system
CN106452830A (en) * 2016-08-22 2017-02-22 平安科技(深圳)有限公司 Test task execution machine distribution method and device
CN106371983A (en) * 2016-08-31 2017-02-01 五八同城信息技术有限公司 Method and device for alarming based on data development
CN107967189A (en) * 2016-10-20 2018-04-27 南京途牛科技有限公司 Abnormal task retries method and device
US20180308002A1 (en) * 2017-04-20 2018-10-25 Bank Of America Corporation Data processing system with machine learning engine to provide system control functions
CN107957903A (en) * 2017-11-13 2018-04-24 中国平安财产保险股份有限公司 Asynchronous task scheduling method, server and storage medium
CN108681598A (en) * 2018-05-21 2018-10-19 平安科技(深圳)有限公司 Task runs method, system, computer equipment and storage medium again automatically
CN108768591A (en) * 2018-05-28 2018-11-06 东南大学 A method of the number of retransmissions dynamic based on the triggering of real-time packet loss information adjusts
CN109445918A (en) * 2018-10-17 2019-03-08 Oppo广东移动通信有限公司 Method for scheduling task, device, terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699057A (en) * 2021-03-24 2021-04-23 广州弘一信息科技股份有限公司 Early warning system in software development process

Also Published As

Publication number Publication date
CN110096416B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
WO2020259421A1 (en) Method and apparatus for monitoring service system
CN110493080B (en) Block link point monitoring method and device, electronic equipment and storage medium
US9070121B2 (en) Approach for prioritizing network alerts
US8108180B2 (en) End of life prediction of flash memory
CN109359031B (en) Multi-device application program testing method and device, server and storage medium
WO2019006654A1 (en) Financial self-service equipment maintenance dispatch generation method, hand-held terminal and electronic device
CN110908964A (en) Monitoring method, device, terminal and storage medium of distributed file system
CN107679683B (en) Software development progress early warning method and device
CN103905533A (en) Distributed type alarm monitoring method and system based on cloud storage
CN115330275B (en) Echelon utilization method and device for retired battery
CN102112940A (en) Method and apparatus for monitoring performance of power delivery control system
CN106201676A (en) Task allocation method and device
CN106371983A (en) Method and device for alarming based on data development
CN111754123A (en) Data monitoring method and device, computer equipment and storage medium
CN109032320B (en) Battery backup unit testing method and related equipment
CN106501760A (en) A kind of electrical energy meter fault management-control method and system
CN107291621A (en) Processing method, processing unit, medium and the electronic equipment of test case
CN113570277A (en) Power capacity management method and device
CN111694844A (en) Enterprise operation data analysis method and device based on configuration algorithm and electronic equipment
CN115097764A (en) Industrial remote control system and method based on 5g
CN110096416A (en) Abnormal alarm method, apparatus, computer installation and readable storage medium storing program for executing
CN117353306B (en) Optical storage charge-discharge scheduling method, optical storage charge-discharge scheduling system, electronic equipment and storage medium
CN110209469A (en) DCN architecture resources detection method, device, equipment and computer storage medium
CN110018932A (en) A kind of monitoring method and device of container disk
US20110188382A1 (en) Method for detecting hardware faults by determining a ratio of released connections

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