CN107992415A - The fault location and analysis method and associated server of a kind of transaction system - Google Patents
The fault location and analysis method and associated server of a kind of transaction system Download PDFInfo
- Publication number
- CN107992415A CN107992415A CN201711217381.9A CN201711217381A CN107992415A CN 107992415 A CN107992415 A CN 107992415A CN 201711217381 A CN201711217381 A CN 201711217381A CN 107992415 A CN107992415 A CN 107992415A
- Authority
- CN
- China
- Prior art keywords
- transaction
- application server
- process data
- failed transactions
- fault location
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3636—Software debugging by tracing the execution of the program
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Finance (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Technology Law (AREA)
- General Business, Economics & Management (AREA)
- Debugging And Monitoring (AREA)
Abstract
The embodiment of the present invention provides a kind of fault location and analysis method and associated server of transaction system, fault location server obtains the mark of failed transactions, the chain transaction of failed transactions is determined according to the mark of failed transactions, chain transaction is determined according to the process data of processing transaction, and process data includes at least application server identifier, the mark of transaction, processing time.Then the failure application server of failed transactions is determined according to the chain transaction of failed transactions.Due to the application server process data that acquisition process is merchandised when handling transaction and process data is sent to fault location server.Fault location server determines the chain transaction of transaction according to the process data of processing transaction, therefore when there is Fail Transaction, the chain transaction of failed transactions can be determined according to the mark of failed transactions, failure application server is further determined according to chain transaction, failed host is determined without logging in inquiry log on each host, so as to improve the efficiency of failed transactions analysis.
Description
Technical field
The present embodiments relate to system performance monitoring field, more particularly to a kind of fault location of transaction system and analysis
Method and associated server.
Background technology
Existing transaction system is distributed system, and the host in distributed system has hundreds of thousands of, works as transaction system
Which which when processing is merchandised, break down if there is a transaction, it is difficult to confirm the transaction mistake for being system or host initiation
Lose.The reason in order to track transaction failure, the side that daily record is analyzed on all possible host using logging in the prior art
Method, even needs to log in the host analysis daily record of different distributions formula system, the position broken down is determined, so as to cause to lose sometimes
The efficiency for losing transaction analysis is very low.
The content of the invention
The embodiment of the present invention provides a kind of fault location and analysis method and associated server of transaction system, for solving
In the prior art the problem of method efficiency of Fail Transaction position is low is determined by logging in All hosts.
An embodiment of the present invention provides the fault location and analysis method of a kind of transaction system, including:
Fault location server obtains the mark of failed transactions;
The fault location server determines the chain transaction of the failed transactions according to the mark of the failed transactions, described
Chain transaction is determined according to the process data of processing transaction, and the process data includes at least application server identifier, transaction
Mark, processing time;
The fault location server determines the failure application of the failed transactions according to the chain transaction of the failed transactions
Server.
Alternatively, the fault location server determines the transaction of the failed transactions according to the mark of the failed transactions
Chain, including:
The fault location server indexes out the processing failure according to the mark of the failed transactions from memory block
The process data of transaction, the process data for the processing transaction that each application server is sent is saved in the memory block;
The fault location server is by the application server identifier in the process data of the failed transactions according to processing
After time is ranked up, the chain transaction of the failed transactions is determined;
The fault location server determines the failure application of the failed transactions according to the chain transaction of the failed transactions
Server, including:
Application server mark of the fault location server by processing time in the chain transaction of the failed transactions the latest
Know the failure application server that corresponding application server is determined as the failed transactions.
Alternatively, the fault location server determines the transaction of the failed transactions according to the mark of the failed transactions
Chain, including:
The fault location server indexes out the failed transactions according to the mark of the failed transactions from memory block
Chain transaction, save the corresponding chain transactions of transaction of each application server processes in the memory block, the chain transaction be by
According to the application server identifier of processing time sequence;
The fault location server determines the failure application of the failed transactions according to the chain transaction of the failed transactions
Server, including:
Application server mark of the fault location server by processing time in the chain transaction of the failed transactions the latest
Know the failure application server that corresponding application server is determined as the failed transactions.
Alternatively, the process data further includes business module mark, and the chain transaction is according to processing time sequence
Business module identifies;
The fault location server determines the failure application of the failed transactions according to the chain transaction of the failed transactions
Server, including:
The fault location server determines the failure application of the failed transactions according to the chain transaction of the failed transactions
Server and failure business module.
Alternatively, further include:
The process data further includes handling result;
For any one application server, the fault location server is according to the application service of the application server
Device mark determines that the application server handles the process data of transaction in predetermined period;According to being handled in the predetermined period
The process data of transaction, determines the processing speed and processing success rate of the application server;
Or
For any one business module, the fault location server is identified according to the business module of the business module
Determine that the business module handles the process data of transaction in predetermined period;According to the mistake that transaction is handled in the predetermined period
Number of passes evidence, determines the processing speed and processing success rate of the business module.
The embodiment of the present invention additionally provides the fault location and analysis method of a kind of transaction system, including:
Application server obtains the transaction for carrying mark, and the mark of the transaction is the portal server root by transaction system
Determined according to the transaction message of the transaction;
The application server transaction is handled and acquisition process described in the process data merchandised, the process
Data include at least application server identifier, the mark of transaction and processing time;
The application server sends the process data of collection to fault location server.
Alternatively, the process data further includes business module mark and handling result;
The application server transaction is handled and acquisition process described in the process data merchandised, including:
The application server is handled the transaction by each business module;
For any one business module, the application server gathers the process that the business module handles the transaction
Data;
The application server sends the process data of collection to fault location server, including:
The application server, which sends the process data of each business module processing transaction of collection to failure, to be determined
Position server.
Correspondingly, an embodiment of the present invention provides a kind of fault location server, including:
First acquisition module, for obtaining the mark of failed transactions;
First processing module, it is described for determining the chain transaction of the failed transactions according to the mark of the failed transactions
Chain transaction is determined according to the process data of processing transaction, and the process data includes at least application server identifier, transaction
Mark, processing time;The failure application server of the failed transactions is determined according to the chain transaction of the failed transactions.
Alternatively, the first processing module is specifically used for:
The process data for handling the failed transactions is indexed out from memory block according to the mark of the failed transactions, it is described
The process data for the processing transaction that each application server is sent is saved in memory block;
After application server identifier in the process data of the failed transactions is ranked up according to processing time, determine
The chain transaction of the failed transactions;
The first processing module is specifically used for:
By the corresponding application server of the application server identifier of processing time the latest in the chain transaction of the failed transactions
It is determined as the failure application server of the failed transactions.
Alternatively, the first processing module is specifically used for:
The chain transaction of the failed transactions, the memory block are indexed out from memory block according to the mark of the failed transactions
In save the corresponding chain transactions of transaction of each application server processes, the chain transaction is the application sorted according to processing time
Server identification;
The first processing module is specifically used for:
By the corresponding application server of the application server identifier of processing time the latest in the chain transaction of the failed transactions
It is determined as the failure application server of the failed transactions.
Alternatively, the process data further includes business module mark, and the chain transaction is according to processing time sequence
Business module identifies;
The first processing module is specifically used for:
The failure application server and failure business mould of the failed transactions are determined according to the chain transaction of the failed transactions
Block.
Alternatively, the first processing module is additionally operable to:
The process data further includes handling result;
For any one application server, the application is determined according to the application server identifier of the application server
Server handles the process data of transaction in predetermined period;According to the process data that transaction is handled in the predetermined period, really
The processing speed and processing success rate of the fixed application server;
Or
For any one business module, identified according to the business module of the business module and determine that the business module exists
The process data of processing transaction in predetermined period;According to the process data that transaction is handled in the predetermined period, the business is determined
The processing speed and processing success rate of module.
The embodiment of the present invention additionally provides a kind of application server, including:
Second acquisition module, the transaction of mark is carried for obtaining, the mark of the transaction is the entrance by transaction system
Server is determined according to the transaction message of the transaction;
Second processing module, for the transaction is handled and acquisition process described in the process data merchandised, it is described
Process data includes at least application server identifier, the mark of transaction and processing time;The process data of collection is sent to event
Hinder location-server.
Alternatively, the process data further includes business module mark and handling result;
The Second processing module is specifically used for:
The transaction is handled by each business module;For any one business module, the business is gathered
The process data merchandised described in resume module;
The Second processing module is specifically used for:
The process data that each business module of collection is handled to the transaction is sent to fault location server.
An embodiment of the present invention provides a kind of computing device, including:
Memory, instructs for storage program;
Processor, for calling the programmed instruction stored in the memory, performs any of the above-described according to the program of acquisition
Method described in.
An embodiment of the present invention provides a kind of computer-readable storage medium, the computer-readable recording medium storage has calculating
Machine executable instruction, the computer executable instructions are used to make computer perform the method described in any of the above-described.
The embodiment of the present invention shows that fault location server obtains the mark of failed transactions;According to the failed transactions
Mark determines the chain transaction of the failed transactions, and the chain transaction is determined according to the process data of processing transaction, the mistake
Number of passes is according to including at least application server identifier, the mark of transaction, processing time;Fault location server is unsuccessfully handed over according to described
Easy chain transaction determines the failure application server of the failed transactions.Due to application server handle merchandise when acquisition process
The process data of transaction, and process data is sent to fault location server, process data and includes at least application server mark
Knowledge, the mark of transaction, processing time.Fault location server determines the chain transaction of transaction according to the process data of processing transaction,
Therefore when there is Fail Transaction, fault location server can determine the chain transaction of failed transactions according to the mark of failed transactions, into
One step determines failure application server according to the chain transaction of failed transactions, is determined without logging in inquiry log on each host
Failed host, so as to improve the efficiency of failed transactions analysis.
Brief description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this
For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is a kind of system architecture schematic diagram that the embodiment of the present invention is applicable in;
Fig. 2 is a kind of fault location of transaction system provided in an embodiment of the present invention and the flow diagram of analysis method;
Fig. 3 is a kind of flow diagram of the method for application server gatherer process data provided in an embodiment of the present invention;
Fig. 4 is a kind of structure diagram of fault location server provided in an embodiment of the present invention;
Fig. 5 is a kind of structure diagram of application server provided in an embodiment of the present invention.
Embodiment
In order to which the purpose of the present invention, technical solution and beneficial effect is more clearly understood, below in conjunction with attached drawing and implementation
Example, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only explaining this hair
It is bright, it is not intended to limit the present invention.
Fig. 1 illustrates a kind of system architecture schematic diagram that the embodiment of the present invention is applicable in, as shown in Figure 1, of the invention
The system architecture that embodiment is applicable in includes fault location server 101 and application server 102.101 He of fault location server
Application server 102 is connected by wired or wireless mode.The application being connected in specific implementation with fault location server 101
Server is one or more.The multiple application servers being connected with fault location server 101 may belong to a distribution
System, can also belong to different distributed systems.Each application server includes one or more business modules.
Based on the system architecture shown in Fig. 1, as shown in Fig. 2, an embodiment of the present invention provides a kind of failure of transaction system
Positioning and analysis method, comprise the following steps:
Step S201, fault location server obtain the mark of failed transactions.
Step S202, fault location server determine the chain transaction of failed transactions, chain transaction according to the mark of failed transactions
It is to be determined according to the process data of processing transaction.
Step S203, fault location server determine the failure application service of failed transactions according to the chain transaction of failed transactions
Device.
Specifically, in step s 201, the instruction that fault location server can be inputted by receiving operation maintenance personnel, which obtains, loses
Lose the mark of transaction.
In step S202, process data is to be gathered and sent to fault location by application server to take when handling and merchandising
Business device, process data include at least application server identifier, the mark of transaction, processing time.Fault location server is according to mistake
The method of the chain transaction of the definite failed transactions of mark of transaction is lost including at least following two:
Method one, fault location server index out processing failure transaction according to the mark of failed transactions from memory block
Process data, the process data for the processing transaction that each application server is sent is saved in memory block.Then by failed transactions
After application server identifier in process data is ranked up according to processing time, the chain transaction of failed transactions is determined.Specifically
Sort method can or processing time more early more forward with processing time it is more late more forward.
After method two, fault location server receive the process data for the processing transaction that application server is sent, for
Any one transaction, the process data for handling the transaction, memory block are indexed out according to the transaction ID of the transaction from memory block
In save the process data of the processing transaction that each application server is sent.Then the application in the process data of the transaction is taken
After business device mark is ranked up according to processing time, the chain transaction of the transaction is determined.By the chain transaction for the All Activity determined
It is corresponding with the mark of transaction to be stored in memory block.Fault location server is after the mark of failed transactions is obtained, according to mistake
The mark for losing transaction indexes out the chain transaction of failed transactions from memory block.
In step S203, fault location server can be by the application of processing time the latest in the chain transaction of failed transactions
The corresponding application server of server identification is determined as the failure application server of failed transactions.Due to fault location server root
The chain transaction of transaction is determined according to the process data of processing transaction, therefore when there is Fail Transaction, fault location server can basis
The chain transaction of the quick definite failed transactions of mark of failed transactions, further determines failure application server according to chain transaction, and
Inquiry log on each host need not be logged in and determine failed host, so as to improve the efficiency of failed transactions analysis.
Further, process data further includes business module mark, therefore chain transaction can also be to sort according to processing time
Business module mark.Fault location server can determine failure application server and event at the same time according to the chain transaction of failed transactions
Hinder business module, specifically include following two methods:
Method one, fault location server index out processing failure transaction according to the mark of failed transactions from memory block
Process data, the process data for the processing transaction that each application server is sent is saved in memory block.Then by failed transactions
After business module mark in process data is ranked up according to processing time, the chain transaction of failed transactions is determined.Then will lose
Lose the business module of processing time the latest in the chain transaction of transaction and identify the failure that corresponding business module is determined as failed transactions
Business module, is determined as failure application server by the application server belonging to failure business module.
After method two, fault location server receive the process data for the processing transaction that application server is sent, for
Any one transaction, indexes out the process data for handling the transaction from memory block according to the mark of the transaction, is protected in memory block
The process data for the processing transaction that each application server is sent is deposited.Then by the business module mark in the process data of the transaction
After knowledge is ranked up according to processing time, the chain transaction of the transaction is determined.By the chain transaction for the All Activity determined and transaction
Mark correspond to be stored in memory block.Fault location server is after the mark of failed transactions is obtained, according to failed transactions
Mark the chain transactions of failed transactions is indexed out from memory block.Then by processing time in the chain transaction of failed transactions the latest
Business module identifies the failure business module that corresponding business module is determined as failed transactions, by answering belonging to failure business module
It is determined as failure application server with server.
Since fault location server is according to definite chain transaction after the business module mark sequence included in process data, therefore
When there is Fail Transaction, according to the definite chain transaction of the mark of failed transactions, can be not only used for determining that handling this unsuccessfully hands over
Easy failure application server, can also determine failure business module, so as to more accurately determine the position of Fail Transaction, into
One step improves the treatment effeciency of failed transactions.
Alternatively, process data further includes handling result.Fault location server can according to the process data of processing transaction
The performance of each application server and business module is further assessed, is carried out separately below for application server and business module
Introduce.
For any one application server, fault location server is true according to the application server identifier of application server
Determine the process data that application server handles transaction in predetermined period.Fault location server is handed over according to application server processes
Processing time in easy process data determines processing speed of the application server in predetermined period.Fault location server root
Application server being processed into predetermined period is determined according to the handling result in the process data of application server processes transaction
Power.Processing speed of the application server in predetermined period is shown by fault location server with processing success rate.Therefore
Hinder location-server and be less than the first predetermined threshold value or application clothes in processing speed of the definite application server in predetermined period
When the success rate that processing of the device in predetermined period is merchandised of being engaged in is less than second threshold, starts alarm and simultaneously carried with default alerting pattern
Awake operation maintenance personnel.It should be noted that when assessing the performance of application server, if sample rate is not arranged to 100%, that is, hand over
Part transaction of the portal server of easy system only to receive generates the corresponding mark of the transaction, then needs to gather and count at the same time to take
The transaction of tape identification and the no process data of the transaction of carrying mark are used for the performance for assessing application server.
For any one business module, fault location server identifies the business of determining according to the business module of business module
Module handles the process data of transaction in predetermined period.Fault location server crosses number of passes according to business module processing transaction
Processing time in determines processing speed of the business module in predetermined period.Fault location server according to business module at
The handling result managed in the process data of transaction determines processing success rate of the business module in predetermined period.Fault location service
Processing speed of the business module in predetermined period is shown by device with processing success rate.Fault location server is in definite industry
Processing speed of the module of being engaged in predetermined period is less than the processing of the 3rd predetermined threshold value or business module in predetermined period and hands over
When easy success rate is less than four threshold values, starts alarm and operation maintenance personnel is reminded with default alerting pattern.It should be noted that
When assessing the performance of business module, if sample rate is not arranged to 100%, i.e. the portal server of transaction system is only reception
Part transaction generate the corresponding mark of the transaction, then need to gather and count the transaction for carrying mark at the same time and do not carry mark
The process data of transaction is used for the performance for assessing application services module.Fault location server is real-time according to the process data of acquisition
The operating status of each application server and business module is monitored, thus it is abnormal in the operating status of application server or business module
And cause whole system operational efficiency reduce when, can fast positioning go out abnormal application server or business module, so as to carry
The O&M efficiency of high system.
Alternatively, in specific implementation, process data is to be gathered by application server and sent to failure when handling and merchandising
Location-server, the method that lower mask body introduces application server gatherer process data, detailed process as shown in figure 3, including with
Lower step:
Step S301, application server obtain the transaction for carrying mark, and the mark of transaction is oral by entering for transaction system
Business device is determined according to the transaction message of transaction.
Step S302, transaction handle application server and the process data of acquisition process transaction, and process data is extremely
Include application server identifier, mark, processing time and the handling result of transaction less.
Step S303, application server send the process data of collection to fault location server.
Specifically, in step S301, the portal server of transaction system generates the transaction according to the transaction message of transaction
Mark, each transaction mark with other transaction marks it is different, and transaction mark transaction message will be followed to pass through
The business module of each application server and each application server.In specific implementation, the portal server of transaction system
It can be that each transaction generates corresponding mark, for example reach the standard grade soon in transaction system, it is general due to being exactly at this time problem appearance
Rate bigger period, therefore sample rate can be configured to 100%, i.e., the portal server of transaction system is each received
Transaction generates the corresponding mark of the transaction.The portal server of transaction system can also be the part transaction life in the transaction received
Consider to handle every transaction and generate corresponding transaction after system stable operation into corresponding mark, such as transaction
Amount application server and the performance of fault location server have an impact, it may be considered that turn down sample rate, i.e. transaction system enters
Mouth server generates the corresponding mark of the transaction for the part transaction received.
In step S302 and step S303, the processing time in process data includes the start to process time and end is handled
Time.Before application server gatherer process data, collection point is set in the entrance and exit of application server.Application server
During to trading processing, time that acquisition applications server start to process is merchandised in pre-set collection point, using clothes
Business device terminates time and the handling result of processing, if the mark that the transaction of processing carries, application server gather at the same time
The mark of the transaction.Application server, which sends the data and application server identifier of collection to failure as process data, to be determined
Position server.
Further, process data further includes business module mark, and application server can also be each in acquisition applications server
The process data of a business module processing transaction.Specially:In the entrance and exit of each business module, collection point, business are set
For module during transaction is handled, the start to process time of the acquisition process transaction, terminate processing time, handling result, if
The mark that the transaction carries, then application server gather the mark of the transaction at the same time.Then by the data and business of collection
The mark of module id and the affiliated application server of business module is sent to fault location server as process data.In addition,
Multiple sampled points can also be set in a business module, gather the process data of each operation in a business module, than
As database manipulation, cryptographic operation and network operation may be carried out in a business module, then can set respectively above-mentioned
The sampled point of three operations, gathers process data, the mistake of cryptographic operation of business module database manipulation when handling transaction
Number of passes according to this and network operation process data.Due to the addition of unique mark for transaction, then according to pre-set sampling
Each business module handles the process data of the transaction in point acquisition applications server and application server, then by process data
Send to fault location server.Therefore when Fail Transaction occurs, fault location server is according to the unique mark energy rope of transaction
The process data of processing failure transaction is drawn, is further able to determine the abort situation of failed transactions, so as to facilitate operation maintenance personnel
Failed transactions are positioned and are handled.
In order to preferably explain the embodiment of the present invention, describe the embodiment of the present invention below by specific implement scene and provide
A kind of fault location of transaction system and the flow of analysis method.It is the friendship to set after portal server I receives a transaction
Easily add and identify M, application server A, the application server B in transaction system are successively handled the transaction, wherein should
The transaction is handled with business module a1 in server A, b2 pairs of business module b1 and business module in application server B
The transaction is handled.The process data that gathers is when business module a1 handles transaction M in application server A:Hand over
Easy M, server A, business module a1, processing time 8:00-8:01st, handling result is successfully.Business mould in application server B
The process data that gathers is when block b1 handles transaction M:Merchandise M, server B, business module b1, processing time 8:
01-8:02nd, handling result is successfully.The process data gathered when business module b2 handles transaction M in application server B
For:Merchandise M, server B, business module b2, processing time 8:02-8:03rd, handling result is failure.Application server A, answer
The process data of collection is sent to fault location server respectively with server B.Fault location server is receiving application clothes
It is engaged in after the process data that device is sent, obtains the corresponding process datas of transaction M, then the processing time in process data is first
The chain transaction of definite transaction M is after being ranked up afterwards to business module mark:Portal server I-business module a1-business
Module b1-business module b2.Fault location server preserves the chain transaction for the M that merchandises to memory block.When operation maintenance personnel knows friendship
During easy M Fail Transactions, chain transaction is retrieved from the memory block of fault location server according to transaction ID M:Portal server
I-business module a1-business module b1-business module b2.It is last in the chain transaction for the M that merchandises according to the structure of inquiry
One module is not output port server, then can determine that the failure business module that business module b2 is transaction M.Due to business module
B2 belongs to application server B, then application server B further can be determined as failure application server.
The embodiment of the present invention shows that fault location server obtains the mark of failed transactions;According to the failed transactions
Mark determines the chain transaction of the failed transactions, and the chain transaction is determined according to the process data of processing transaction, the mistake
Number of passes is according to including at least application server identifier, the mark of transaction, processing time;Fault location server is unsuccessfully handed over according to described
Easy chain transaction determines the failure application server of the failed transactions.Due to application server handle merchandise when acquisition process
The process data of transaction, and process data is sent to fault location server, process data and includes at least application server mark
Knowledge, the mark of transaction, processing time.Fault location server determines the chain transaction of transaction according to the process data of processing transaction,
Therefore when there is Fail Transaction, fault location server can determine the chain transaction of failed transactions according to the mark of failed transactions, into
One step determines failure application server according to the chain transaction of failed transactions, is determined without logging in inquiry log on each host
Failed host, so as to improve the efficiency of failed transactions analysis.
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of fault location server, as shown in figure 4,
Including:
First acquisition module 401, for obtaining the mark of failed transactions;
First processing module 402, for determining the chain transaction of the failed transactions, institute according to the mark of the failed transactions
Stating chain transaction is determined according to the process data of processing transaction, and the process data includes at least application server identifier, hands over
Easy mark, processing time;The failure application server of the failed transactions is determined according to the chain transaction of the failed transactions.
Alternatively, the first processing module 402 is specifically used for:
The process data for handling the failed transactions is indexed out from memory block according to the mark of the failed transactions, it is described
The process data for the processing transaction that each application server is sent is saved in memory block;
After application server identifier in the process data of the failed transactions is ranked up according to processing time, determine
The chain transaction of the failed transactions;
The first processing module 402 is specifically used for:
By the corresponding application server of the application server identifier of processing time the latest in the chain transaction of the failed transactions
It is determined as the failure application server of the failed transactions.
Alternatively, the first processing module 402 is specifically used for:
The chain transaction of the failed transactions, the memory block are indexed out from memory block according to the mark of the failed transactions
In save the corresponding chain transactions of transaction of each application server processes, the chain transaction is the application sorted according to processing time
Server identification;
The first processing module 402 is specifically used for:
By the corresponding application server of the application server identifier of processing time the latest in the chain transaction of the failed transactions
It is determined as the failure application server of the failed transactions.
Alternatively, the process data further includes business module mark, and the chain transaction is according to processing time sequence
Business module identifies;
The first processing module 402 is specifically used for:
The failure application server and failure business mould of the failed transactions are determined according to the chain transaction of the failed transactions
Block.
Alternatively, the first processing module 402 is additionally operable to:
The process data further includes handling result;
For any one application server, the application is determined according to the application server identifier of the application server
Server handles the process data of transaction in predetermined period;According to the process data that transaction is handled in the predetermined period, really
The processing speed and processing success rate of the fixed application server;
Or
For any one business module, identified according to the business module of the business module and determine that the business module exists
The process data of processing transaction in predetermined period;According to the process data that transaction is handled in the predetermined period, the business is determined
The processing speed and processing success rate of module.
Based on identical technical concept, the embodiment of the present invention additionally provides a kind of application server, as shown in figure 5, including:
Second acquisition module 501, the transaction of mark is carried for obtaining, the mark of the transaction is entering by transaction system
Mouth server is determined according to the transaction message of the transaction;
Second processing module 502, for the transaction is handled and acquisition process described in the process data merchandised, institute
Process data is stated including at least application server identifier, the mark of transaction and processing time;By the process data of collection send to
Fault location server.
Alternatively, the process data further includes business module mark and handling result;
The Second processing module 502 is specifically used for:
The transaction is handled by each business module;For any one business module, the business is gathered
The process data merchandised described in resume module;
The Second processing module 502 is specifically used for:
The process data that each business module of collection is handled to the transaction is sent to fault location server.
An embodiment of the present invention provides a kind of computing device, which is specifically as follows desktop computer, portable
Computer, smart mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) etc..The meter
Central processing unit (Center Processing Unit, CPU), memory, input-output apparatus etc. can be included by calculating equipment,
Input equipment can include keyboard, mouse, touch-screen etc., and output equipment can include display device, such as liquid crystal display
(Liquid Crystal Display, LCD), cathode-ray tube (Cathode Ray Tube, CRT) etc..
Memory, can include read-only storage (ROM) and random access memory (RAM), and provides and deposit to processor
The programmed instruction and data stored in reservoir.In embodiments of the present invention, memory can be used for the failure of store transaction system
Positioning and the programmed instruction of analysis method;
Processor, for calling the programmed instruction stored in the memory, transaction system is performed according to the program of acquisition
Fault location and analysis method.
An embodiment of the present invention provides a kind of computer-readable storage medium, the computer-readable recording medium storage has calculating
Machine executable instruction, the computer executable instructions are used for the fault location and analysis method for making the transaction system.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method or computer program product.
Therefore, the present invention can be using the embodiment in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Form.Deposited moreover, the present invention can use to can use in one or more computers for wherein including computer usable program code
The shape for the computer program product that storage media is implemented on (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or square frame in journey and/or square frame and flowchart and/or the block diagram.These computer programs can be provided
The processors of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices, which produces, to be used in fact
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided and is used for realization in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a square frame or multiple square frames.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation
Property concept, then can make these embodiments other change and modification.So appended claims be intended to be construed to include it is excellent
Select embodiment and fall into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and scope.In this way, if these modifications and changes of the present invention belongs to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these modification and variations.
Claims (16)
1. the fault location and analysis method of a kind of transaction system, it is characterised in that including:
Fault location server obtains the mark of failed transactions;
The fault location server determines the chain transaction of the failed transactions, the transaction according to the mark of the failed transactions
Chain is determined according to the process data of processing transaction, and the process data includes at least application server identifier, the mark of transaction
Know, processing time;
The fault location server determines the failure application service of the failed transactions according to the chain transaction of the failed transactions
Device.
2. the method as described in claim 1, it is characterised in that the fault location server is according to the marks of the failed transactions
Know the chain transaction for determining the failed transactions, including:
The fault location server indexes out the processing failed transactions according to the mark of the failed transactions from memory block
Process data, the process data of the processing transaction that each application server is sent is saved in the memory block;
The fault location server is by the application server identifier in the process data of the failed transactions according to processing time
After being ranked up, the chain transaction of the failed transactions is determined;
The fault location server determines the failure application service of the failed transactions according to the chain transaction of the failed transactions
Device, including:
The fault location server is by the application server identifier pair of processing time the latest in the chain transaction of the failed transactions
The application server answered is determined as the failure application server of the failed transactions.
3. the method as described in claim 1, it is characterised in that the fault location server is according to the marks of the failed transactions
Know the chain transaction for determining the failed transactions, including:
The fault location server indexes out the friendship of the failed transactions according to the mark of the failed transactions from memory block
Easy chain, the corresponding chain transaction of transaction of each application server processes is saved in the memory block, and the chain transaction is according to place
Manage the application server identifier of time-sequencing;
The fault location server determines the failure application service of the failed transactions according to the chain transaction of the failed transactions
Device, including:
The fault location server is by the application server identifier pair of processing time the latest in the chain transaction of the failed transactions
The application server answered is determined as the failure application server of the failed transactions.
4. the method as described in claim 1, it is characterised in that the process data further includes business module mark, the friendship
Easy chain is to be identified according to the business module of processing time sequence;
The fault location server determines the failure application service of the failed transactions according to the chain transaction of the failed transactions
Device, including:
The fault location server determines the failure application service of the failed transactions according to the chain transaction of the failed transactions
Device and failure business module.
5. method as claimed in claim 4, it is characterised in that further include:
The process data further includes handling result;
For any one application server, the fault location server is according to the application server mark of the application server
Know the process data for determining that the application server handles transaction in predetermined period;Merchandise according to being handled in the predetermined period
Process data, determine the application server processing speed and processing success rate;
Or
For any one business module, the fault location server is identified according to the business module of the business module and determined
The business module handles the process data of transaction in predetermined period;Number of passes is crossed according to what processing in the predetermined period was merchandised
According to, determine it is described business module processing speed and processing success rate.
6. the fault location and analysis method of a kind of transaction system, it is characterised in that including:
Application server obtains the transaction for carrying mark, and the mark of the transaction is the portal server by transaction system according to institute
State what the transaction message of transaction determined;
The application server transaction is handled and acquisition process described in the process data merchandised, the process data
Including at least application server identifier, the mark of transaction and processing time;
The application server sends the process data of collection to fault location server.
7. method as claimed in claim 6, it is characterised in that the process data further includes business module mark and processing knot
Fruit;
The application server transaction is handled and acquisition process described in the process data merchandised, including:
The application server is handled the transaction by each business module;
For any one business module, number of passes is crossed in the application server collection business module processing transaction
According to;
The application server sends the process data of collection to fault location server, including:
The process data that each business module of collection is handled the transaction by the application server is sent to fault location clothes
Business device.
A kind of 8. fault location server, it is characterised in that including:
First acquisition module, for obtaining the mark of failed transactions;
First processing module, for determining the chain transaction of the failed transactions, the transaction according to the mark of the failed transactions
Chain is determined according to the process data of processing transaction, and the process data includes at least application server identifier, the mark of transaction
Know, processing time;The failure application server of the failed transactions is determined according to the chain transaction of the failed transactions.
9. fault location server as claimed in claim 8, it is characterised in that the first processing module is specifically used for:
The process data for handling the failed transactions, the storage are indexed out from memory block according to the mark of the failed transactions
The process data for the processing transaction that each application server is sent is saved in area;
After application server identifier in the process data of the failed transactions is ranked up according to processing time, determine described
The chain transaction of failed transactions;
The first processing module is specifically used for:
The corresponding application server of the application server identifier of processing time the latest in the chain transaction of the failed transactions is determined
For the failure application server of the failed transactions.
10. fault location server as claimed in claim 8, it is characterised in that the first processing module is specifically used for:
The chain transaction of the failed transactions is indexed out from memory block according to the mark of the failed transactions, is protected in the memory block
The corresponding chain transaction of transaction of each application server processes is deposited, the chain transaction is the application service sorted according to processing time
Device identifies;
The first processing module is specifically used for:
The corresponding application server of the application server identifier of processing time the latest in the chain transaction of the failed transactions is determined
For the failure application server of the failed transactions.
11. fault location server as claimed in claim 8, it is characterised in that
The process data further includes business module mark, and the chain transaction is the business module mark to sort according to processing time
Know;
The first processing module is specifically used for:
The failure application server and failure business module of the failed transactions are determined according to the chain transaction of the failed transactions.
12. fault location server as claimed in claim 11, it is characterised in that the first processing module is additionally operable to:
The process data further includes handling result;
For any one application server, the application service is determined according to the application server identifier of the application server
Device handles the process data of transaction in predetermined period;According to the process data that transaction is handled in the predetermined period, institute is determined
State the processing speed and processing success rate of application server;
Or
For any one business module, identified according to the business module of the business module and determine the business module default
The process data of processing transaction in cycle;According to the process data that transaction is handled in the predetermined period, the business module is determined
Processing speed and processing success rate.
A kind of 13. application server, it is characterised in that including:
Second acquisition module, the transaction of mark is carried for obtaining, the mark of the transaction is the portal service by transaction system
Device is determined according to the transaction message of the transaction;
Second processing module, for the transaction is handled and acquisition process described in the process data merchandised, the process
Data include at least application server identifier, the mark of transaction and processing time;The process data of collection is sent to failure and is determined
Position server.
14. application server as claimed in claim 13, it is characterised in that the process data further includes business module mark
And handling result;
The Second processing module is specifically used for:
The transaction is handled by each business module;For any one business module, the business module is gathered
Handle the process data of the transaction;
The Second processing module is specifically used for:
The process data that each business module of collection is handled to the transaction is sent to fault location server.
A kind of 15. computing device, it is characterised in that including:
Memory, instructs for storage program;
Processor, for calling the programmed instruction stored in the memory, according to acquisition program perform as claim 1 to
5 any one of them methods or claim 6 to 7 any one of them method.
16. a kind of computer-readable storage medium, it is characterised in that the computer-readable recording medium storage has computer can perform
Instruction, the computer executable instructions are used to make computer perform such as claim 1 to 5 any one of them method or right
It is required that 6 to 7 any one of them methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711217381.9A CN107992415B (en) | 2017-11-28 | 2017-11-28 | Fault positioning and analyzing method of transaction system and related server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711217381.9A CN107992415B (en) | 2017-11-28 | 2017-11-28 | Fault positioning and analyzing method of transaction system and related server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107992415A true CN107992415A (en) | 2018-05-04 |
CN107992415B CN107992415B (en) | 2021-04-16 |
Family
ID=62033968
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711217381.9A Active CN107992415B (en) | 2017-11-28 | 2017-11-28 | Fault positioning and analyzing method of transaction system and related server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107992415B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683562A (en) * | 2018-05-18 | 2018-10-19 | 深圳壹账通智能科技有限公司 | Abnormality detection localization method, device, computer equipment and storage medium |
CN109995585A (en) * | 2019-03-22 | 2019-07-09 | 杭州复杂美科技有限公司 | A kind of abnormality eliminating method, equipment and storage medium |
CN110223173A (en) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Trade link abnormality eliminating method and relevant device |
CN111192130A (en) * | 2019-12-11 | 2020-05-22 | 中国建设银行股份有限公司 | Method, system, device and storage medium for determining fault source in transaction monitoring |
CN111488289A (en) * | 2020-04-26 | 2020-08-04 | 支付宝实验室(新加坡)有限公司 | Fault positioning method, device and equipment |
CN111563002A (en) * | 2020-05-15 | 2020-08-21 | 中国工商银行股份有限公司 | Transaction fault processing method and device, electronic equipment and storage medium |
CN112035550A (en) * | 2020-09-01 | 2020-12-04 | 中国银行股份有限公司 | Fault positioning method and device |
CN113282465A (en) * | 2021-06-17 | 2021-08-20 | 中国建设银行股份有限公司 | Fault positioning method and device, electronic equipment and computer storage medium |
CN114170741A (en) * | 2021-12-03 | 2022-03-11 | 建信金融科技有限责任公司 | Transaction efficiency monitoring method, ATM front-end system and self-service business control and management system |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102833093A (en) * | 2012-07-04 | 2012-12-19 | 国家计算机网络与信息安全管理中心 | Network fault processing method, device and system |
US20140344630A1 (en) * | 2013-05-16 | 2014-11-20 | Fujitsu Limited | Information processing device and control device |
CN105095052A (en) * | 2014-05-22 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Fault detection method and fault detection device in SOA (Service-Oriented Architecture) environment |
CN105978723A (en) * | 2016-05-11 | 2016-09-28 | 广州唯品会信息科技有限公司 | Network information management method and device |
US20160359659A1 (en) * | 2015-06-05 | 2016-12-08 | Apple Inc. | Rapid Reconfiguration of Device Location System |
CN106681909A (en) * | 2016-12-02 | 2017-05-17 | 中国工商银行股份有限公司 | Online transaction fault locating method and device |
CN107018042A (en) * | 2017-04-13 | 2017-08-04 | 广东神马搜索科技有限公司 | Method for tracing and tracing system for online service system |
CN107181633A (en) * | 2017-07-27 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and system of long-range acquisition business diary |
-
2017
- 2017-11-28 CN CN201711217381.9A patent/CN107992415B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102833093A (en) * | 2012-07-04 | 2012-12-19 | 国家计算机网络与信息安全管理中心 | Network fault processing method, device and system |
US20140344630A1 (en) * | 2013-05-16 | 2014-11-20 | Fujitsu Limited | Information processing device and control device |
CN105095052A (en) * | 2014-05-22 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Fault detection method and fault detection device in SOA (Service-Oriented Architecture) environment |
US20160359659A1 (en) * | 2015-06-05 | 2016-12-08 | Apple Inc. | Rapid Reconfiguration of Device Location System |
CN105978723A (en) * | 2016-05-11 | 2016-09-28 | 广州唯品会信息科技有限公司 | Network information management method and device |
CN106681909A (en) * | 2016-12-02 | 2017-05-17 | 中国工商银行股份有限公司 | Online transaction fault locating method and device |
CN107018042A (en) * | 2017-04-13 | 2017-08-04 | 广东神马搜索科技有限公司 | Method for tracing and tracing system for online service system |
CN107181633A (en) * | 2017-07-27 | 2017-09-19 | 郑州云海信息技术有限公司 | A kind of method and system of long-range acquisition business diary |
Non-Patent Citations (1)
Title |
---|
左朝树等: "一种分布式并行服务器节点故障检测算法", 《电子科技大学学报》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683562B (en) * | 2018-05-18 | 2022-05-17 | 深圳壹账通智能科技有限公司 | Anomaly detection positioning method and device, computer equipment and storage medium |
CN108683562A (en) * | 2018-05-18 | 2018-10-19 | 深圳壹账通智能科技有限公司 | Abnormality detection localization method, device, computer equipment and storage medium |
CN109995585A (en) * | 2019-03-22 | 2019-07-09 | 杭州复杂美科技有限公司 | A kind of abnormality eliminating method, equipment and storage medium |
CN109995585B (en) * | 2019-03-22 | 2021-12-31 | 杭州复杂美科技有限公司 | Exception handling method, device and storage medium |
CN110223173A (en) * | 2019-05-20 | 2019-09-10 | 深圳壹账通智能科技有限公司 | Trade link abnormality eliminating method and relevant device |
WO2020233066A1 (en) * | 2019-05-20 | 2020-11-26 | 深圳壹账通智能科技有限公司 | Abnormity processing method based on data computation link, and related device |
CN111192130A (en) * | 2019-12-11 | 2020-05-22 | 中国建设银行股份有限公司 | Method, system, device and storage medium for determining fault source in transaction monitoring |
CN111192130B (en) * | 2019-12-11 | 2023-11-17 | 中国建设银行股份有限公司 | Method, system, device and storage medium for determining fault source in transaction monitoring |
CN111488289A (en) * | 2020-04-26 | 2020-08-04 | 支付宝实验室(新加坡)有限公司 | Fault positioning method, device and equipment |
CN111488289B (en) * | 2020-04-26 | 2024-01-23 | 支付宝实验室(新加坡)有限公司 | Fault positioning method, device and equipment |
CN111563002B (en) * | 2020-05-15 | 2023-07-25 | 中国工商银行股份有限公司 | Transaction fault processing method and device, electronic equipment and storage medium |
CN111563002A (en) * | 2020-05-15 | 2020-08-21 | 中国工商银行股份有限公司 | Transaction fault processing method and device, electronic equipment and storage medium |
CN112035550A (en) * | 2020-09-01 | 2020-12-04 | 中国银行股份有限公司 | Fault positioning method and device |
CN113282465A (en) * | 2021-06-17 | 2021-08-20 | 中国建设银行股份有限公司 | Fault positioning method and device, electronic equipment and computer storage medium |
CN114170741A (en) * | 2021-12-03 | 2022-03-11 | 建信金融科技有限责任公司 | Transaction efficiency monitoring method, ATM front-end system and self-service business control and management system |
CN114170741B (en) * | 2021-12-03 | 2023-11-24 | 建信金融科技有限责任公司 | Transaction efficiency monitoring method, ATM front-end system and self-service business control and management system |
Also Published As
Publication number | Publication date |
---|---|
CN107992415B (en) | 2021-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107992415A (en) | The fault location and analysis method and associated server of a kind of transaction system | |
US10776196B2 (en) | Systems and methods for anomaly detection in a distributed computing system | |
CN107506451A (en) | abnormal information monitoring method and device for data interaction | |
US20060098647A1 (en) | Monitoring and reporting enterprise data using a message-based data exchange | |
CN113342564A (en) | Log auditing method and device, electronic equipment and medium | |
CN110428325A (en) | Transaction tracking and device | |
KR102476126B1 (en) | Network traffic preparation system for high-speed analysis | |
CN107943626A (en) | The performance test methods and associated server of a kind of transaction system | |
CN107517203A (en) | A kind of user behavior baseline method for building up and device | |
CN109727028A (en) | Payment channel stability control method, device, computer equipment and storage medium | |
CN106844170A (en) | A kind of troubleshooting, the influence face method and apparatus of analysis failure | |
CN107864187A (en) | The online task executing method of terminal device and server | |
CN111813645B (en) | Decision diagram-based online index anomaly detection method | |
CN110427387A (en) | A kind of data consistency detection and device | |
CN109359034A (en) | A kind of operation system test method, computer readable storage medium and terminal device | |
CN116645082A (en) | System inspection method, device, equipment and storage medium | |
CN108989116B (en) | Big data collection and analysis system and method | |
CN116628061A (en) | Multi-source heterogeneous data acquisition method, device, equipment and storage medium | |
CN108199979A (en) | Flow processing method and device | |
CN108632054A (en) | The prediction technique and device of information propagation amount | |
CN113986710A (en) | Big data platform monitoring method and device | |
CN113609202A (en) | Data processing method and device | |
CN113191871B (en) | Intelligent credit transaction performance monitoring method and system | |
CN117880055B (en) | Network fault diagnosis method, device, equipment and medium based on transmission layer index | |
CN111770095B (en) | Detection 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |