CN106533812B - Application server - Google Patents
Application server Download PDFInfo
- Publication number
- CN106533812B CN106533812B CN201611254989.4A CN201611254989A CN106533812B CN 106533812 B CN106533812 B CN 106533812B CN 201611254989 A CN201611254989 A CN 201611254989A CN 106533812 B CN106533812 B CN 106533812B
- Authority
- CN
- China
- Prior art keywords
- application interface
- application
- detection module
- interface
- processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/02—Capturing of monitoring data
Abstract
The invention provides an application server, which comprises a three-party interface abnormity monitoring device and comprises the following components: the anomaly detection module is used for keeping anomaly monitoring on an application interface; the preprocessing module is used for reading a preprocessing program to process the abnormity when the application interface is monitored to be abnormal; the first pre-recovery detection module is used for detecting whether the application interface is normal after the processing is finished: if yes, reading preset configuration information for gray scale release, and switching to a second pre-recovery detection module for processing; if not, switching to the preprocessing module for processing; and the second pre-recovery detection module is used for detecting whether the application interface is normal or not, returning to the first pre-recovery detection module for processing if the application interface is not normal, and recovering the application if the application interface is normal. The invention can realize automatic processing and recovery of the three-party interface exception and is safer and more reliable in the application working process.
Description
Technical Field
The invention relates to an application interface management technology, in particular to an application server capable of monitoring the abnormity of a three-party interface.
Background
In the development process of application software, with the increase of micro services, more and more three-party interfaces are needed for a system, such as short message sending, payment, information pushing, weather query and the like, and the management of the three-party interfaces also becomes a problem therewith. For example, when the three-party interface is abnormal, the three-party interface is cut off, then the abnormality is checked and solved, and finally the three-party interface is manually restored after the abnormality is eliminated.
The above-described abnormality processing method has the following problems: in addition, the recovery judgment of the three-party interface needs manual work, and the recovery of the service is generally integrated recovery, which may cause the possibility of hanging the three-party interface again.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention is directed to an application server for solving the problems of the prior art that the existing application interface management cannot achieve the automatic recovery from the exception and the lack of a preprocessing mechanism.
To achieve the above objects and other related objects, the present invention provides the following solutions:
an application server, comprising a three-party interface anomaly monitoring device, wherein the three-party interface anomaly monitoring device comprises: the anomaly detection module is used for keeping anomaly monitoring on an application interface; the preprocessing module is used for reading a preprocessing program to process the abnormity when the application interface is monitored to be abnormal; the first pre-recovery detection module is used for detecting whether the application interface is normal for the first time after the processing is finished: if yes, reading preset configuration information for gray scale release, and switching to a second pre-recovery detection module for processing; if not, switching to the preprocessing module for processing; and the second pre-recovery detection module is used for detecting whether the application interface is normal for the second time, if not, returning to the first pre-recovery detection module for processing, and if so, recovering the application.
In a preferred embodiment, the anomaly detection module includes: the first calculating unit is used for calculating the continuous error times of the application interface; the second calculation unit is used for calculating the success rate of the application interface within a time period; and the abnormity judging unit is used for determining whether the application interface is abnormal or not according to the times and the success rate.
The invention has the following beneficial effects: the invention automatically processes the abnormal condition of the three-party interface, and can achieve better effect than the prior art which adopts general alarm when abnormal, because the alarm does not take any measure, the invention can not achieve any monitoring or preventing effect; in addition, the invention can adopt an automatic mode aiming at the recovery of the three-party interface, and gradually recover by adopting gray release, so that the recovery process is more reliable.
Drawings
Fig. 1 is a flowchart of a three-party interface anomaly monitoring method according to the method aspect of the present invention.
FIG. 2 is a flow chart of anomaly monitoring for an application interface according to the method aspect of the present invention.
FIG. 3 is a schematic diagram of a three-party interface anomaly monitoring device according to the present invention.
FIG. 4 is a schematic diagram of an embodiment of an anomaly detection module according to the present invention.
Fig. 5 is a schematic diagram of an application server according to the present invention.
Description of the element reference numerals
3 three-party interface abnormity monitoring device
31 abnormity detection module
311 first calculation unit
312 second calculation unit
313 abnormality determination unit
32 preprocessing module
33 first Pre-recovery detection Module
34 second Pre-recovery detection Module
5 application server
S101 to S104
S201 to S204
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Description of the invention
Three-party interface, also called: the three-party application interface or application interface is called a three-party application because the existing application with a certain function is accessed and used in the software development process, and the use is realized through the application interface.
For example, if a payment function is to be implemented on a certain application software, the existing payment application functions such as payment treasure and WeChat can be accessed through the application interface, and the payment system does not need to be developed by itself.
Implementation mode one
According to the method of the present invention
Referring to fig. 1, a three-party interface anomaly monitoring method is provided, which is implemented by sequentially performing the following steps as shown in the figure:
step S101, keeping abnormal monitoring on an application interface;
step S102, when the application interface is monitored to be abnormal, a preprocessing program is read to process the abnormality;
step S103, after the processing is finished, whether the application interface is normal is detected for the first time: if yes, reading preset configuration information for gray scale release, and turning to step S104; if not, returning to the step S102;
and step S104, detecting whether the application interface is normal for the second time, if not, returning to the step S103, and if so, recovering the application.
The preprocessing program is an exception-processed program set by a specific application interface agency, and the specific application is different from the corresponding exception-processing program.
For example, to display weather in an application, when an application interface of the weather is detected to be abnormal, only the weather application is closed by setting a preprocessing program without closing the application interface.
The gray release refers to that an application is used for a part of users in a public way, but is not used for other users, and an application interface is restored step by step in this way. Therefore, many exceptions are often caused by large access amount, and the exception condition can be linked by adopting gray scale distribution, so that the application is gradually recovered.
In one embodiment, referring to fig. 2, the step of monitoring an application interface for anomalies includes:
s201, calculating the continuous error times of the application interface;
s202, calculating the success rate of the application interface within a time period;
s203, determining whether the application interface is abnormal according to the times and the success rate.
The number of continuous errors of the application interface refers to that errors occur in continuous data interaction, although the types of the errors are different according to different application interfaces, for example, the errors may not be opened for payment page jump.
However, it is not possible to accurately detect whether the application interface is really abnormal by the detection, for example, although the number of consecutive errors does not reach the preset threshold, the number of errors reaches more than 50% in a time period, which is obviously an abnormal condition. Therefore, the above two conditions must be combined to comprehensively determine whether the application interface is abnormal.
Specifically, determining whether the application interface is abnormal according to the number of times and the success rate may be performed by determining whether the number of times and the success rate exceed a preset threshold, and determining that any condition exceeds the threshold is abnormal.
Second embodiment
According to the device plane of the present invention
Referring to fig. 3, a three-party interface anomaly monitoring apparatus 3 is provided, which includes: the anomaly detection module 31 is used for keeping anomaly monitoring on an application interface; the preprocessing module 32 is configured to read a preprocessing program to process the exception when the application interface is monitored to be the exception; a first pre-recovery detecting module 33, configured to, after the processing is completed, detect for the first time whether the application interface is normal: if yes, reading preset configuration information for gray scale release, and switching to a second pre-recovery detection module 34 for processing; if not, switching to the preprocessing module for processing; the second pre-recovery detecting module 34 is configured to detect whether the application interface is normal for the second time, if not, return to the first pre-recovery detecting module 33 for processing, and if so, recover the application.
In one embodiment, referring to fig. 4, the anomaly detection module 31 includes: a first calculating unit 311, configured to calculate the number of consecutive errors of the application interface; a second calculating unit 312, configured to calculate a success rate of the application interface within a time period; an exception determining unit 313, configured to determine whether the application interface is abnormal according to the number of times and the success rate.
It should be noted that, the method provided by the first embodiment may be implemented by a computer program, so that the embodiment provides an apparatus, and since the principle of the apparatus for solving the problem is similar to that of the method, the implementation process and the implementation principle of the apparatus can be described by referring to the implementation process and the implementation principle of the method, and repeated details are not repeated.
Third embodiment
According to the invention, the equipment plane is described
Referring to fig. 5, this embodiment provides an application server 5 including the three-party interface abnormality monitoring apparatus 3 in the second embodiment. The application server can monitor the three-party interface, can realize the automatic recovery function before maintenance by maintenance personnel to a certain extent when abnormity occurs, and is more stable and reliable due to the adoption of gray release in the recovery process, so that the possibility of secondary hanging is avoided.
In conclusion, the method and the device have the advantages that the automatic processing is performed aiming at the abnormal condition of the three-party interface, and compared with the prior art that a common alarm is adopted during the abnormal condition, the effect is better, and no monitoring or preventing effect is achieved if no measure is taken for the alarm; in addition, the invention can adopt an automatic mode aiming at the recovery of the three-party interface, and gradually recover by adopting gray release, so that the recovery process is more reliable.
Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.
Claims (1)
1. An application server, comprising a three-party interface anomaly monitoring device, wherein the three-party interface anomaly monitoring device comprises: the anomaly detection module is used for keeping anomaly monitoring on an application interface; the preprocessing module is used for reading a preprocessing program to process the abnormity when the application interface is monitored to be abnormal; the first pre-recovery detection module is used for detecting whether the application interface is normal for the first time after the processing is finished: if yes, reading preset configuration information for gray scale release, and switching to a second pre-recovery detection module for processing; if not, switching to the preprocessing module for processing; the second pre-recovery detection module is used for detecting whether the application interface is normal for the second time, if not, returning to the first pre-recovery detection module for processing, and if so, recovering the application and gradually recovering by adopting gray release; the abnormality detection module includes: the first calculating unit is used for calculating the continuous error times of the application interface; the second calculation unit is used for calculating the success rate of the application interface within a time period; and the abnormity judging unit is used for determining whether the application interface is abnormal or not according to the times and the success rate.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611254989.4A CN106533812B (en) | 2016-12-30 | 2016-12-30 | Application server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611254989.4A CN106533812B (en) | 2016-12-30 | 2016-12-30 | Application server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106533812A CN106533812A (en) | 2017-03-22 |
CN106533812B true CN106533812B (en) | 2020-01-14 |
Family
ID=58335912
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611254989.4A Active CN106533812B (en) | 2016-12-30 | 2016-12-30 | Application server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106533812B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110704276A (en) * | 2019-09-19 | 2020-01-17 | 爱钱进(北京)信息科技有限公司 | APP exception handling method and device and storage medium |
CN110737548B (en) * | 2019-10-28 | 2022-06-10 | 聚好看科技股份有限公司 | Data request method and server |
CN112559248A (en) * | 2020-12-23 | 2021-03-26 | 深圳市彬讯科技有限公司 | Preprocessing service recovery method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452417A (en) * | 2007-12-07 | 2009-06-10 | 纬创资通股份有限公司 | Monitor method and monitor device thereof |
CN103176790A (en) * | 2011-12-26 | 2013-06-26 | 阿里巴巴集团控股有限公司 | Application releasing method and application releasing system |
CN105677466A (en) * | 2015-12-31 | 2016-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for degrading handling of third-party application interface |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9189308B2 (en) * | 2010-12-27 | 2015-11-17 | Microsoft Technology Licensing, Llc | Predicting, diagnosing, and recovering from application failures based on resource access patterns |
-
2016
- 2016-12-30 CN CN201611254989.4A patent/CN106533812B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101452417A (en) * | 2007-12-07 | 2009-06-10 | 纬创资通股份有限公司 | Monitor method and monitor device thereof |
CN103176790A (en) * | 2011-12-26 | 2013-06-26 | 阿里巴巴集团控股有限公司 | Application releasing method and application releasing system |
CN105677466A (en) * | 2015-12-31 | 2016-06-15 | 百度在线网络技术(北京)有限公司 | Method and device for degrading handling of third-party application interface |
Also Published As
Publication number | Publication date |
---|---|
CN106533812A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108055281B (en) | Account abnormity detection method, device, server and storage medium | |
CN112436968B (en) | Network traffic monitoring method, device, equipment and storage medium | |
US20130276124A1 (en) | Systems, methods, apparatuses and computer program products for providing mobile device protection | |
US9817742B2 (en) | Detecting hardware and software problems in remote systems | |
US20200092180A1 (en) | Methods and systems for microservices observability automation | |
CN105404581B (en) | A kind of evaluating method and device of database | |
JP2021121956A (en) | Failure prediction method, device, electronic facility, storage media and program | |
CN106533812B (en) | Application server | |
EP3377976A1 (en) | Anomaly detection in multiple correlated sensors | |
WO2019000963A1 (en) | Pre-inspection method for service system, server, and computer readable storage medium | |
US9719881B2 (en) | Scalable framework for managing civil structure monitoring devices | |
CN114461534A (en) | Software performance testing method and system, electronic equipment and readable storage medium | |
US9158614B2 (en) | Service management device, display method, and information storage medium | |
CN116389148B (en) | Network security situation prediction system based on artificial intelligence | |
JP2018205992A (en) | Apparatus diagnosing system | |
CN111124818A (en) | Monitoring method, device and equipment for Expander | |
CN108959415B (en) | Abnormal dimension positioning method and device and electronic equipment | |
JP2014153736A (en) | Fault symptom detection method, program and device | |
US10269076B1 (en) | Electronic device utilizing a risk reduction mechanism to manage property | |
JP5613570B2 (en) | Batch job delay warning automatic alert system, automatic alert method, and program therefor | |
US20210400361A1 (en) | Fire water network leak detection system | |
JP2018190029A (en) | Facility monitoring device | |
CN111861282A (en) | Method and device for evaluating environmental assessment results and computer-readable storage medium | |
CN114676012A (en) | Service link monitoring method and device, electronic equipment and storage medium | |
CN103593290A (en) | Method and device for testing software stability |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |