CN110191003A - Fault repairing method, device, computer equipment and storage medium - Google Patents

Fault repairing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN110191003A
CN110191003A CN201910528767.4A CN201910528767A CN110191003A CN 110191003 A CN110191003 A CN 110191003A CN 201910528767 A CN201910528767 A CN 201910528767A CN 110191003 A CN110191003 A CN 110191003A
Authority
CN
China
Prior art keywords
failure
fault
system composition
daily record
dns
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
CN201910528767.4A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN201910528767.4A priority Critical patent/CN110191003A/en
Publication of CN110191003A publication Critical patent/CN110191003A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The disclosure is related to Internet technical field about a kind of fault repairing method, device, computer equipment and storage medium.This method comprises: the daily record data of corresponding target time section occurs according to failure when determining that domain name system DNS breaks down, the fault signature of failure is obtained;According to the fault signature of failure and the fault signature of multiple fault types based on determined by history log data, the fault type of failure is determined;According to fault type, from fault type and the corresponding relationship of repair process information, determine that the corresponding repair process information of fault type, repair process information include the possibility location information and reparation instruction of failure;Instruction is repaired in operation, is repaired at least one system composition in DNS with the instruction of the possibility location information of failure.The fault type of failure and reparation can be judged automatically, manual intervention is not necessarily to, accelerates reparation speed, reduce the influence to user's normal use, decrease the investment of human cost.

Description

Fault repairing method, device, computer equipment and storage medium
Technical field
This disclosure relates to Internet technical field more particularly to a kind of fault repairing method, device, computer equipment and deposit Storage media.
Background technique
DNS (Domain Name System, domain name system) is a kernel service of internet, it is used as can be by domain The distributed data base that name and IP (Internet Protocol, Internet protocol) address mutually map, is able to use family More easily access internet.When DNS breaks down, will lead to user can not normal browsing webpage, and based on DNS service Service, a large amount of services rely on DNS service, if DNS is abnormal, downstream will appear the exception of avalanche type.Therefore, when event occurs for DNS It when barrier, needs to solve as early as possible, reduces the influence to user.
It in the related technology, is whether to be broken down by monitoring system monitoring DNS, when monitoring system monitors that event occurs in DNS When barrier, meeting alert, administrative staff carry out repair process to failure manually after receiving warning message.
But administrative staff, after receiving warning message, the time for carrying out repair process to failure is uncontrollable, it may Can be due to some cause specifics, administrative staff can not carry out repair process to failure in time, in addition, administrative staff need to check DNS occurs and which position failure, the fault type of generation has occurred in, and takes appropriate measures and is solved, is opened from failure Begin to fault restoration to terminate time-consuming more long, is affected to the normal use of user.
Summary of the invention
The disclosure provides a kind of fault repairing method, device, computer equipment and storage medium, at least to solve related skill The problem of manually repairing that DNS speed is slower in art, influencing user's normal use.The technical solution of the disclosure is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of fault repairing method is provided, including when determining domain name system DNS When breaking down, the daily record data of corresponding target time section occurs according to failure, obtains the fault signature of the failure;
According to the fault signature of the failure and the failure of multiple fault types based on determined by history log data Feature determines the fault type of the failure;
According to the fault type, from fault type and the corresponding relationship of repair process information, the failure classes are determined The corresponding repair process information of type, the repair process information include the possibility location information and reparation instruction of the failure, At least one system composition that the possibility location information instruction may break down;
The reparation instruction is run, in the DNS and at least one described in the instruction of the possibility location information of the failure A system composition is repaired.
In a kind of possible implementation, the daily record data that corresponding target time section occurs according to failure is obtained The fault signature of the failure, including following either steps:
According to the interaction relation between the system composition of the DNS, will be closed in the daily record data from linkage The daily record data of the system composition of system is polymerize, and multiple first log data sets is obtained, in each first log data set Daily record data derives from the system with interaction relation and forms, and according to the multiple first log data set, extracts each first The Fisrt fault feature of log data set;
According to the generation time point of the daily record data, the daily record data is polymerize, obtains multiple second logs Data group, daily record data in each second log data set generate time point in the same period of the day from 11 p.m. to 1 a.m of the target time section Between in section, according to the multiple second log data set, extract the second fault signature of each second log data set.
It is described according to the fault signature of the failure and based on history log data institute in a kind of possible implementation The fault signature of determining multiple fault types, determines the fault type of the failure, comprising:
The fault signature of the failure and the fault signature of the multiple fault type are compared, the failure is obtained Fault signature and each fault type fault signature matching degree;
Using the corresponding fault type of the highest fault signature of matching degree as the fault type of the failure.
In a kind of possible implementation, the operation reparation instruction, to the possibility in the DNS with the failure At least one described system composition of location information instruction is repaired, comprising:
Based on the interaction relation of at least one described system composition, the reparation for repairing at least one system composition is determined Sequentially;
According to the reparation sequence, the reparation instruction is run, successively at least one described system composition is repaired.
In a kind of possible implementation, before the operation reparation instruction, the method also includes:
Any system composition at least one described system composition sends test instruction;
If receiving information of any system composition based on the test instruction feedback, any system composition It does not break down;
If not receiving information of any system composition based on the test instruction feedback, the operation institute is executed The step of stating reparation instruction.
In a kind of possible implementation, after the operation reparation instruction, the method also includes:
When at least one described system forms repairing failure, extremely by the service switching at least one described system composition In other at least one system operated normally compositions.
In a kind of possible implementation, before the operation reparation instruction, the method also includes:
It, will at least one described system group if include the back-up system composition of at least one system composition in DNS At upper service switching into back-up system composition;
After at least one described system composition is repaired successfully, the business is switched to from back-up system composition In at least one system composition after reparation.
In a kind of possible implementation, instructed in the operation reparations, in the DNS with the failure can After at least one described system composition of energy location information instruction is repaired, the method also includes:
Institute is obtained according to the daily record data that the DNS is generated in the default detection cycle every default detection cycle State at least one data characteristics of the daily record data generated in default detection cycle;
If the failure that the first data characteristics at least one described data characteristics is not belonging to the multiple fault type is special Sign, and is not belonging to the data characteristics of normal data, it is determined that the corresponding daily record data of first data characteristics is suspicious data.
In a kind of possible implementation, the method also includes following either steps:
When determining that the DNS breaks down, alert stops issuing institute after fault restoration success State warning message;
After running reparations instruction, based on the fault type, the repair process information, reparation duration or At least one in result is repaired, the first notification information is issued;
After obtaining suspicious data, it is based on the suspicious data, issues the second notification information.
According to the second aspect of an embodiment of the present disclosure, a kind of fault restoration device is provided, comprising:
Acquiring unit, is configured as executing when determining that domain name system DNS breaks down, and corresponding mesh occurs according to failure The daily record data for marking the period, obtains the fault signature of the failure;
First determination unit is configured as executing according to the fault signature of the failure and based on history log data institute The fault signature of determining multiple fault types, determines the fault type of the failure;
Second determination unit, is configured as executing according to the fault type, from fault type and repair process information In corresponding relationship, determine that the corresponding repair process information of the fault type, the repair process information include the failure Possible location information and reparation instruction, at least one system composition that the possibility location information instruction may break down;
Unit is repaired, is configured as executing the operation reparation instruction, be positioned in the DNS with the possibility of the failure At least one described system composition of information instruction is repaired.
In a kind of possible implementation, the acquiring unit is configured as executing following either steps:
According to the interaction relation between the system composition of the DNS, will be closed in the daily record data from linkage The daily record data of the system composition of system is polymerize, and multiple first log data sets is obtained, in each first log data set Daily record data derives from the system with interaction relation and forms, and according to the multiple first log data set, extracts each first The Fisrt fault feature of log data set;
According to the generation time point of the daily record data, the daily record data is polymerize, obtains multiple second logs Data group, daily record data in each second log data set generate time point in the same period of the day from 11 p.m. to 1 a.m of the target time section Between in section, according to the multiple second log data set, extract the second fault signature of each second log data set.
In a kind of possible implementation, first determination unit is configured as executing that the failure of the failure is special It levies and is compared with the fault signature of the multiple fault type, obtain the fault signature and each fault type of the failure The matching degree of fault signature;Using the corresponding fault type of the highest fault signature of matching degree as the fault type of the failure.
In a kind of possible implementation, the reparation unit includes:
It determines subelement, is configured as executing the interaction relation based at least one described system composition, determines and repair institute State the reparation sequence of at least one system composition;
Repair subelement, be configured as executing according to reparation sequence, run reparations and instruct, successively to it is described extremely Few system composition is repaired.
In a kind of possible implementation, the reparation unit includes:
Transmission sub-unit is configured as executing any system composition at least one described system composition and sends test Instruction;
Subelement is repaired, receives any system composition based on the test instruction feedback if being configured as executing Information, then any system composition does not break down;If not receiving any system composition to instruct based on the test The information of feedback then executes the step of operation reparation instructs.
In a kind of possible implementation, described device further include:
Switch unit is configured as executing when at least one described system forms repairing failure, will it is described at least one During service switching to other at least one systems operated normally on system composition form.
In a kind of possible implementation, described device further include:
Switch unit, if be configured as executing the back-up system composition including at least one system composition in DNS, By the service switching at least one described system composition into back-up system composition;
The switch unit is additionally configured to execute after at least one described system composition is repaired successfully, will be described Business switches at least one system composition after repairing from back-up system composition.
In a kind of possible implementation, the acquiring unit is additionally configured to execute every default detection cycle, according to The daily record data that the DNS is generated in the default detection cycle obtains the log number generated in the default detection cycle According at least one data characteristics;
First determination unit, if being additionally configured to execute the first data characteristics at least one described data characteristics It is not belonging to the fault signature of the multiple fault type, and is not belonging to the data characteristics of normal data, it is determined that first number It is suspicious data according to the corresponding daily record data of feature.
In a kind of possible implementation, described device further includes delivering unit, and the delivering unit is matched It is set to and executes following either steps:
When determining that the DNS breaks down, alert stops issuing institute after fault restoration success State warning message;
After running reparations instruction, based on the fault type, the repair process information, reparation duration or At least one in result is repaired, the first notification information is issued;
After obtaining suspicious data, it is based on the suspicious data, issues the second notification information.
According to the third aspect of an embodiment of the present disclosure, a kind of computer equipment is provided, comprising:
One or more processors;
For storing one or more memories of one or more of processor-executable instructions;
Wherein, one or more of processors are configured as executing the described in any item fault restorations of above-mentioned target aspect Method.
According to a fourth aspect of embodiments of the present disclosure, a kind of computer readable storage medium is provided, when the storage medium In instruction when being executed by the processor of computer equipment so that computer equipment any one of is able to carry out in terms of above-mentioned target institute The fault repairing method stated.
The technical scheme provided by this disclosed embodiment at least bring it is following the utility model has the advantages that
A kind of fault repairing method, device, computer equipment and the storage medium that the embodiment of the present disclosure provides, are detecting When DNS breaks down, the daily record data in corresponding target time section can occur based on failure, the failure for obtaining failure is special Sign, and the fault type of the Trouble Match failure occurred based on history obtains repair process letter according to fault type later Breath, realization are automatically repaired failure, are not necessarily to manual intervention, accelerate reparation speed, reduce the shadow to user's normal use It rings, decreases the investment of human cost.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure, do not constitute the improper restriction to the disclosure.
Fig. 1 is a kind of flow chart of fault repairing method shown according to an exemplary embodiment.
Fig. 2 is a kind of flow chart of fault repairing method shown according to an exemplary embodiment.
Fig. 3 is a kind of flow chart of fault repairing method shown according to an exemplary embodiment.
Fig. 4 is a kind of flow chart of fault repairing method shown according to an exemplary embodiment.
Fig. 5 is a kind of flow chart of fault repairing method shown according to an exemplary embodiment.
Fig. 6 is a kind of block diagram of fault restoration device shown according to an exemplary embodiment.
Fig. 7 is the block diagram of another fault restoration device shown according to an exemplary embodiment.
Fig. 8 is a kind of block diagram of terminal shown according to an exemplary embodiment.
Fig. 9 is a kind of block diagram of server shown according to an exemplary embodiment.
Specific embodiment
In order to make ordinary people in the field more fully understand the technical solution of the disclosure, below in conjunction with attached drawing, to this public affairs The technical solution opened in embodiment is clearly and completely described.
It should be noted that the specification and claims of the disclosure and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiment of the disclosure described herein can in addition to illustrating herein or Sequence other than those of description is implemented.Embodiment described in following exemplary embodiment does not represent and disclosure phase Consistent all embodiments.On the contrary, they are only and as detailed in the attached claim, the disclosure some aspects The example of consistent device and method.
Fig. 1 is a kind of flow chart of fault repairing method shown according to an exemplary embodiment, as shown in Figure 1, the event Hinder restorative procedure for including the following steps in computer equipment.
In step s 11, when determining that domain name system DNS breaks down, corresponding target time section is occurred according to failure Daily record data, obtain the fault signature of failure.
In step s 12, multiple failure classes according to the fault signature of failure and based on determined by history log data The fault signature of type determines the fault type of failure.
In step s 13, according to fault type, from fault type and the corresponding relationship of repair process information, event is determined Hinder the corresponding repair process information of type, repair process information includes the possibility location information of failure and repairs instruction, this can At least one system composition that energy location information instruction may break down.
In step S14, instruction is repaired in operation, is at least one indicated in DNS with the possibility location information of failure System composition is repaired.
The fault repairing method that the embodiment of the present disclosure provides can be based on failure when detecting that DNS breaks down Daily record data in corresponding target time section, obtains the fault signature of failure, and by fault signature and multiple fault types Fault signature is matched to obtain the fault type of failure, later, is obtained repair process information according to fault type, is realized to event Barrier is automatically repaired, and is not necessarily to manual intervention, is accelerated reparation speed, reduce the influence to user's normal use, decrease The investment of human cost, while a possibility that eliminate human operational error.
In a kind of possible implementation, the daily record data of corresponding target time section occurs according to failure, obtains failure Fault signature, including following either steps:
According to the interaction relation between the system composition of DNS, the system with interaction relation will be derived from daily record data The daily record data of composition is polymerize, and multiple first log data sets, the daily record data in each first log data set are obtained Each first log data set is extracted according to multiple first log data sets from the system composition with interaction relation Fisrt fault feature;
According to the generation time point of daily record data, daily record data is polymerize, obtains multiple second log data sets, often The generation time point of daily record data in a second log data set within the same sub- period of target time section, according to more A second log data set extracts the second fault signature of each second log data set.
It is more according to the fault signature of failure and based on determined by history log data in a kind of possible implementation The fault signature of a fault type determines the fault type of failure, comprising:
The fault signature of failure and the fault signature of multiple fault types are compared, obtain the fault signature of failure with The matching degree of the fault signature of each fault type;
Using the corresponding fault type of the highest fault signature of matching degree as the fault type of failure.
In a kind of possible implementation, instruction is repaired in operation, is indicated extremely with the possibility location information of failure in DNS Few system composition is repaired, comprising:
Based on the interaction relation of at least one system composition, the reparation sequence for repairing at least one system composition is determined;
According to reparation sequence, instruction is repaired in operation, is successively repaired at least one system composition.
In a kind of possible implementation, before instruction is repaired in operation, method further include:
Any system composition at least one system composition sends test instruction;
If receiving information of any system composition based on test instruction feedback, event does not occur for any system composition Barrier;
If not receiving information of any system composition based on test instruction feedback, the step that instruction is repaired in operation is executed Suddenly.
In a kind of possible implementation, after instruction is repaired in operation, method further include:
It is when at least one system forms repairing failure, the service switching at least one system composition is normal to other In at least one system composition of operation.
In a kind of possible implementation, before instruction is repaired in operation, method further include:
If include the back-up system composition of at least one system composition in DNS, by the industry at least one system composition Business switches in back-up system composition;
After at least one system composition is repaired successfully, business is switched to after reparation at least from back-up system composition In one system composition.
In a kind of possible implementation, instruction is repaired in operation, to what is indicated in DNS with the possibility location information of failure After at least one system composition is repaired, method further include:
Default detection week is obtained according to the daily record data that DNS is generated in default detection cycle every default detection cycle At least one data characteristics of the daily record data generated in phase;
If the first data characteristics at least one data characteristics is not belonging to the fault signature of multiple fault types, and does not belong to In the data characteristics of normal data, it is determined that the corresponding daily record data of the first data characteristics is suspicious data.
In a kind of possible implementation, method further includes following either steps:
When determining that DNS breaks down, alert stops alert after fault restoration success;
After instruction is repaired in operation, based on fault type, repair process information, repairs duration or repair in result At least one of, issue the first notification information;
After obtaining suspicious data, it is based on suspicious data, issues the second notification information.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
Fig. 2 is a kind of flow chart of fault repairing method shown according to an exemplary embodiment, as shown in Fig. 2, the event Hinder restorative procedure in computer equipment, comprising the following steps:
In step S20, when the daily record data of domain name system DNS reaches the monitoring threshold value of any monitored item, computer Equipment determines that the DNS breaks down.
Wherein, DNS can be made of a server, the server cluster structure that can also be consisted of several servers At.Computer equipment can be any one server in DNS, be also possible to be located at any with calculating energy except DNS The equipment of power, for example, the equipment such as computer, tablet computer, mobile phone, the computer equipment and at least one server for constituting DNS Pass through wired or wireless connection.Whether the embodiment of the present disclosure belongs to DNS system without limitation to computer equipment, only needs to guarantee Computer equipment can get the daily record data of DNS.
Wherein, DNS can generate daily record data in the process of running, and daily record data can recorde asking every time for each user Ask, in the starting information of DNS, DNS the DNS such as operating condition of hardware device any operating condition, the daily record data be used for table Show the operating status of DNS.And the daily record data generated when DNS breaks down log number for generating when can be operated normally with DNS According to difference, for example, when the server A of DNS breaks down, it is possible that a large amount of " xxxx in the daily record data that DNS is generated Remote fatal " field.According to daily record data can determine DNS whether break down and DNS in may break down System composition.
Since the failure that DNS occurs is different, the influence to the normal operation of DNS is also different, therefore, can be based on every kind of event Accordingly monitored item is arranged in barrier Different Effects caused by DNS, which is used to monitor DNS's according to the daily record data of DNS Operating status.For example, there are failures for the hardware of DNS, it will cause free memory and largely reduce, therefore, a monitoring can be set A monitoring threshold value is arranged for monitoring the size of free memory, and for the monitored item in item, available when what is recorded in daily record data When memory is less than the monitoring threshold value of the monitored item, it is determined that DNS breaks down.
In a kind of possible implementation, monitoring system can also be run in computer equipment, which can be with Multiple monitored item are provided with, monitoring system is by the monitoring to multiple monitored item, to monitor whether DNS breaks down.
Wherein, computer equipment is by the monitoring to monitored item, can be with to monitor concrete mode that whether DNS breaks down Are as follows: each monitored item is both provided with its corresponding monitoring threshold value, which is certain seed type letter for indicating DNS operating status The maximum value or minimum value that numerical value in breath is allowed to.When the monitoring of certain information type and monitored item in daily record data is believed It is identical to cease type, and the numerical value in this type information exceeds the maximum value that is allowed to or when lower than the minimum value being allowed to, Determine that daily record data reaches the monitoring threshold value of the monitored item.Such as: it is had recorded in daily record data in currently available and saves as 15%, and Some monitored item is for monitoring free memory accounting, and the monitoring threshold value of the monitored item is 20%, due to the logdata record Currently available memory be less than monitoring threshold value, therefore, which reaches the monitoring threshold value of the monitored item, and DNS breaks down. For another example: user A parsing failure is had recorded in daily record data, some monitored item continuously parses the frequency of failure for monitoring user, and Monitoring threshold value is 7 times, and whenever recording user A parsing failure in daily record data, which, which can parse user A, fails Number adds 1, until user A successfully resolved, if the user A parsing frequency of failure reaches 7 times, then day before user's A successfully resolved Will data reach the monitoring threshold value of the monitored item, and DNS breaks down.
In addition, monitoring system can be with alert, the alarm signal after monitoring system determines that DNS breaks down Breath is for prompting the administrative staff DNS to break down.Wherein, warning message can in acoustic information or prompt information extremely One item missing.
It is made of it should be noted that can be set in DNS two systems, including active system composition and back-up system group At, after computer equipment determines that DNS breaks down, can first by least one system to break down composition on business It switches in back-up system composition, after at least one system composition to break down is repaired successfully, by business from spare system System composition switches at least one system composition after repairing.Wherein, active system group becomes DNS and operates normally after actuation System composition, the back-up system composition DNS operate normally when may be at dormant state, the back-up system form for replacing Change the system composition to break down.When DNS breaks down, by the service switching on the system to break down composition to spare system On system composition, without considering the ability to bear of back-up system, the uninterrupted operation of business ensure that.
In addition, set of system composition can also be arranged in DNS, after DNS starting, set system composition is operated normally, when After at least one system composition breaks down, the service switching which can be formed normally is transported to other In capable at least one system composition.By ensure that industry in the system composition by other normal operations of service switching to DNS The uninterrupted operation of business, and no setting is required back-up system composition, have saved system resource, have reduced development cost.
Wherein, the step of service switching to back-up system being formed is optional step, if executing the step, no matter Whether the system composition to break down repairs success, can guarantee the normal operation of business;If not executing the step, subtract Switch step is lacked, the speed for repairing failure can be accelerated.
In the step s 21, computer equipment obtains the daily record data that corresponding target time section occurs for failure, according to the day The fault signature of will data acquisition failure.
Wherein, corresponding target time section occurs for failure can break down the preceding target time section at moment determining DNS, For example, determining at the time of DNS breaks down as 09:05:23, then 09:05:21 is obtained to the log number generated between 09:05:23 According to.Corresponding target time section, which occurs, for the failure can also be the monitored item for the reaching monitoring threshold value recorded period, Such as: user A is had recorded in monitored item and continuously parses failure 10 times, and failure is parsed according to the user A recorded in monitored item every time Time, obtain user A explain failure 10 times corresponding to 10 daily record datas;Alternatively, according to user A, parsing fails for the first time Time point and user A last time parsing failure time point, determine the period between two time points, obtain the time The daily record data that DNS is generated in section.
In addition, may have interaction relation between system composition, which refers to continuous trigger relationship.It is when one When system composition operation, next system composition is bound to run, then representing between the two systems composition has interaction relation.Cause This with system composition there is the other systems composition of interaction relation may also can not when a system composition breaks down It operates normally.It, can be with according to the detailed process that daily record data obtains the fault signature of failure in a kind of possible implementation are as follows: Computer equipment will be from interaction relation in daily record data according to the interaction relation between the system composition of DNS The daily record data of system composition is polymerize, and multiple first log data sets, the log number in each first log data set are obtained It is formed according to from the system with interaction relation, according to multiple first log data sets, extracts each first log data set Fisrt fault feature.Since the interaction relation formed according to system is grouped daily record data, a failure is obtained and has made At whole error log data, by whole error log data carry out feature extraction, the fault signature extracted is more Accurately, so as to the subsequent accurate fault type for obtaining failure.
In addition, since failure occurs that a large amount of daily record data can be generated in corresponding target time section, in order to more accurate Ground obtains the fault signature of failure, and daily record data can be divided into multi-group data, extracts feature to every group of data respectively.Another Kind may be in implementation, it can be with according to the detailed process that daily record data obtains the fault signature of failure are as follows: computer equipment According to the generation time point of daily record data, daily record data is polymerize, obtains multiple second log data sets, each second day The generation time point of daily record data in will data group within the same sub- period of target time section, according to multiple second days Will data group extracts the second fault signature of each second log data set.It, will be a large amount of according to the generation time point of daily record data Daily record data be divided into multiple groups, feature extraction is carried out to every group of data respectively, the feature extracted is more accurate, and can also obtain It takes fault signature with the variation tendency of time, can be become according to the variation of each fault signature and fault signature so as to subsequent Gesture is matched to accurate fault type.
It should be noted that the embodiment of the present disclosure is carried out so that above-mentioned two ways extracts the feature of daily record data as an example Illustrate, in some embodiments, feature can also be extracted according to other modes, the embodiment of the present disclosure is specific to extraction feature Mode is without limitation.
In step S22, computer equipment is according to the fault signature of failure and based on determined by history log data The fault signature of multiple fault types determines the fault type of the failure.
Wherein, history log data includes that the daily record data generated when DNS is operated normally and DNS generate when breaking down Daily record data.By carrying out feature extraction to history log data, the data characteristics and event of normal daily record data can be obtained The fault signature of the daily record data of barrier, and classify according to fault type to fault signature, the event of fault type can be obtained Hinder feature.Since the fault signature of fault type is obtained according to historical data, then there is the failure simultaneously in DNS before illustrating And successfully repair, therefore, by the way that this failure is matched with the failure that history occurs, can accurately determine fault type with And repair process information, and successfully repair failure.
Wherein, the specific implementation of step S22 can be with are as follows: computer equipment is by the fault signature of failure and multiple failures The fault signature of type compares, and obtains the matching degree of the fault signature of failure and the fault signature of each fault type;It will Fault type of the corresponding fault type of the highest fault signature of matching degree as failure.By the matching between fault signature, The fault type of failure can accurately be obtained.
In addition, also operation has a feature database system in computer equipment, this feature library system be used for history log data into Row feature extraction is simultaneously classified, and the daily record data that this feature library system is also used to that failure occurs corresponding target time section carries out special Sign is extracted, and obtains the corresponding fault type of failure.Monitoring system failure can occur after determining that DNS breaks down The daily record data of corresponding target time section is sent to feature database system, carries out feature to the daily record data by feature database system and mentions The fault signature of failure is obtained, and according to the fault signature of failure and multiple fault types based on determined by historical data Fault signature determines the fault type of failure.
In step S23, computer equipment is closed according to the fault type from fault type and the corresponding of repair process information In system, determine the corresponding repair process information of the fault type, repair process information include failure possibility location information and Repair instruction.
Wherein, repair process information is the corresponding correcting strategy of failure, for being repaired to failure, repair process information In possibility location information instruction may break down at least one system composition, including at least one that may be broken down The information of system composition, the information can indicate Unique System group for title, the position of system composition etc. of system composition At information.The repair process information can be also possible to administrative staff when repairing DNS manually by administrative staff's typing, by Computer equipment is according to the operation automatic input of administrative staff.In computer equipment, the corresponding event of repair process information Hinder the corresponding storage of type.
Wherein, a fault type corresponds at least one repair process information, when the corresponding reparation of a fault type When handling information, computer equipment can be directly using the repair process information as the corresponding repair process information of the failure.
When a fault type corresponds to multiple repair process information, computer equipment can be believed according to each repair process The priority of breath selects the repair process information of highest priority as the corresponding reparation of failure from multiple repair process information Information is handled, failure is handled, when failing to fault restoration, next repair process can also be selected to believe according to priority Breath handles failure.The number of success that the pre-set priority can repair failure according to repair process information determines, may be used also To be arranged by administrative staff.By assigning repair process information priorities, and according to the repair process information pair of highest priority Failure is handled, and so that DNS is once repaired success as much as possible, it is ensured that failure can be repaired within the shortest time, Also, in fault restoration failure, also other repair process information can be successively attempted, fault restoration is improved according to priority Success rate.
In addition, the failure of same type, since the different corresponding repair process information of fault degree may be also different.When one When a fault type corresponds to multiple repair process information, computer equipment can also be repaired according to the fault degree of failure from multiple The repair process information that the fault degree is determined for compliance in information is handled again.Repair process information assurance is determined by fault degree It is primary to repair successful probability.
It should be noted that being to correspond at least one repair process information with a fault type in the embodiments of the present disclosure For be illustrated, in some embodiments, a fault type can also correspond to a repair process information, a repair place Managing in information includes that at least one repairs instruction, according to above-mentioned priority or fault degree, is determined from multiple reparations instruction One qualified reparation instruction, the embodiment of the present disclosure do not limit the concrete form of repair process information and reparation instruction It is fixed.
In step s 24, at least one system that computer equipment is indicated to the possibility location information of failure, which forms, to be sent Test instruction, determines whether at least one system composition breaks down.
Wherein, at least one system composition can be hardware composition, be also possible to software composition.Due between system composition With interaction relation, therefore some systems composition output abnormality is the other systems due to having interaction relation with system composition Caused by composition breaks down.According at least one corresponding system determining in the possibility location information in repair process information After composition, it can first determine that system composition is really to break down, or due to the other systems group with interaction relation At breaking down, the caused system forms output abnormality.
Wherein, computer equipment determine system composition whether the specific implementation of genuine failure can be with are as follows: at least Any system composition in one system composition, computer equipment is formed to any system sends test instruction, if receiving Information of any system composition based on test instruction feedback, then any system composition does not break down, and computer equipment is not System composition is repaired;If not receiving information of any system composition based on test instruction feedback, the system Composition breaks down, then computer equipment executes the step of instruction is repaired in operation, wherein when instruction is repaired in operation, can only transport The row any system forms corresponding reparation instruction, and this mode can accurately judge that the system to break down forms, keep away Exempt to repair the system composition not broken down, has accelerated reparation speed.
Wherein, above-mentioned steps S24 is to optionally perform step, if executing step S24, be can be avoided to not breaking down System composition is repaired, and the reparation speed of failure, as much as possible influence of the reduction failure to user's normal use are accelerated.If Step S24 is not executed, then can directly execute step S26 or step S27.
In step s 25, after determining that at least one system composition breaks down, computer equipment is based at least one The interaction relation of system composition determines the reparation sequence for repairing at least one system composition.
Wherein, the starting operation order that the reparation sequence of at least one system composition can be formed at least one system It is identical, it, can when so that the system run after subsequent reparation forming successfully due to being repaired to the system composition first run The daily record data for guaranteeing system composition is normal daily record data, to determine whether system composition is repaired according to daily record data Be thought of as function, simplify judge system composition repair whether successful step.
Wherein, step S25 is to optionally perform step, can be to avoid other with interaction relation if executing step S25 The influence that the system forms in pairs of system group, can quickly and accurately determine whether system composition repairs success, so as to as early as possible Determine subsequent execution step.If not executing step S25, the operation reparation instruction in step S26 can be directly executed.
In step S26, computer equipment runs reparation instruction, successively at least one system according to reparation sequence Composition is repaired.
Computer equipment can determine whether at least one system composition repairs success after running reparation instruction.Wherein, Computer equipment determines whether at least one system composition repairs successful concrete mode can be with are as follows: obtains at least one system group The daily record data that each system forms in, determines whether the daily record data is normal daily record data, when the daily record data is When normal daily record data, determine that system composition is repaired successfully namely the fault restoration of DNS is successful;When the daily record data is different When normal daily record data, system composition repairing failure namely the fault restoration failure of DNS are determined.
Computer equipment operation repair instruction after, no matter repair successfully or fail, can be based on fault type, Repair process information repairs duration or repairs at least one in result, issues the first notification information, such as first notice Information are as follows: 01 month 2019 No. 01 12 points 56 minutes, the server A of DNS has carried out fault self-recovery operation, and matching fault type is 3, Repair process information is 7, is repaired successfully, the used time 2 seconds, detail as per xxxx.Administrative staff can be according to the first notification information It solves which kind of failure when DNS having occurred, and is repaired by which kind of mode, so that follow-up management personnel are to repair place Reason information is updated.
It, can be with alert, correspondingly, in fault restoration success when computer equipment is when detecting failure Afterwards, alert can also be stopped.In a kind of possible implementation, when computer equipment meets goal condition, stop Alert, detailed process can be with are as follows: after instruction graduates are repaired in operation, monitoring at least one by monitoring system is Whether the daily record data of system composition is normal daily record data, when the daily record data of at least one system composition is normal log number According to, and keeping duration more than after target duration, computer equipment stops alert, which can be 30 seconds etc. Any duration.
In addition, computer equipment will at least when forming repairing failure to any system at least one system composition During service switching to other at least one systems operated normally on one system composition form.It ensure that and lost in fault restoration When losing, it is also able to achieve the normal use of user, reduces failure influence caused by user's normal use as much as possible.
In summary step 20 is to step S26, by taking operation has monitoring system and feature database system in computer equipment as an example, The failure process for repairing DNS to computer equipment is illustrated, as shown in figure 3, when monitoring system detects that failure occurs, it can To obtain daily record data relevant to the failure, which is sent in feature database system, by feature database system detection In feature database whether include the daily record data feature, wherein in feature database including normal daily record data data characteristics and The fault signature of multiple fault types, and further include the corresponding repair process information of each fault type in feature database.Work as feature When library system is matched to the feature of the daily record data based on feature database, failure is repaired according to matching result;Work as feature database When system is not matched to the feature of the daily record data based on feature database, then by the industry at least one system to break down composition Business switches in back-up system composition.In addition, service switching to back-up system can also be formed when fault restoration failure In.No matter which kind of mode failure is repaired by, after repairing successfully, the first notification information is can be generated in feature database system, with Inform administrative staff.
In addition, when repairing failure or when not being matched to fault type, when corresponding target can occur with reporting fault Between section daily record data, as shown in figure 4, so that follow-up management personnel are according to the daily record data complementary features library.
In step s 27, every default detection cycle, computer equipment generates in default detection cycle according to DNS Daily record data obtains at least one data characteristics of the daily record data generated in default detection cycle.
Wherein, default detection cycle can be any time periods such as one day, one month, wherein obtaining daily record data at least The process of one data characteristics is similar with the process in step S22, and this is no longer going to repeat them.
In addition, carrying out repeating detection in order to avoid repeating the error log data caused by failure, as shown in figure 5, monitoring The daily record data that corresponding target time section can be occurred for failure by system is sent in Log Analysis System, or will be true The description information for making the daily record data is sent to Log Analysis System, when which can be the generation of the daily record data Between etc., the daily record data of corresponding target time section occurs for determining to be out of order from whole daily record datas, log analysis system System can delete the daily record data that corresponding target time section occurs for the failure in whole daily record datas that DNS is generated, and avoid To the replicate analysis of portions of log data.
In step S28, if the first data characteristics at least one data characteristics is not belonging to the event of multiple fault types Hinder feature, and be not belonging to the data characteristics of normal data, then computer equipment determines the corresponding daily record data of the first data characteristics For suspicious data.
Wherein, the data characteristics of suspicious data is different from the data characteristics of existing normal daily record data, and with it is existing The corresponding fault signature of fault type is also different, which is also possible to be normal daily record data, it is also possible to which event occurs for DNS Caused by barrier, the fault type of the failure can be identical as the fault type of the historical failure of DNS, can also be different.
It should be noted that in some embodiments, the first data characteristics is also possible to belong to the event of some fault type Hinder feature, this kind is it may be the case that since DNS may soon break down but caused by also ungenuine failure, it is also possible to by It breaks down in DNS, but and caused by the monitoring threshold value of not up to monitored item.In this case, computer equipment can be with DNS is repaired according to the fault type and repair process information that are matched to.Also, after repairing successfully, it can incite somebody to action The corresponding daily record data of first data characteristics is reported, and is analyzed by administrative staff daily record data, and determination causes this kind The reason of situation, and monitoring system and feature database system are adjusted correspondingly, so that calculating equipment is automatically repaired DNS failure Mechanism it is more perfect.
In step S29, computer equipment is based on suspicious data, issues the second notification information.
Wherein, for the second notification information for notifying administrative staff's complementary features library, including this in second notification information can Data are doubted, when the suspicious data is caused due to DNS failure, administrative staff can be according to the suspicious data in monitoring system Corresponding monitored item is supplemented, can determine that DNS breaks down by monitoring system so as to subsequent, and repair the failure in time, And corresponding feature and corresponding fault type and repair process information are supplemented in feature database system.When the suspicious data is When normal daily record data, the corresponding data characteristics of the suspicious data can be supplemented in feature database by administrative staff, and by the spy It levies data characteristics as normal daily record data, when the subsequent daily record data for receiving the type again, will not repeatedly generate suspicious Data.
Wherein, step S27 to step S29 is to optionally perform step, can select to hold based on the integrality of monitoring mechanism Row is conducive to improve entire monitoring mechanism, and then can carry out to further types of failure if executing step S27 to step S29 It is automatically repaired.
The fault repairing method that the embodiment of the present disclosure provides can be based on failure when detecting that DNS breaks down Daily record data in corresponding target time section, obtains the fault signature of failure, and by fault signature and multiple fault types Fault signature is matched to obtain the fault type of failure, later, is obtained repair process information according to fault type, is realized to event Barrier is automatically repaired, and is not necessarily to manual intervention, is accelerated reparation speed, reduce the influence to user's normal use, decrease The investment of human cost.
In addition, fault restoration failure when, can also by by the system to break down composition on service switching to its On the system composition that he operates normally, so that user still can normally access when DNS breaks down.
In addition, can also be examined every default detection cycle to the DNS all daily record datas generated in computer equipment It surveys, checks whether there are suspicious data, so that administrative staff with data according to can add monitored item or amendment feature database system, To improve the mechanism that computer equipment is automatically repaired failure.
All the above alternatives can form the alternative embodiment of the disclosure, herein no longer using any combination It repeats one by one.
Fig. 6 is a kind of fault restoration device block diagram shown according to an exemplary embodiment.Referring to Fig. 6, which includes Acquiring unit 601, the first determination unit 602, the second determination unit 603 and reparation unit 604.
Acquiring unit 601 is configured as executing when determining that domain name system DNS breaks down, be corresponded to according to failure Target time section daily record data, obtain the fault signature of the failure;
First determination unit 602 is configured as executing according to the fault signature of the failure and based on history log data The fault signature of identified multiple fault types, determines the fault type of the failure;
Second determination unit 603, is configured as executing according to the fault type, from fault type and repair process information In corresponding relationship, determine that the corresponding repair process information of the fault type, the repair process information include that the possibility of the failure is fixed Position information and reparation instruction, at least one system composition that possible location information instruction may break down;
Unit 604 is repaired, is configured as executing operation reparation instruction, believe being positioned in the DNS with the possibility of the failure At least one system composition of breath instruction is repaired.
The fault restoration device that the embodiment of the present disclosure provides can be based on failure when detecting that DNS breaks down Daily record data in corresponding target time section, obtains the fault signature of failure, and by fault signature and multiple fault types Fault signature is matched to obtain the fault type of failure, later, is obtained repair process information according to fault type, is realized to event Barrier is automatically repaired, and is not necessarily to manual intervention, is accelerated reparation speed, reduce the influence to user's normal use, decrease The investment of human cost.
In a kind of possible implementation, which is configured as executing following either steps:
According to the interaction relation between the system composition of the DNS, will derive from the daily record data with interaction relation The daily record data of system composition is polymerize, and multiple first log data sets, the log in each first log data set are obtained Data source extracts each first log number according to multiple first log data set in the system composition with interaction relation According to the Fisrt fault feature of group;
According to the generation time point of the daily record data, which is polymerize, obtains multiple second daily record datas Group, daily record data in each second log data set generate time point in the same sub- period of the target time section It is interior, according to multiple second log data set, extract the second fault signature of each second log data set.
In a kind of possible implementation, which is configured as executing the fault signature of the failure It is compared with the fault signature of multiple fault type, the failure of the fault signature and each fault type that obtain the failure is special The matching degree of sign;Using the corresponding fault type of the highest fault signature of matching degree as the fault type of the failure.
In a kind of possible implementation, as shown in fig. 7, the reparation unit 604 includes:
It determines subelement 6041, is configured as executing the interaction relation based at least one system composition, determines and repair The reparation sequence of at least one system composition;
Subelement 6042 is repaired, is configured as executing according to reparation sequence, runs reparation instruction, successively at least to this One system composition is repaired.
In a kind of possible implementation, as shown in fig. 7, the reparation unit 604 includes:
Transmission sub-unit 6043 is configured as executing forming to send at least one system and tests instruction;
Subelement 6042 is repaired, is based on if any system for being configured as executing receive in any system composition forms The information of the test instruction feedback, then any system composition does not break down;If not receiving any system composition to be based on The information of the test instruction feedback then executes the step of running reparation instruction.
In a kind of possible implementation, as shown in fig. 7, the device further include:
Switch unit 605 is configured as executing when at least one system forms repairing failure, and by this, at least one is During service switching to other at least one systems operated normally on system composition form.
In a kind of possible implementation, as shown in fig. 7, the device further include:
Switch unit 605, if being configured as executing the back-up system composition in DNS including at least one system composition When, by the service switching at least one system composition into back-up system composition;
The switch unit 605 is additionally configured to execute after at least one system composition is repaired successfully, by the business It is switched at least one system composition after repairing from back-up system composition.
In a kind of possible implementation, which is additionally configured to execute every default detection cycle, root The daily record data generated in detection cycle is preset at this according to the DNS, obtains the daily record data generated in the default detection cycle At least one data characteristics;
First determination unit 602, if being additionally configured to execute the first data characteristics at least one data characteristics It is not belonging to the fault signature of multiple fault type, and is not belonging to the data characteristics of normal data, it is determined that first data are special Levying corresponding daily record data is suspicious data.
In a kind of possible implementation, as shown in fig. 7, the device further includes delivering unit 606, the delivering Unit 606 is configured as executing following either steps:
When determining that the DNS breaks down, alert stops issuing the alarm after fault restoration success Information;
After running reparation instruction, based on the fault type, the repair process information, repairs duration or repair knot At least one of in fruit, issue the first notification information;
After obtaining suspicious data, it is based on the suspicious data, issues the second notification information.
It should be understood that fault restoration device provided by the above embodiment is when repairing failure, only with above-mentioned each function The division progress of unit can according to need and for example, in practical application by above-mentioned function distribution by different function lists Member is completed, i.e., the internal structure of fault restoration device is divided into different functional units, with complete it is described above whole or Person's partial function.In addition, fault restoration device provided by the above embodiment and fault repairing method embodiment belong to same design, Its specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Fig. 8 is a kind of structural block diagram for terminal that the embodiment of the present disclosure provides.The terminal 800 is for executing above-described embodiment The step of middle computer equipment executes, can be portable mobile termianl, such as: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop or desktop computer.Terminal 800 is also possible to referred to as user equipment, portable terminal, end on knee Other titles such as end, terminal console.
In general, terminal 800 includes: processor 801 and memory 802.
Processor 801 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 801 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 801 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit);Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 801 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 801 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 802 may include one or more computer readable storage mediums, which can To be non-transient.Memory 802 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 802 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 801 for realizing this Shen Please in embodiment of the method provide fault repairing method.
In some embodiments, terminal 800 is also optional includes: peripheral device interface 803 and at least one peripheral equipment. It can be connected by bus or signal wire between processor 801, memory 802 and peripheral device interface 803.Each peripheral equipment It can be connected by bus, signal wire or circuit board with peripheral device interface 803.Specifically, peripheral equipment includes: radio circuit 804, at least one of touch display screen 805, camera 806, voicefrequency circuit 807, positioning component 808 and power supply 809.
Peripheral device interface 803 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 801 and memory 802.In some embodiments, processor 801, memory 802 and peripheral equipment Interface 803 is integrated on same chip or circuit board;In some other embodiments, processor 801, memory 802 and outer Any one or two in peripheral equipment interface 803 can realize on individual chip or circuit board, the present embodiment to this not It is limited.
Radio circuit 804 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal.It penetrates Frequency circuit 804 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 804 turns electric signal It is changed to electromagnetic signal to be sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 804 wraps It includes: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, codec chip Group, user identity module card etc..Radio circuit 804 can be carried out by least one wireless communication protocol with other terminals Communication.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some embodiments, it penetrates Frequency circuit 804 can also include NFC (Near Field Communication, wireless near field communication) related circuit, this Application is not limited this.
Display screen 805 is for showing UI (User Interface, user interface).The UI may include figure, text, figure Mark, video and its their any combination.When display screen 805 is touch display screen, display screen 805 also there is acquisition to show The ability of the touch signal on the surface or surface of screen 805.The touch signal can be used as control signal and be input to processor 801 are handled.At this point, display screen 805 can be also used for providing virtual push button and/or dummy keyboard, also referred to as soft button and/or Soft keyboard.In some embodiments, display screen 805 can be one, and the front panel of terminal 800 is arranged;In other embodiments In, display screen 805 can be at least two, be separately positioned on the different surfaces of terminal 800 or in foldover design;In still other reality It applies in example, display screen 805 can be flexible display screen, be arranged on the curved surface of terminal 800 or on fold plane.Even, it shows Display screen 805 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 805 can use LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) Etc. materials preparation.
CCD camera assembly 806 is for acquiring image or video.Optionally, CCD camera assembly 806 include front camera and Rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.One In a little embodiments, rear camera at least two is main camera, depth of field camera, wide-angle camera, focal length camera shooting respectively Any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide-angle Camera fusion realizes that pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are clapped Camera shooting function.In some embodiments, CCD camera assembly 806 can also include flash lamp.Flash lamp can be monochromatic warm flash lamp, It is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for not With the light compensation under colour temperature.
Voicefrequency circuit 807 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and will Sound wave, which is converted to electric signal and is input to processor 801, to be handled, or is input to radio circuit 804 to realize voice communication. For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 800 to be multiple.Mike Wind can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 801 or radio circuit will to be come from 804 electric signal is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramic loudspeaker.When When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, it can also be by telecommunications Number the sound wave that the mankind do not hear is converted to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 807 can also include Earphone jack.
Positioning component 808 is used for the current geographic position of positioning terminal 800, to realize navigation or LBS (Location Based Service, location based service).Positioning component 808 can be the GPS (Global based on the U.S. Positioning System, global positioning system), the Gray of the dipper system of China or Russia receive this system or European Union The positioning component of Galileo system.
Power supply 809 is used to be powered for the various components in terminal 800.Power supply 809 can be alternating current, direct current, Disposable battery or rechargeable battery.When power supply 809 includes rechargeable battery, which can support wired charging Or wireless charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 800 further includes having one or more sensors 810.The one or more sensors 810 include but is not limited to: acceleration transducer 811, gyro sensor 812, pressure sensor 813, fingerprint sensor 814, Optical sensor 815 and proximity sensor 816.
The acceleration that acceleration transducer 811 can detecte in three reference axis of the coordinate system established with terminal 800 is big It is small.For example, acceleration transducer 811 can be used for detecting component of the acceleration of gravity in three reference axis.Processor 801 can With the acceleration of gravity signal acquired according to acceleration transducer 811, touch display screen 805 is controlled with transverse views or longitudinal view Figure carries out the display of user interface.Acceleration transducer 811 can be also used for the acquisition of game or the exercise data of user.
Gyro sensor 812 can detecte body direction and the rotational angle of terminal 800, and gyro sensor 812 can To cooperate with acquisition user to act the 3D of terminal 800 with acceleration transducer 811.Processor 801 is according to gyro sensor 812 Following function may be implemented in the data of acquisition: when action induction (for example changing UI according to the tilt operation of user), shooting Image stabilization, game control and inertial navigation.
The lower layer of side frame and/or touch display screen 805 in terminal 800 can be set in pressure sensor 813.Work as pressure When the side frame of terminal 800 is arranged in sensor 813, user can detecte to the gripping signal of terminal 800, by processor 801 Right-hand man's identification or prompt operation are carried out according to the gripping signal that pressure sensor 813 acquires.When the setting of pressure sensor 813 exists When the lower layer of touch display screen 805, the pressure operation of touch display screen 805 is realized to UI circle according to user by processor 801 Operability control on face is controlled.Operability control includes button control, scroll bar control, icon control, menu At least one of control.
Fingerprint sensor 814 is used to acquire the fingerprint of user, collected according to fingerprint sensor 814 by processor 801 The identity of fingerprint recognition user, alternatively, by fingerprint sensor 814 according to the identity of collected fingerprint recognition user.It is identifying When the identity of user is trusted identity out, the user is authorized to execute relevant sensitive operation, the sensitive operation packet by processor 801 Include solution lock screen, check encryption information, downloading software, payment and change setting etc..Terminal can be set in fingerprint sensor 814 800 front, the back side or side.When being provided with physical button or manufacturer Logo in terminal 800, fingerprint sensor 814 can be with It is integrated with physical button or manufacturer's mark.
Optical sensor 815 is for acquiring ambient light intensity.In one embodiment, processor 801 can be according to optics The ambient light intensity that sensor 815 acquires controls the display brightness of touch display screen 805.Specifically, when ambient light intensity is higher When, the display brightness of touch display screen 805 is turned up;When ambient light intensity is lower, the display for turning down touch display screen 805 is bright Degree.In another embodiment, the ambient light intensity that processor 801 can also be acquired according to optical sensor 815, dynamic adjust The acquisition parameters of CCD camera assembly 806.
Proximity sensor 816, also referred to as range sensor are generally arranged at the front panel of terminal 800.Proximity sensor 816 For acquiring the distance between the front of user Yu terminal 800.In one embodiment, when proximity sensor 816 detects use When family and the distance between the front of terminal 800 gradually become smaller, touch display screen 805 is controlled from bright screen state by processor 801 It is switched to breath screen state;When proximity sensor 816 detects user and the distance between the front of terminal 800 becomes larger, Touch display screen 805 is controlled by processor 801 and is switched to bright screen state from breath screen state.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal 800 of structure shown in Fig. 8, can wrap It includes than illustrating more or fewer components, perhaps combine certain components or is arranged using different components.
Fig. 9 is a kind of block diagram of server 900 shown according to an exemplary embodiment.The server 900 can be because of configuration Or performance is different and generate bigger difference, may include one or more processors (central processing Units, CPU) 901 and one or more memory 902, wherein at least one instruction is stored in memory 902, The method that at least one instruction is loaded by processor 901 and executed to realize above-mentioned each embodiment of the method offer.Certainly, the clothes Business device can also have the components such as wired or wireless network interface, keyboard and input/output interface, to carry out input and output, The server can also include other for realizing the component of functions of the equipments, and this will not be repeated here.
Server 900 can be used for executing step performed by computer equipment in above-mentioned fault repairing method.
In the exemplary embodiment, a kind of computer readable storage medium is additionally provided, the instruction in the storage medium When being executed by the processor of computer equipment, so that computer equipment is able to carry out the fault restoration side of embodiment of the present disclosure offer Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (10)

1. a kind of fault repairing method, which is characterized in that the described method includes:
When determining that domain name system DNS breaks down, the daily record data of corresponding target time section occurs according to failure, obtains institute State the fault signature of failure;
According to the fault signature of the failure and the fault signature of multiple fault types based on determined by history log data, Determine the fault type of the failure;
According to the fault type, from fault type and the corresponding relationship of repair process information, the fault type pair is determined The repair process information answered, the repair process information includes the possibility location information of the failure and repairs instruction, described At least one system composition that possible location information instruction may break down;
Run reparation instruction, in the DNS with described in the instruction of the possibility location information of the failure at least one be System composition is repaired.
2. the method according to claim 1, wherein the day that corresponding target time section occurs according to failure Will data obtain the fault signature of the failure, including following either steps:
According to the interaction relation between the system composition of the DNS, will derive from the daily record data with interaction relation The daily record data of system composition is polymerize, and multiple first log data sets, the log in each first log data set are obtained Data source extracts each first log according to the multiple first log data set in the system composition with interaction relation The Fisrt fault feature of data group;
According to the generation time point of the daily record data, the daily record data is polymerize, obtains multiple second daily record datas Group, daily record data in each second log data set generate time point in the same sub- period of the target time section It is interior, according to the multiple second log data set, extract the second fault signature of each second log data set.
3. the method according to claim 1, wherein the fault signature according to the failure and based on going through The fault signature of multiple fault types determined by history daily record data, determines the fault type of the failure, comprising:
The fault signature of the failure and the fault signature of the multiple fault type are compared, the event of the failure is obtained Hinder the matching degree of the fault signature of feature and each fault type;
Using the corresponding fault type of the highest fault signature of matching degree as the fault type of the failure.
4. the method according to claim 1, wherein the operation reparations instructs, in the DNS with institute At least one the described system composition for stating the possibility location information instruction of failure is repaired, comprising:
Based on the interaction relation of at least one described system composition, determine that the reparation for repairing at least one system composition is suitable Sequence;
According to the reparation sequence, the reparation instruction is run, successively at least one described system composition is repaired.
5. the method according to claim 1, wherein before the operation reparations instructs, the method Further include:
Any system composition at least one described system composition sends test instruction;
If receiving information of any system composition based on the test instruction feedback, any system composition is not sent out Raw failure;
If not receiving information of any system composition based on the test instruction feedback, executes and repaired described in the operation The step of instructing again.
6. method according to any one of claims 1 to 5, which is characterized in that after the operation reparation instruction, The method also includes:
When at least one described system form repairing failure when, by least one described system composition on service switching to other In at least one system composition operated normally.
7. the method according to claim 1, wherein before the operation reparations instructs, the method Further include:
It, will be at least one system composition if include the back-up system composition of at least one system composition in DNS Service switching to the back-up system composition in;
After at least one described system composition is repaired successfully, the business is switched into reparation from back-up system composition In at least one system composition afterwards.
8. a kind of fault restoration device, which is characterized in that described device includes:
Acquiring unit is configured as executing when determining that domain name system DNS breaks down, when corresponding target occurs according to failure Between section daily record data, obtain the fault signature of the failure;
First determination unit is configured as executing according to the fault signature of the failure and be determined based on history log data Multiple fault types fault signature, determine the fault type of the failure;
Second determination unit is configured as executing according to the fault type, from the correspondence of fault type and repair process information In relationship, determine that the corresponding repair process information of the fault type, the repair process information include the possibility of the failure Location information and reparation instruction, at least one system composition that the possibility location information instruction may break down;
Unit is repaired, is configured as executing the operation reparation instruction, to the possibility location information in the DNS with the failure At least one the described system composition indicated is repaired.
9. a kind of computer equipment characterized by comprising
One or more processors;
For storing one or more memories of one or more of processor-executable instructions;
Wherein, one or more of processors are configured as fault restoration side described in any one of perform claim requirement 1 to 7 Method.
10. a kind of computer readable storage medium, when the instruction in the storage medium is executed by the processor of computer equipment When, so that computer equipment is able to carry out the fault repairing method as described in any one of claims 1 to 7.
CN201910528767.4A 2019-06-18 2019-06-18 Fault repairing method, device, computer equipment and storage medium Pending CN110191003A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910528767.4A CN110191003A (en) 2019-06-18 2019-06-18 Fault repairing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910528767.4A CN110191003A (en) 2019-06-18 2019-06-18 Fault repairing method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110191003A true CN110191003A (en) 2019-08-30

Family

ID=67722330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910528767.4A Pending CN110191003A (en) 2019-06-18 2019-06-18 Fault repairing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110191003A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111401577A (en) * 2020-02-14 2020-07-10 上海电气分布式能源科技有限公司 Device management method, device and storage medium
CN111897671A (en) * 2020-07-23 2020-11-06 平安证券股份有限公司 Failure recovery method, computer device, and storage medium
CN112104497A (en) * 2020-09-11 2020-12-18 北京达佳互联信息技术有限公司 Terminal management method, device, system, server, terminal and storage medium
CN112817800A (en) * 2019-11-15 2021-05-18 上海联影医疗科技股份有限公司 Testing method and device of interactive equipment, computer equipment and storage medium
CN113064836A (en) * 2021-05-07 2021-07-02 中国工商银行股份有限公司 Business abnormity repairing method and device based on bank system automation test
CN113176996A (en) * 2021-04-29 2021-07-27 深信服科技股份有限公司 Fault processing method, engine, plug-in probe, device and readable storage medium
CN113254269A (en) * 2021-05-27 2021-08-13 山东英信计算机技术有限公司 Method, system, equipment and medium for repairing abnormal event of storage system
CN113724437A (en) * 2021-08-30 2021-11-30 四川虹美智能科技有限公司 Unattended alarm method and system for unattended selling cabinet
CN113872814A (en) * 2021-09-29 2021-12-31 北京金山云网络技术有限公司 Information processing method, device and system for content distribution network
CN114844773A (en) * 2022-04-26 2022-08-02 深圳市鸿云智科技有限公司 Cigarette production equipment fault repair strategy optimization method, device, system and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001811A (en) * 2012-12-31 2013-03-27 北京启明星辰信息技术股份有限公司 Method and device for fault locating
CN106998256A (en) * 2016-01-22 2017-08-01 腾讯科技(深圳)有限公司 A kind of communication failure localization method and server
CN107357730A (en) * 2017-07-17 2017-11-17 郑州云海信息技术有限公司 A kind of system fault diagnosis restorative procedure and device
CN108322345A (en) * 2018-02-07 2018-07-24 平安科技(深圳)有限公司 A kind of dissemination method and server of fault restoration data packet
CN108763037A (en) * 2018-06-07 2018-11-06 郑州云海信息技术有限公司 A kind of server monitoring management method and device
CN108984332A (en) * 2018-06-22 2018-12-11 郑州云海信息技术有限公司 A kind of device and method of location-server delay machine failure
CN109165124A (en) * 2018-08-07 2019-01-08 南京翼辉信息技术有限公司 A kind of embedded system hardware fault detection and processing method based on fault tree

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103001811A (en) * 2012-12-31 2013-03-27 北京启明星辰信息技术股份有限公司 Method and device for fault locating
CN106998256A (en) * 2016-01-22 2017-08-01 腾讯科技(深圳)有限公司 A kind of communication failure localization method and server
CN107357730A (en) * 2017-07-17 2017-11-17 郑州云海信息技术有限公司 A kind of system fault diagnosis restorative procedure and device
CN108322345A (en) * 2018-02-07 2018-07-24 平安科技(深圳)有限公司 A kind of dissemination method and server of fault restoration data packet
CN108763037A (en) * 2018-06-07 2018-11-06 郑州云海信息技术有限公司 A kind of server monitoring management method and device
CN108984332A (en) * 2018-06-22 2018-12-11 郑州云海信息技术有限公司 A kind of device and method of location-server delay machine failure
CN109165124A (en) * 2018-08-07 2019-01-08 南京翼辉信息技术有限公司 A kind of embedded system hardware fault detection and processing method based on fault tree

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817800A (en) * 2019-11-15 2021-05-18 上海联影医疗科技股份有限公司 Testing method and device of interactive equipment, computer equipment and storage medium
CN111401577A (en) * 2020-02-14 2020-07-10 上海电气分布式能源科技有限公司 Device management method, device and storage medium
CN111897671A (en) * 2020-07-23 2020-11-06 平安证券股份有限公司 Failure recovery method, computer device, and storage medium
CN112104497A (en) * 2020-09-11 2020-12-18 北京达佳互联信息技术有限公司 Terminal management method, device, system, server, terminal and storage medium
CN113176996A (en) * 2021-04-29 2021-07-27 深信服科技股份有限公司 Fault processing method, engine, plug-in probe, device and readable storage medium
CN113064836A (en) * 2021-05-07 2021-07-02 中国工商银行股份有限公司 Business abnormity repairing method and device based on bank system automation test
CN113254269A (en) * 2021-05-27 2021-08-13 山东英信计算机技术有限公司 Method, system, equipment and medium for repairing abnormal event of storage system
CN113724437A (en) * 2021-08-30 2021-11-30 四川虹美智能科技有限公司 Unattended alarm method and system for unattended selling cabinet
CN113872814A (en) * 2021-09-29 2021-12-31 北京金山云网络技术有限公司 Information processing method, device and system for content distribution network
CN114844773A (en) * 2022-04-26 2022-08-02 深圳市鸿云智科技有限公司 Cigarette production equipment fault repair strategy optimization method, device, system and medium
CN114844773B (en) * 2022-04-26 2023-10-10 深圳市鸿云智科技有限公司 Method, device, system and medium for optimizing fault restoration strategy of cigarette production equipment

Similar Documents

Publication Publication Date Title
CN110191003A (en) Fault repairing method, device, computer equipment and storage medium
CN111064590B (en) Abnormal state repairing method and device and readable storage medium
CN107979851A (en) Abnormal data report method and device
CN106557402B (en) Mobile terminal and exception information processing method
CN110933113B (en) Block chain-based interactive behavior detection method, device, equipment and storage medium
CN111666222A (en) Test method and related device
EP4047471A1 (en) Audio data processing method, server, and storage medium
CN110224870A (en) Interface monitoring method, apparatus calculates equipment and storage medium
CN110121084A (en) The methods, devices and systems of port switching
CN107465841A (en) A kind of fault information reporting method and terminal
CN108572908A (en) information feedback method and device
CN111061550A (en) Task processing method, device, equipment and storage medium
CN110147380A (en) Data-updating method, device, server and storage medium
CN108512980A (en) A kind of detection method and mobile terminal of mobile terminal
CN107948278A (en) A kind of information transferring method, terminal device and system
CN108270853A (en) A kind of message treatment method and mobile terminal
CN106713319A (en) Method, device, system of realizing remote control between terminals, and mobile terminal
CN110290191A (en) Resource transfers result processing method, device, server, terminal and storage medium
CN109783176A (en) Switch the method and apparatus of the page
CN109144609A (en) Using method for down loading, device, storage medium and terminal
CN109634872A (en) Application testing method, device, terminal and storage medium
CN110399246A (en) Program restorative procedure and device
CN109981890A (en) A kind of reminding task processing method, terminal and computer readable storage medium
CN108132817A (en) Method for managing object and device
CN113591090B (en) Program bug reporting method, device, equipment and storage medium

Legal Events

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

Application publication date: 20190830

RJ01 Rejection of invention patent application after publication