CN106407097A - Server fault pre-warning device and method - Google Patents

Server fault pre-warning device and method Download PDF

Info

Publication number
CN106407097A
CN106407097A CN201611080161.1A CN201611080161A CN106407097A CN 106407097 A CN106407097 A CN 106407097A CN 201611080161 A CN201611080161 A CN 201611080161A CN 106407097 A CN106407097 A CN 106407097A
Authority
CN
China
Prior art keywords
task type
early warning
predetermined period
monitored task
warning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611080161.1A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611080161.1A priority Critical patent/CN106407097A/en
Publication of CN106407097A publication Critical patent/CN106407097A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Hardware Design (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a server fault pre-warning device and method. The device comprises a determining module which is used for determining whether a current monitored task type needs to be pre-warned or not according to an operation index statistic value of the monitored task type in a preset cycle, wherein the preset cycle is before the current time; and a generation module which is used for generating pre-warning prompt information when it is determined that pre-warning needs to be carried out. Through application of the scheme of the method and the device, the technical problem that a judgment result is not objective enough and the judgment is inaccurate due to the fact that a pre-warning value needs to be determined manually by virtue of experience in the existing server fault pre-warning method is solved, and the technical effect of effectively improving the server fault pre-warning accuracy is achieved.

Description

Server failure prior-warning device and method
Technical field
The present invention relates to computer realm, more particularly, to a kind of server failure prior-warning device and method.
Background technology
Get more and more with company's project, the service of terminaloriented user also gets more and more, and this just stablizes to server Property is put forward higher requirement.At present, some are had to carry out the mode of automatically-monitored early warning to service end, mainly right: The middlewares such as tomcat, jetty, mysql, hbase, mongo and redis and JVM carry out early warning in itself.
For automatically-monitored early warning, early warning is not merely to make early warning action when mistake occurs, and should It is with normal circumstances in monitored service, reminded when index has periodically continued fluctuation.
However, how accurately to determine normal condition, it is in most cases to rely on personal experience at present, this judges to detection The dependency of personnel is stronger, and judged result accuracy degree is not also high.
For the problems referred to above, effective solution is not yet proposed at present.
Content of the invention
Present invention is primarily targeted at proposing a kind of server failure prior-warning device and method it is intended to solve existing event The inaccurate technical problem of early warning result existing for barrier early warning.
For achieving the above object, a kind of server failure prior-warning device that the present invention provides, including:
Determining module, for according to the operating index statistical value in monitored task type predetermined period, determining current institute State monitored task type the need of early warning;Described predetermined period is before current time;Generation module, for needing in determination In the case of wanting early warning, generate early warning information.
Optionally, described determining module, including:Acquiring unit, for obtaining described monitored task type predetermined period Interior operating index statistical value;Computing unit, for by the product of described operating index statistical value and preset ratio, as comparing Value;Comparing unit, for determining whether continuously a default early warning cycle all exceeds described ratio to presently described monitored task type Relatively it is worth;Determining unit, in the case of exceeding in determination, determining needs early warning.
Optionally, the described default early warning cycle is 3 early warning cycles.
Optionally, described acquiring unit is specifically for the identification information by described monitored task type, using index The mode searched, from default statistical table, finds out the operating index statistics in described monitored task type predetermined period Value.
Optionally, the operation being stored with the predetermined period of multiple monitored task types in described default statistical table refers to Mark statistical value.
Optionally, above-mentioned server failure prior-warning device also includes:Statistical table generation module, for being incited somebody to action by converging operationJu Hecaozuo Operating index statistical value in the predetermined period of the plurality of monitored task type is stored in described default statistical table.
Optionally, the operating index statistical value in described monitored task type predetermined period, is described monitored task The warning index meansigma methodss that in 24 hours in type predetermined period, all collection period collect.
Optionally, described monitored task type includes at least one of:Mysql, Tomcat, Redis, Hbase and Mongo.
Additionally, for achieving the above object, the present invention also proposes a kind of server failure method for early warning, including:According to being supervised Operating index statistical value in control task type predetermined period, determines presently described monitored task type the need of early warning; Described predetermined period is before current time;In the case that determination needs to carry out early warning, generate early warning information.
Optionally, according to the operating index statistical value in monitored task type predetermined period, determine presently described prison Control task type the need of early warning, including:Obtain the operating index statistical value in described monitored task type predetermined period; By the product of described operating index statistical value and preset ratio, as fiducial value;Determine that presently described monitored task type is A no continuously default early warning cycle all exceeds described fiducial value;In the case of determining beyond described fiducial value, determine and need in advance Alert.
Optionally, the described default early warning cycle is 3 early warning cycles.
Optionally, obtain the operating index statistical value in described monitored task type predetermined period, including:By described The identification information of monitored task type, by the way of index search, from default statistical table, finds out described monitored Operating index statistical value in task type predetermined period.
Optionally, the operation being stored with the predetermined period of multiple monitored task types in described default statistical table refers to Mark statistical value.
Optionally, by converging operationJu Hecaozuo, the operating index in the predetermined period of the plurality of monitored task type is counted Value is stored in described default statistical table.
Optionally, the operating index statistical value in described monitored task type predetermined period, is described monitored task The warning index meansigma methodss that in 24 hours in type predetermined period, all collection period collect.
Optionally, described monitored task type includes at least one of:Mysql, Tomcat, Redis, Hbase and Mongo.
Server failure method for early warning proposed by the present invention, with the operating index of task type monitored in predetermined period Statistical value, as the current standard of comparison the need of early warning, solves and needs in existing server failure method for early warning artificially The judged result by virtue of experience determining early warning value and leading to is not objective, and the inaccurate technical problem of judged result has reached and had Effect improves the technique effect of server failure early warning accuracy.
Brief description
Fig. 1 is the hardware architecture diagram realizing each optional mobile terminal of embodiment one of the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of structured flowchart of the server failure prior-warning device of the embodiment of the present invention;
Fig. 4 is another structured flowchart of the server failure prior-warning device of the embodiment of the present invention;
Fig. 5 is a kind of method flow diagram of the server failure method for early warning of the embodiment of the present invention;
Fig. 6 is another kind of method flow diagram of the server failure method for early warning of the embodiment of the present invention;
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Realize the mobile terminal of each embodiment of the present invention referring now to Description of Drawings.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for being conducive to the explanation of the present invention, itself Not specific meaning.Therefore, " module " and " part " can mixedly use.
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desk computer etc. consolidate Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for moving Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal realizing each embodiment of the present invention is illustrated.Certainly, the present invention is real first Apply in example the hardware configuration of this mobile terminal can be illustrated comprehensively, in subsequent embodiment, if also relating to mobile whole End, it is possible to use the hardware configuration explanation in first embodiment, will carry out repetition of explanation no longer in subsequent embodiment, following Explanation should be all applicable for each embodiment of the present invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups illustrating Part.More or less of assembly can alternatively be implemented.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal generating before the server of broadcast singal and/or broadcast related information or reception and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singal, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combining with TV or radio signals.Broadcast phase Pass information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is receiving.Broadcast singal can exist in a variety of manners, and for example, it can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can be broadcasted by using various types of broadcast system receipt signals.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and is adapted to provide for extensively Broadcast the various broadcast systems of signal and above-mentioned digit broadcasting system.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memorizer 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can include voice and lead to Words signal, video calling signal or the various types of data sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
Location information module 115 be for check or obtain mobile terminal positional information module.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 calculates and is derived from three or more satellites Range information and correct time information and for the Information application triangulation calculating, thus according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, the method for calculating position and temporal information is defended using three Star and the error of the position that calculates by using other satellite correction and temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input block 120 is used for receiving audio or video signal.A/V input block 120 can include camera 121 He Mike 122, camera 121 is to the static images being obtained by image capture apparatus in Video Capture pattern or image capture mode Or the view data of video is processed.Picture frame after process may be displayed on display unit 151.Process through camera 121 Picture frame afterwards can be stored in memorizer 160 (or other storage medium) or carry out sending out via wireless communication unit 110 Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Mike 122 can be in telephone calling model, note Sound (voice data) is received via mike in record pattern, speech recognition mode etc. operational mode, and can be by so Acoustic processing be voice data.Audio frequency (voice) data after process can be converted in the case of telephone calling model can It is sent to the form output of mobile communication base station via mobile communication module 112.Mike 122 can implement various types of making an uproar Sound eliminates (or suppression) algorithm to eliminate the noise that (or suppression) produces in reception with during sending audio signal or to do Disturb.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection due to touched and lead to resistance, pressure, the change of electric capacity etc. sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch screen can be formed.
Sensing unit 140 detect mobile terminal 1 00 current state, (for example, mobile terminal 1 00 open or close shape State), the position of mobile terminal 1 00, user is for the presence or absence of the contact (that is, touch input) of mobile terminal 1 00, mobile terminal 100 orientation, the acceleration or deceleration movement of mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can sense This sliding-type phone opens or cuts out.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 is coupled with external device (ED).
Interface unit 170 is connected, with mobile terminal 1 00, the interface that can pass through as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port of device for connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be storage for verifying that user uses each of mobile terminal 1 00 Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected with mobile terminal 1 00 via port or other attachment means.Interface unit 170 can be used for reception and is derived from The input (for example, data message, electric power etc.) of the external device (ED) and input receiving is transferred in mobile terminal 1 00 One or more elements or can be used for transmission data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity Power provides the path of mobile terminal 1 00 from base or can serve as allowing the various command signals from base input to pass through it It is transferred to the path of mobile terminal.May serve as identifying that mobile terminal is from the various command signals of base input or electric power The no signal being accurately fitted within base.Output unit 150 is configured to defeated with the offer of vision, audio frequency and/or tactile manner Go out signal (for example, audio signal, video signal, alarm signal, vibration signal etc.).Output unit 150 can include showing Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processing in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show (for example, text messaging, the multimedia file that communicate with call or other Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, illustrate video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and the touch pad touch screen with formation superposed on one another as a layer, display unit 151 can serve as input equipment and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least A kind of.Some in these display may be constructed such that transparence to allow user from outside viewing, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific The embodiment wanted, mobile terminal 1 00 can include two or more display units (or other display device), for example, moves Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detection and touches Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, When under the isotypes such as speech recognition mode, broadcast reception mode, that wireless communication unit 110 is received or in memorizer 160 The voice data transducing audio signal of middle storage and be output as sound.And, dio Output Modules 152 can provide and move The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation of terminal 100 execution. Dio Output Modules 152 can include speaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event is permissible Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video output, alarm unit 153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating Output is provided, enters when communicating (incomingcommunication) when receiving calling, message or some other, alarm list Unit 153 can provide tactile output (that is, vibrating) to notify to user.By providing such tactile output, even if When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memorizer 160 can store software program of the process being executed by controller 180 and control operation etc., or can Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memorizer 160 can be to store the vibration of various modes with regard to exporting and audio signal when touching and being applied to touch screen Data.
Memorizer 160 can include the storage medium of at least one type, and described storage medium includes flash memory, hard disk, many Media card, card-type memorizer (for example, SD or DX memorizer etc.), random access storage device (RAM), static random-access storage Device (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can execute memorizer with by network connection The network storage device cooperation of 160 store function.
Controller 180 generally controls the overall operation of mobile terminal.For example, controller 180 execution and voice call, data The related control of communication, video calling etc. and process.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or it is so structured that and controls Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executing on the touchscreen or picture Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Suitable electric power needed for part and assembly.
Various embodiment described herein can be with using such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implementing.Hardware is implemented, embodiment described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Program gate array (FPGA), processor, controller, microcontroller, microprocessor, be designed to execute function described herein At least one in electronic unit implementing, in some cases, can be implemented in controller 180 by such embodiment. Software is implemented, the embodiment of such as process or function can with allow to execute the single of at least one function or operation Software module is implementing.Software code can be come by the software application (or program) write with any suitable programming language Implement, software code can be stored in memorizer 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.Below, for the sake of brevity, will describe such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
As shown in Figure 1 mobile terminal 1 00 may be constructed such that using via frame or packet transmission data all if any Line and wireless communication system and satellite-based communication system are operating.
The communication system being wherein operable to according to the mobile terminal of the present invention referring now to Fig. 2 description.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 formation interfaces.MSC280 is also structured to and can form interface via the BSC275 that back haul link is couple to base station 270. If back haul link can construct according to any one in the interface that Ganji knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system as shown in Figure 2 can include multiple BSC275.
Each BS270 can service one or more subregions (or region), by the sky of multidirectional antenna or sensing specific direction Each subregion that line covers is radially away from BS270.Or, each subregion can by for diversity reception two or more Antenna covers.Each BS270 may be constructed such that support multiple frequency distribution, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal of operation in system by broadcsting transmitter (BT) 295 100.Broadcasting reception module 111 is arranged at mobile terminal 1 00 to receive the broadcast being sent by BT295 as shown in Figure 1 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, depict multiple satellites 300, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 is generally configured to coordinate with satellite 300 to obtain the positioning letter wanted as shown in Figure 1 Breath.Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other of the position of mobile terminal can be followed the tracks of Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of certain base station 270 reception is anti- Processed in specific BS270 to link signal.The data obtaining is forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of including the coordination of soft switching process between BS270.BSC275 is also by the number receiving According to being routed to MSC280, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, the server event in first embodiment of the invention is proposed Barrier prior-warning device, as shown in figure 3, the server failure prior-warning device of first embodiment of the invention can include:
Determining module 301, for according to the operating index statistical value in monitored task type predetermined period, determining current Described monitored task type is the need of early warning;
In the present embodiment, represent the operating index statistical value of monitored task type the previous day in predetermined period.
In the present embodiment, in order to obtain accurate normal condition index, i.e. determine one more accurately with rationally Early warning reference value it may be considered that to can in target predetermined period to be measured repeatedly monitoring operating index statistical value, as Instantly judge whether the basis for estimation of early warning.
For example, it is possible to in predetermined period 00:00:00 to 23:59:The monitoring result to this target to be measured between 59 is entered One statistics of row, as the normal index run, to be then based on this index as the basis for estimation on the same day.Certainly, above-mentioned Cited time range is only a kind of schematic representation, when actual realization, can also adopt other time period models Enclose, such as the statistical result of any 6 hours in predetermined period, statistical result of any eight hours etc..As long as can be from The monitoring result generally reacting the situation that target monolithic stability to be measured runs can.
In view of the result determined by statistical value being stable operation in predetermined period, if by it directly as judgement Foundation:It is not equal to this value and be accomplished by reporting to the police it is clear that being less rational, how many in running for target to be measured The fluctuation range that presence can allow.
For this reason, a coefficient range can be increased, such as:Less than 0.9 times of statistical value in predetermined period, or higher than pre- If 1.1 times of statistical value in the cycle, being so determined as needing early warning.That is, by way of Set scale coefficient, define one Early warning range.It should be noted, however, that above-mentioned cited for example:0.9th, 1,1 proportionality coefficient is merely to preferably say The bright present invention, when actual realization, according to practical situation and can also need to select other proportionality coefficients, in this regard, this Application is not construed as limiting.
Further it is contemplated that being reported to the police if one exceeds early warning range using the cycle (such as 5s, 10s), past Toward being also irrational, destination object to be measured is operationally waited and is had interim saltus step etc. unavoidably.In order to reduce this impact, keep away Hand-free continues the generation of the situation of warning.Can detect whether the cycle of continuing with (alternatively referred to as early warning cycle) broadly falls into early warning model Enclose, if it is, initiating early warning again.
For example:Can set continuous three cycles exceed belong to early warning range, then determine that and need early warning, if being only A cycle prediction occurring, next cycle and upper a cycle are all normal, then can be using this situation as normal Emergency case, does not carry out early warning.
It should be noted, however, that three in above-mentioned three cited early warning cycles is only that one kind is schematically retouched State, when actual realization, other number of cycles can be selected, for example:2,4 etc. can.The application is to this It is not construed as limiting.
In embodiments of the present invention, above-mentioned determining module 301 can be as shown in figure 4, include:Acquiring unit 401, is used for obtaining Take the operating index statistical value in described monitored task type predetermined period;Computing unit 402, for by described operating index Statistical value and the product of preset ratio, as fiducial value;Comparing unit 403, for determining presently described monitored task type Continuously whether a default early warning cycle all exceeds described fiducial value;Determining unit 404, in the case of exceeding in determination, really Surely need early warning.
Concentration in order to realize the ruuning situation to the destination object to be measured in predetermined period counts, in order to when advance Row compares when judge with early warning, can be with fairly simple convenience.Ruuning situation letter can be carried out by way of setting up form Breath statistics, for example, it is possible to all of target (being referred to as monitored task type) to be measured, all distribute a TaskID, And a form can be set up, and generate in the table and store, the operation in each monitored task type predetermined period Indicator-specific statisticss value.
Because having multiple server in each project, each server corresponds to a task, therefore, it can set up such as Under form:
TaskID ProjectID ServerID Value
*** *** *** ***
*** **** **** ***
In this form, record has proxima luce (prox. luc) statistical result, and this statistical result (row corresponding to Value) can be put down day Average.
When making a look up or travel through, can make a look up using TaskID as index and travel through.For example, obtain Unit, can be searched by the identification information of monitored task type by the way of index search, from default statistical table Go out the operating index statistical value in monitored task type predetermined period.
The operating index statistical value being stored with this form in the predetermined period of multiple monitored task types.
In the present embodiment, can also include:Statistical table generation module, for being supervised the plurality of by converging operationJu Hecaozuo Operating index statistical value in the predetermined period of control task type is stored in described default statistical table.
Specifically, statistical table generation module can carry out converging operationJu Hecaozuo by mongo MapReduce to generate statistics Table.The content of polymerization can be the operating index statistical value in monitored task type predetermined period, this statistical value can be by The warning index meansigma methodss that in monitor task type predetermined period, in 24 hours, all collection period collect.
Above-mentioned monitored task type can include but is not limited at least one of:Mysql、Tomcat、Redis、 Hbase and Mongo.It is important to note, however, that concentration recited herein is monitored, task type is only a kind of schematic table State, other parameters for characterizing server stability can also be included.
Generation module 302, in the case of needing early warning in determination, generates early warning information.
In the case that determination needs to carry out early warning, the information for reminding monitoring personnel can be generated, even if so that right The performance of server is safeguarded.In order to realize reminding, can be sounded the alarm using alarm, or connect a computer Display, shows that the mode of specific alarm parameters carries out early warning, which performance indications are monitoring personnel can be clearly to occur Problem, targetedly to safeguard to server.
Above-mentioned cited type of alarm is all based on situation near server for the monitoring personnel, actual realize when Wait it may appear that a lot of monitoring personnel not situation near server.In order in time early warning situation be notified monitoring personnel, can Carry out early warning in the way of by mail or note.
For example, it is possible to warning message is generated message body, then look up the contact method of monitoring personnel, such as:Phone Number, email address etc., then, by the telephone number that finds, email address etc., the message body of generation are sent to prison At survey personnel.So that monitoring personnel can know the performance fault that server occurs the very first time, to be serviced The performance maintenance of device.
The scheme being provided by upper example, can find the problem that server is occurred in time, being capable of effecting reaction monitoring The unusual fluctuations of object, accomplish, when monitored object occurs exceeding certain threshold value with mean deviation, to make rapidly early warning Operation, transmission information or mail waits until specific director so that monitored object is in the build environment of a safety and stability.
As shown in figure 5, the embodiment of the present invention proposes a kind of server failure method for early warning, may include steps of (step 501 to step 502):
Step 501:According to the operating index statistical value in monitored task type predetermined period, determine presently described prison Control task type is the need of early warning;
In the present embodiment, in order to obtain accurate normal condition index, i.e. determine one more accurately with rationally Early warning reference value it may be considered that to can in target predetermined period to be measured repeatedly monitoring operating index statistical value, as Instantly judge whether the basis for estimation of early warning.
For example, it is possible to in predetermined period 00:00:00 to 23:59:The monitoring result to this target to be measured between 59 is entered One statistics of row, as the normal index run, to be then based on this index as the basis for estimation on the same day.Certainly, above-mentioned Cited time range is only a kind of schematic representation, when actual realization, can also adopt other time period models Enclose, such as the statistical result of any 6 hours in predetermined period, statistical result of any eight hours etc..As long as can be from The monitoring result generally reacting the situation that target monolithic stability to be measured runs can.
In view of the result determined by statistical value being stable operation in predetermined period, if by it directly as judgement Foundation:It is not equal to this value and be accomplished by reporting to the police it is clear that being less rational, how many in running for target to be measured The fluctuation range that presence can allow.
For this reason, a coefficient range can be increased, such as:Less than 0.9 times of statistical value in predetermined period, or higher than pre- If 1.1 times of statistical value in the cycle, being so determined as needing early warning.That is, by way of Set scale coefficient, define one Early warning range.It should be noted, however, that above-mentioned cited for example:0.9th, 1,1 proportionality coefficient is merely to preferably say The bright present invention, when actual realization, according to practical situation and can also need to select other proportionality coefficients, in this regard, this Application is not construed as limiting.
In one embodiment, according to the operating index statistical value in monitored task type predetermined period, determine and work as Front described monitored task type, the need of early warning, can include:Obtain in described monitored task type predetermined period Operating index statistical value;By the product of described operating index statistical value and preset ratio, as fiducial value;Determine presently described quilt Continuously whether a default early warning cycle all exceeds described fiducial value to monitor task type;Determining the situation beyond described fiducial value Under, determining needs early warning.
In one embodiment, a default early warning cycle can be 3 early warning cycles.
In one embodiment, obtain the operating index statistical value in described monitored task type predetermined period, can To include:By the identification information of described monitored task type, by the way of index search, from default statistical table, Find out the operating index statistical value in described monitored task type predetermined period.
In one embodiment, can be stored with described default statistical table the default of multiple monitored task types Operating index statistical value in cycle.
In one embodiment, can be by converging operationJu Hecaozuo by the predetermined period of the plurality of monitored task type Operating index statistical value be stored in described default statistical table.
In one embodiment, the operating index statistical value in monitored task type predetermined period can be monitored The warning index meansigma methodss that in 24 hours in task type predetermined period, all collection period collect.
In one embodiment, monitored task type can include but is not limited at least one of:Mysql、 Tomcat, Redis, Hbase and Mongo.
Step 502:In the case that determination needs to carry out early warning, generate early warning information.
In the case that determination needs to carry out early warning, the information for reminding monitoring personnel can be generated, even if so that right The performance of server is safeguarded.In order to realize reminding, can be sounded the alarm using alarm, or connect a computer Display, shows that the mode of specific alarm parameters carries out early warning, which performance indications are monitoring personnel can be clearly to occur Problem, targetedly to safeguard to server.
Above-mentioned cited type of alarm is all based on situation near server for the monitoring personnel, actual realize when Wait it may appear that a lot of monitoring personnel not situation near server.In order in time early warning situation be notified monitoring personnel, can Carry out early warning in the way of by mail or note.
For example, it is possible to warning message is generated message body, then look up the contact method of monitoring personnel, such as:Phone Number, email address etc., then, by the telephone number that finds, email address etc., the message body of generation are sent to prison At survey personnel.So that monitoring personnel can know the performance fault that server occurs the very first time, to be serviced The performance maintenance of device.
With reference to a specific embodiment, above-mentioned server failure prior-warning device and method are illustrated, but be worth note Meaning, this specific embodiment, merely to the application is better described, does not constitute the improper restriction to the application.
This server failure method for early warning can include:
S1:Mongo MapReduce (referred to as MR) operation is carried out to the warning index of the task of all monitoring, obtains and work as The 00 of the previous day of front time:00:00 to 23:59:Monitor control index data daily warning index meansigma methodss in 59 time range.
S2:Result is stored in redis or kafka according to task ID.
S3:Warning module finds that within three continuous early warning cycles index exceedes previous daily mean * coefficient (according to past Day monitoring experience is given), then send early warning.
Specifically, can be as shown in fig. 6, comprising the following steps:
S1:Configuring timing tasks, 00:00:Begin a task with when 10 and (MR daily mean is carried out to the previous day, as current It early warning reference value).
It is known that condition includes:
Task:Monitor task table comprises taskId, projectId and serverId.
A:The Hash table of per day result is deposited, key is taskId, value is per day result in redis
b:Risk-warning coefficient, is multiplied by this coefficient under normal circumstances and just can trigger indicating risk.
S2:Traversal monitor task table Task, judges its COS (Mysql/Tomcat/Redis/ to each task Hbase/Mongo ...), take different MapReduce to process class for dissimilar.
S3:Navigate to the concrete table in mongo according to the projectId in each Task, further according to serverId and front The time interval (00 of one day:00:00-23:59:59), obtain processing data, carry out MapReduce operation, by result V with TaskId (unique) is deposited in the A in redis for Key.
S4:Alter (early warning) module, first will be corresponding for the A in monitor control index and redis when carrying out early warning The value of key is compared, if being both greater than this V*b for continuous three times, triggering indicating risk, sending information.
S5:Send mail and note, to realize early warning.
The scheme being provided by upper example, can find the problem that server is occurred in time, being capable of effecting reaction monitoring The unusual fluctuations of object, accomplish, when monitored object occurs exceeding certain threshold value with mean deviation, to make rapidly early warning Operation, transmission information or mail waits until specific director so that monitored object is in the build environment of a safety and stability.
It should be noted that herein, term " inclusion ", "comprising" or its any other variant are intended to non-row The comprising of his property, so that including a series of process of key elements, method, article or device not only include those key elements, and And also include other key elements of being not expressly set out, or also include intrinsic for this process, method, article or device institute Key element.In the absence of more restrictions, the key element being limited by sentence "including a ..." is it is not excluded that including being somebody's turn to do Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by the mode of software plus necessary general hardware platform naturally it is also possible to pass through hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme is substantially done to prior art in other words Go out partly can embodying in the form of software product of contribution, this computer software product is stored in a storage medium In (as ROM/RAM, magnetic disc, CD), including some instructions with so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) method described in execution each embodiment of the present invention.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of server failure prior-warning device is it is characterised in that include:
Determining module, for according to the operating index statistical value in monitored task type predetermined period, determining presently described quilt Monitor task type is the need of early warning;Described predetermined period is before current time;
Generation module, in the case of needing early warning in determination, generates early warning information.
2. device as claimed in claim 1 is it is characterised in that described determining module, including:
Acquiring unit, for obtaining the operating index statistical value in described monitored task type predetermined period;
Computing unit, for by the product of described operating index statistical value and preset ratio, as fiducial value;
Comparing unit, for determining whether continuously a default early warning cycle all exceeds described ratio to presently described monitored task type Relatively it is worth;
Determining unit, in the case of exceeding in determination, determining needs early warning.
3. device as claimed in claim 1 is it is characterised in that described acquiring unit is specifically for by described monitored task The identification information of type, by the way of index search, from default statistical table, finds out described monitored task type pre- If the operating index statistical value in the cycle.
4. device as claimed in claim 3 is it is characterised in that also include:
Statistical table generation module, for by converging operationJu Hecaozuo by the operation in the predetermined period of the plurality of monitored task type Indicator-specific statisticss value is stored in described default statistical table.
5. device as claimed in claim 1 is it is characterised in that operating index in described monitored task type predetermined period Statistical value, is that the warning index that in described monitored task type predetermined period, in 24 hours, all collection period collect is put down Average.
6. a kind of server failure method for early warning is it is characterised in that include:
According to the operating index statistical value in monitored task type predetermined period, determine that presently described monitored task type is No need early warning;Described predetermined period is before current time;
In the case that determination needs to carry out early warning, generate early warning information.
7. method as claimed in claim 6 is it is characterised in that according to the operating index in monitored task type predetermined period Statistical value, determines presently described monitored task type the need of early warning, including:
Obtain the operating index statistical value in described monitored task type predetermined period;
By the product of described operating index statistical value and preset ratio, as fiducial value;
Determine whether continuously a default early warning cycle all exceeds described fiducial value to presently described monitored task type;
In the case of determining beyond described fiducial value, determining needs early warning.
8. method as claimed in claim 6 is it is characterised in that obtain the operation in described monitored task type predetermined period Indicator-specific statisticss value, including:
By the identification information of described monitored task type, by the way of index search, from default statistical table, search Go out the operating index statistical value in described monitored task type predetermined period.
9. method as claimed in claim 6 is it is characterised in that operating index in described monitored task type predetermined period Statistical value, is that the warning index that in described monitored task type predetermined period, in 24 hours, all collection period collect is put down Average.
10. the method as any one of claim 6 to 9 it is characterised in that described monitored task type include following At least one:Mysql, Tomcat, Redis, Hbase and Mongo.
CN201611080161.1A 2016-11-30 2016-11-30 Server fault pre-warning device and method Pending CN106407097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611080161.1A CN106407097A (en) 2016-11-30 2016-11-30 Server fault pre-warning device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611080161.1A CN106407097A (en) 2016-11-30 2016-11-30 Server fault pre-warning device and method

Publications (1)

Publication Number Publication Date
CN106407097A true CN106407097A (en) 2017-02-15

Family

ID=58084964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611080161.1A Pending CN106407097A (en) 2016-11-30 2016-11-30 Server fault pre-warning device and method

Country Status (1)

Country Link
CN (1) CN106407097A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634803A (en) * 2018-11-16 2019-04-16 网宿科技股份有限公司 A kind of method and apparatus of reporting equipment exception
CN110971485A (en) * 2019-11-19 2020-04-07 网联清算有限公司 Service index monitoring system and method
CN112416673A (en) * 2020-11-13 2021-02-26 宁波拓普集团股份有限公司 Hardware monitoring device and method for front-back trigger type periodic operation task

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000048277A (en) * 1998-03-16 2000-02-18 Kdd Corp Fault place estimating method
CN101453743A (en) * 2008-10-31 2009-06-10 中国移动通信集团北京有限公司 Real-time monitoring system, apparatus and method
CN102694696A (en) * 2012-05-14 2012-09-26 中国科学院计算机网络信息中心 Method and device for anomaly detection of DNS (domain name system) server
CN104778111A (en) * 2014-01-14 2015-07-15 深圳市腾讯计算机系统有限公司 Alarm method and alarm device
US20160171805A1 (en) * 2013-09-12 2016-06-16 Jae Sung JANG Security system and method for controlling entrance/exit using blocking aisle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000048277A (en) * 1998-03-16 2000-02-18 Kdd Corp Fault place estimating method
CN101453743A (en) * 2008-10-31 2009-06-10 中国移动通信集团北京有限公司 Real-time monitoring system, apparatus and method
CN102694696A (en) * 2012-05-14 2012-09-26 中国科学院计算机网络信息中心 Method and device for anomaly detection of DNS (domain name system) server
US20160171805A1 (en) * 2013-09-12 2016-06-16 Jae Sung JANG Security system and method for controlling entrance/exit using blocking aisle
CN104778111A (en) * 2014-01-14 2015-07-15 深圳市腾讯计算机系统有限公司 Alarm method and alarm device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
俞兴明等: "《移动通信网络设备》", 28 February 2014, 国防工业出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109634803A (en) * 2018-11-16 2019-04-16 网宿科技股份有限公司 A kind of method and apparatus of reporting equipment exception
CN110971485A (en) * 2019-11-19 2020-04-07 网联清算有限公司 Service index monitoring system and method
CN112416673A (en) * 2020-11-13 2021-02-26 宁波拓普集团股份有限公司 Hardware monitoring device and method for front-back trigger type periodic operation task

Similar Documents

Publication Publication Date Title
CN104883430B (en) A kind of mobile terminal and do not read the treating method and apparatus of footmark
CN105099870B (en) A kind of information push method and device
CN106453963A (en) Mobile terminal antenna switching device and method
CN106231087A (en) A kind of method and apparatus of positive and negative dual-screen display device false-touch prevention
CN106407088A (en) Method and device for detecting multi-core CPU
CN105812573A (en) Voice processing method and mobile terminal
CN105741462A (en) Mobile phone anti-lost detection method and device
CN104777982B (en) Method and device for switching terminal input method
CN106331238A (en) Screen stain prompt method, screen stain prompt device and mobile terminal
CN105975052A (en) Screen switching method and device
CN106412297A (en) Barrier warning method and device as well as mobile terminal
CN106131274A (en) Mobile terminal control device and method
CN106993084A (en) The method, device and mobile terminal that a kind of control information is shown
CN106598538A (en) Method and system for updating instruction set
CN106407097A (en) Server fault pre-warning device and method
CN105785608B (en) A kind of screen water ripples test macro and method
CN105302457B (en) Terminal control method and device
CN106371704A (en) Fast application layout method for lock screen interface and terminal
CN104991192B (en) Battery power failure detection method, device and mobile terminal
CN105974437B (en) A kind of method, apparatus and terminal promoting terminal applies performance
CN104732139A (en) Internal storage monitoring method and terminal
CN104636044B (en) The method and mobile terminal of one-handed performance
CN106569690A (en) Mistaken touch prevention device and method
CN106775381A (en) The apparatus and method of adjustment screen touch area
CN106303012A (en) Starting-up method based on carry-on equipment and with oneself equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170215