CN117439913A - Transaction service monitoring method, device and computer equipment - Google Patents

Transaction service monitoring method, device and computer equipment Download PDF

Info

Publication number
CN117439913A
CN117439913A CN202310922495.2A CN202310922495A CN117439913A CN 117439913 A CN117439913 A CN 117439913A CN 202310922495 A CN202310922495 A CN 202310922495A CN 117439913 A CN117439913 A CN 117439913A
Authority
CN
China
Prior art keywords
interface
response time
transaction
transaction service
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310922495.2A
Other languages
Chinese (zh)
Inventor
孟凡亮
李元华
张彦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310922495.2A priority Critical patent/CN117439913A/en
Publication of CN117439913A publication Critical patent/CN117439913A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application relates to a transaction service monitoring method, a device, computer equipment and a storage medium, relates to the distributed technical field, and can be used in the financial science and technology field, the software testing technical field or other related fields. The method comprises the following steps: acquiring transaction duration information of each transaction of the distributed transaction system in a test environment, and acquiring network delay information of the test environment; based on the network delay information and the transaction duration information, determining response duration of interfaces in the distributed transaction system for each transaction service; determining a response time interval of the interface in the test environment according to the response time corresponding to each transaction service; determining a target response time threshold of the interface in the production environment based on the response time interval and an initial response time threshold of the interface in the production environment; and monitoring transaction services provided by the interface in the production environment according to the target response time threshold. By adopting the method, the operation reliability of the distributed transaction system can be improved.

Description

Transaction service monitoring method, device and computer equipment
Technical Field
The present application relates to the field of distributed technology, and in particular, to a transaction service monitoring method, apparatus, computer device, storage medium, and computer program product.
Background
In recent years, distributed systems have been rapidly popularized by virtue of their distribution, autonomy, parallelism, expansibility, and ease of development, and for example, in the financial field, institutions such as banks often use distributed transaction systems to provide transaction services to users. In order to enhance the user experience, it is often necessary to set a response time threshold for each interface in the distributed transaction system.
In the related art, when determining a threshold value of a response time period of each interface in a distributed transaction system in a production environment, the response time period is generally determined based on a maximum response time period of each interface in a test environment. However, the configuration of the test environment is typically lower relative to the production environment, and thus the maximum response time in the test environment typically exceeds the actual configuration requirements of the production environment. That is, based on the response time threshold value in the production environment determined by the related technology, the problem that the response time of each interface in the production environment is too long, so that the transaction service is too slow and even the transaction service is lost is easily covered, so that the operation reliability of the distributed transaction system is lower.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a transaction service monitoring method, apparatus, computer device, computer readable storage medium, and computer program product that can improve the operational reliability of a distributed transaction system.
In a first aspect, the present application provides a transaction service monitoring method. The method comprises the following steps:
acquiring transaction duration information of each transaction of a distributed transaction system in a test environment, and acquiring network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface;
determining response time length of the interface for each transaction service provided by the interface based on the network time delay information and the transaction time length information;
determining a response time interval of the interface in the test environment according to the response time corresponding to each transaction service;
verifying an initial response time length threshold value of the interface in a production environment corresponding to the test environment based on the response time length interval, and determining a target response time length threshold value of the interface in the production environment according to a verification result;
And monitoring transaction services provided by the interface in the production environment according to the target response time threshold.
In one embodiment, the determining, based on the network delay information and the transaction duration information, a response duration of the interface for each transaction service provided by the interface includes:
determining a first time variation between transaction duration information corresponding to the transaction service and the network delay information aiming at each transaction service provided by the interface;
and determining the first time variation as the response time length of the interface for the transaction service.
In one embodiment, the determining, according to the response time periods corresponding to the transaction services, a response time period interval of the interface in the test environment includes:
determining the average response time length of the response time length corresponding to each transaction service;
and determining a response time confidence interval of the interface according to the average response time and the number of transaction services provided by the interface, and taking the response time confidence interval as the response time interval of the interface in the test environment.
In one embodiment, the verifying, based on the response time interval, an initial response time threshold of the interface in a production environment corresponding to the test environment, and determining, according to a verification result, a target response time threshold of the interface in the production environment includes:
Determining a response time upper limit value of the response time interval;
determining the upper limit value of the response time length as a target response time length threshold value of the interface in the production environment under the condition that the upper limit value of the response time length is larger than the initial response time length threshold value;
and under the condition that the upper limit value of the response time length is smaller than or equal to the initial response time length threshold value, determining the initial response time length threshold value as a target response time length threshold value of the interface in the production environment.
In one embodiment, the acquiring transaction duration information of each transaction of the distributed transaction system in the test environment includes:
recording a first point in time when a transaction service request for each transaction service is sent to the interface in the test environment;
recording a second time point when a transaction service result returned by the interface for each transaction service is received;
for each transaction service, determining a second time variation between a first time point and a second time point corresponding to the transaction service, and determining the second time variation as transaction duration information of the distributed transaction system corresponding to the transaction service in the test environment.
In one embodiment, the acquiring the network delay information of the test environment includes:
recording a third time point for sending each network delay test request to a target interface in the test environment; the target interface is any one of the interfaces of the distributed transaction system;
recording a fourth time point of receiving a network delay test result returned by the target interface in response to each network delay test request;
for each network delay test request, determining a third time variation between a third time point and a fourth time point corresponding to the network delay test request, and taking the third time variation as a group of transmission delays of the test environment;
and determining the average transmission delay of a plurality of groups of transmission delays, and determining the average transmission delay as network delay information of the test environment.
In one embodiment, the monitoring the interface in the production environment according to the target response time threshold includes:
under the condition that the interface is monitored to provide transaction service in the production environment, confirming production response time when the interface provides the transaction service;
And under the condition that the production response time length is larger than a target response time length threshold corresponding to the interface, confirming that the interface is overtime, and generating overtime early warning information of the interface.
In a second aspect, the present application also provides a transaction service monitoring device. The device comprises:
the test information determining module is used for acquiring the transaction duration information of each transaction of the distributed transaction system in the test environment and acquiring the network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface;
the response time length determining module is used for determining the response time length of the interface for each transaction service provided by the interface based on the network time delay information and the transaction time length information;
the response interval determining module is used for determining a response time interval of the interface in the test environment according to the response time length corresponding to each transaction service;
the time length threshold value determining module is used for verifying an initial response time length threshold value of the interface in a production environment corresponding to the test environment based on the response time length interval, and determining a target response time length threshold value of the interface in the production environment according to a verification result;
And the transaction service monitoring module is used for monitoring transaction services provided by the interface in the production environment according to the target response time threshold.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
acquiring transaction duration information of each transaction of a distributed transaction system in a test environment, and acquiring network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface;
determining response time length of the interface for each transaction service provided by the interface based on the network time delay information and the transaction time length information;
determining a response time interval of the interface in the test environment according to the response time corresponding to each transaction service;
verifying an initial response time length threshold value of the interface in a production environment corresponding to the test environment based on the response time length interval, and determining a target response time length threshold value of the interface in the production environment according to a verification result;
And monitoring transaction services provided by the interface in the production environment according to the target response time threshold.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring transaction duration information of each transaction of a distributed transaction system in a test environment, and acquiring network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface;
determining response time length of the interface for each transaction service provided by the interface based on the network time delay information and the transaction time length information;
determining a response time interval of the interface in the test environment according to the response time corresponding to each transaction service;
verifying an initial response time length threshold value of the interface in a production environment corresponding to the test environment based on the response time length interval, and determining a target response time length threshold value of the interface in the production environment according to a verification result;
And monitoring transaction services provided by the interface in the production environment according to the target response time threshold.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
acquiring transaction duration information of each transaction of a distributed transaction system in a test environment, and acquiring network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface;
determining response time length of the interface for each transaction service provided by the interface based on the network time delay information and the transaction time length information;
determining a response time interval of the interface in the test environment according to the response time corresponding to each transaction service;
verifying an initial response time length threshold value of the interface in a production environment corresponding to the test environment based on the response time length interval, and determining a target response time length threshold value of the interface in the production environment according to a verification result;
And monitoring transaction services provided by the interface in the production environment according to the target response time threshold.
The transaction service monitoring method, the device, the computer equipment, the storage medium and the computer program product firstly acquire transaction duration information of each transaction of the distributed transaction system in a test environment and acquire network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface; then, based on the network delay information and the transaction duration information, determining the response duration of the interface for each transaction service provided by the interface; then, according to the response time length corresponding to each transaction service, determining a response time length interval of the interface in the test environment; then, based on the response time interval, verifying an initial response time threshold of the interface in a production environment corresponding to the test environment, and determining a target response time threshold of the interface in the production environment according to a verification result; and finally, monitoring transaction services provided by the interface in the production environment according to the target response time threshold. In this way, through the network delay information and the transaction duration information of the test environment, the response duration interval of the interface in the test environment can be determined, further, the initial response duration threshold value in the production environment can be verified based on the response duration interval, the target response duration threshold value of the interface in the production environment is determined based on the verification result, and further, the interface providing the transaction service in the production environment is monitored based on the target response duration threshold value. The transaction service monitoring method based on the process can consider the difference between the test environment and the production environment, so that the target response time threshold in the production environment is more reasonably determined, the problem that the transaction service in the production environment is too slow in response or lost can be found out in time, and the running reliability of the distributed transaction system is further improved.
Drawings
FIG. 1 is a flow diagram of a transaction service monitoring method in one embodiment;
FIG. 2 is a flowchart illustrating steps for determining a threshold value of a target response time of an interface in a production environment according to a verification result in one embodiment;
FIG. 3 is a flowchart illustrating steps for obtaining transaction duration information for each transaction that occurs in a test environment for a distributed transaction system, in one embodiment;
FIG. 4 is a flowchart illustrating steps for obtaining network latency information for a test environment in one embodiment;
FIG. 5 is a flow chart of a transaction service monitoring method according to another embodiment;
FIG. 6 is a flow chart of a test environment based interface timeout evaluation method under a distributed architecture according to one embodiment;
FIG. 7 is a block diagram of a transaction service monitoring device in one embodiment;
fig. 8 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that, the user information (including, but not limited to, user equipment information, user personal information, etc.) and the data (including, but not limited to, data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party, and the collection, use and processing of the related data are required to comply with the related laws and regulations and standards of the related countries and regions.
It should be further noted that, the transaction service monitoring method, the device, the computer equipment, the storage medium and the computer program product provided by the application can be applied to the field of financial science and technology, for example, the response time threshold of the distributed transaction system of a bank is determined, so that the problem that the transaction service in the distributed transaction system is too slow in response or lost in response is conveniently found in time, the operation reliability of the distributed transaction system is improved, and the experience of a user is further improved; the method can also be used in other related fields, such as the technical field of software testing, for testing the response time threshold of the business system providing services for users by the transaction service monitoring method provided by the application so as to improve the operation reliability of the business system; for example, in the distributed technical field, the distributed system is monitored overtime by the transaction service monitoring method provided by the application so as to improve the running performance of the distributed system.
In an exemplary embodiment, as shown in fig. 1, a transaction service monitoring method is provided, and this embodiment is illustrated by applying the method to a server; it will be appreciated that the method may also be applied to a terminal, and may also be applied to a system comprising a server and a terminal, and implemented by interaction between the server and the terminal. The server can be realized by an independent server or a server cluster formed by a plurality of servers; the terminal may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and the like. In this embodiment, the method includes the steps of:
step S102, obtaining transaction duration information of each transaction of the distributed transaction system in the test environment, and obtaining network delay information of the test environment.
It can be understood that the transaction in the field of computer technology refers to a business to be transacted by a user; for example, a user initiates an information query request to a distributed transaction system to transact an information query service; for another example, a user initiates an information interaction request to a distributed transaction system for an information interaction service.
The distributed transaction system is provided with a plurality of interfaces, and transaction services are provided for users through the interfaces.
Wherein, the test environment refers to an environment for testing the performance of the distributed transaction system; corresponding to the test environment, a production environment is provided; the distributed transaction system provides services to the outside in a production environment. It should be noted that the configuration of the test environment is generally lower relative to the production environment.
The network delay information is used for representing transmission delay in information transmission in the test environment. It should be noted that, the information transmission environments of the test environment and the production environment are the same, so the network delay information of the test environment can also be used for representing the network delay information of the production environment.
The transaction duration information is used for representing the time spent by an interface in the distributed transaction system for providing transaction service in a test environment; it will be appreciated that the process of providing transaction services by the interface includes two phases, one being the information transfer phase and one being the data processing phase of the interface.
Specifically, the server obtains the time spent by the interface for providing the transaction service in the test environment by sending a transaction service request corresponding to the transaction service to the interface for each interface in the test environment, and takes the time spent by each interface for providing each transaction service as the transaction duration information of the distributed transaction system in the test environment; meanwhile, the server sends blank packet information to the distributed transaction system to acquire network delay information of the test environment. The empty packet information is information which does not contain any transaction service request, and can avoid the influence of the transmitted data quantity on the transmission delay.
For example, the server performs the following operations for each interface in the test environment: transmitting transaction service requests of different transaction services to the interface, recording the time of transmitting the transaction service requests and the time of receiving transaction service results returned by the interface in response to the transaction service requests, so as to obtain the time spent by the interface for providing the transaction services; meanwhile, the server randomly transmits the empty packet information to any one interface in the distributed transaction system, records the time for transmitting the empty packet information and the time for receiving the empty packet information returned by the interfaces, and thus obtains the network delay information of the test environment.
Step S104, based on the network time delay information and the transaction duration information, determining the response duration of the interface for each transaction service provided by the interface.
Wherein the response time length is used for representing the time spent by the interface in the process of providing transaction service in the data processing stage.
Specifically, the server determines, for each transaction service provided by each interface, the time spent by the interface in the data processing stage in the process of providing the transaction service according to the network delay information and the time spent by the interface in providing the transaction service, so as to obtain the response duration of the interface for the transaction service.
For example, the server determines the time spent by the interface in the information transmission stage in the test environment based on the network delay information; then, the time spent in the data processing stage, i.e. the response time, is obtained by subtracting the time spent in the information transmission stage from the time spent in the interface providing the transaction service in the test environment.
Step S106, according to the response time length corresponding to each transaction service, determining the response time length interval of the interface in the test environment.
The response time interval is used for representing confidence distribution conditions of response time corresponding to each transaction service.
Specifically, the server determines the confidence distribution condition of the time spent by the interface in the process of providing the transaction service according to the response time length corresponding to each transaction service provided by the interface, and takes the time interval spent by the data processing stage as the response time length interval of the interface in the test environment.
Step S108, based on the response time interval, verifying an initial response time threshold of the interface in the production environment corresponding to the test environment, and determining a target response time threshold of the interface in the production environment according to a verification result.
The response time threshold in the production environment is used for monitoring whether the interface overtime when providing transaction service in the production environment.
Specifically, the server checks the initial response time threshold by comparing the response time interval with the initial response time threshold of the interface in the production environment, so as to determine whether the initial response time threshold is reasonable, for example, whether the response of the transaction service is too slow or even the transaction service is lost can be timely found, and for example, whether the response of the transaction service is too slow or the transaction service is lost can be misjudged; then, the server updates the initial response time length threshold based on the response time length interval to obtain a target response time length threshold when the initial response time length threshold is not checked, namely the initial response time length threshold is unreasonable, or takes the initial response time length threshold as the target response time length threshold when the initial response time length threshold is checked.
Step S110, monitoring transaction services provided by the interface in the production environment according to the target response time length threshold.
Specifically, the server monitors whether the interface times out when providing the transaction service in the production environment according to the target response time threshold, for example, when the production response time of the interface in the production environment is longer than the target response time threshold, the server determines that the interface times out and sends a time-out early warning to a manager of the distributed transaction system and a user initiating the transaction service.
In the transaction service monitoring method provided in the above embodiment, the server first obtains the transaction duration information of each transaction occurring in the test environment by the distributed transaction system, and obtains the network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface; then, based on the network delay information and the transaction duration information, determining the response duration of the interface for each transaction service provided by the interface; then, according to the response time length corresponding to each transaction service, determining a response time length interval of the interface in the test environment; then, based on the response time interval, verifying an initial response time threshold of the interface in a production environment corresponding to the test environment, and determining a target response time threshold of the interface in the production environment according to a verification result; and finally, monitoring transaction services provided by the interface in the production environment according to the target response time threshold. In this way, through the network delay information and the transaction duration information of the test environment, the server can determine the response duration interval of the interface in the test environment, further, the server can verify the initial response duration threshold value in the production environment based on the response duration interval, and determine the target response duration threshold value of the interface in the production environment based on the verification result, and further monitor the interface providing the transaction service in the production environment based on the target response duration threshold value. The transaction service monitoring method based on the process can consider the difference between the test environment and the production environment, so that the target response time threshold in the production environment is more reasonably determined, the problem that the transaction service in the production environment is too slow in response or lost can be found out in time, and the running reliability of the distributed transaction system is further improved.
In an exemplary embodiment, the step S104 determines, based on the network delay information and the transaction duration information, a response duration of the interface for each transaction service provided by the interface, and specifically includes the following contents: determining a first time variation between transaction duration information and network delay information corresponding to transaction services aiming at each transaction service provided by an interface; the first time variation is determined as a response time length of the interface for the transaction service.
Specifically, for each transaction service provided by an interface, the server firstly confirms the difference value between the transaction duration information and the network delay information corresponding to the transaction service, so as to obtain a first time variation between the transaction duration information and the network delay information; the server then determines the first time-varying amount as a response duration of the interface for the transaction service. Based on the above process, the server obtains the response time of the interface for each transaction service.
For example, assuming that the time spent by the interface 1 for providing the transaction service a is tsransaction and the time spent by the information transmission in the test environment is tstreams, the time spent by the data processing stage (i.e. the response duration) tstreams = tstreams in the process of providing the transaction service a by the interface 1.
In this embodiment, the server can filter the influence of the transmission delay of the test environment on the response time length in the process of confirming the response time length through the first time variation between the transaction time length information and the network delay information, so that the time spent in the interface data processing stage can be determined based on the performance of the distributed transaction system, further, the subsequent determination of a more reasonable target response time length threshold value is facilitated, and the running reliability of the distributed transaction system is improved.
In an exemplary embodiment, the step S106 determines, according to the response time periods corresponding to the transaction services, a response time period interval of the interface in the test environment, where the response time period interval includes: determining the average response time length of the response time length corresponding to each transaction service; and determining a response time confidence interval of the interface according to the average response time and the number of transaction services provided by the interface, and taking the response time confidence interval as the response time interval of the interface in the test environment.
Specifically, the server determines an average response duration of the plurality of response durations based on the response durations corresponding to the transaction services provided by the interfaces; then, based on the number of transaction services provided by the interface, inquiring a standard normal distribution table to obtain a standard score corresponding to the number of transaction services, and determining standard deviation of a plurality of response durations based on the average response duration; then, the server obtains a response time confidence interval of the interface based on the average response time, the number of transaction services, the standard score and the standard deviation, namely the response time interval of the interface in the test environment
Wherein,representing an average response time period; n represents the number of transaction services provided by the interface; />Representing a standard score, α representing a significance level, it being understood that the confidence interval is calculated at a predetermined significance level; sigma represents standard deviation, calculated by the following formula, wherein i represents serial number of transaction service, x i Representing the ith transaction service.
In this embodiment, the server determines the confidence interval of the response duration of the interface on the premise of presetting the significance level by averaging the response duration and the number of transaction services provided by the interface, thereby determining the confidence distribution condition of the time spent by the interface in the data processing stage, further facilitating the subsequent determination of a more reasonable target response duration threshold value, and improving the operational reliability of the distributed transaction system.
As shown in fig. 2, in an exemplary embodiment, the step S108, based on the response time interval, verifies an initial response time threshold of the interface in the production environment corresponding to the test environment, and determines a target response time threshold of the interface in the production environment according to the verification result, and specifically includes the following steps:
step S202, determining the upper limit value of the response time length section.
Step S204, when the upper limit value of the response time length is larger than the initial response time length threshold value, the upper limit value of the response time length is determined as a target response time length threshold value of the interface in the production environment.
Step S206, determining the initial response time length threshold as the target response time length threshold of the interface in the production environment under the condition that the response time length upper limit value is smaller than or equal to the initial response time length threshold.
Specifically, the server firstly determines the upper limit value of the response time length interval based on the response time length interval, and acquires the current response time length threshold value of the interface in the production environment as an initial response time length threshold value; then, the server carries out numerical comparison on the upper limit value of the response time length and the initial response time length threshold value, and under the condition that the upper limit value of the response time length is larger than the initial response time length threshold value, the initial response time length threshold value is updated to be the upper limit value of the response time length, so that the target response time length threshold value of the interface in the production environment is obtained; and under the condition that the upper limit value of the response time length is larger or smaller than the threshold value of the initial response time length, the threshold value of the initial response time length is used as the threshold value of the target response time length of the interface in the production environment.
For example, assuming that for interface 1, the response duration interval is [2,5] (in seconds), and the initial response duration threshold of interface 1 in the production environment is 4 seconds, then the server updates 5 seconds to the response duration threshold of interface 1 in the production environment, i.e., the target response duration threshold is 5 seconds; assuming that the initial response time period threshold of the interface 1 in the production environment is 6 seconds, the server continues to take 6 seconds as the response time period threshold of the interface 1 in the production environment, that is, the target response time period threshold is still 6 seconds.
In this embodiment, the server can implement verification of the initial response duration threshold by comparing the value of the response duration upper limit value with the value of the initial response duration threshold, so as to determine whether the response duration threshold of the production environment is reasonable based on the test environment, and update the response duration threshold of the production environment based on the response duration upper limit value under the unreasonable condition. It should be noted that, because the response duration interval reflects the confidence distribution condition of the response duration, but not the overall distribution condition of the response duration, that is, the upper limit value of the response duration interval is different from the maximum response duration in all the response durations, the target response duration threshold value obtained based on the upper limit value of the response duration is determined under the condition that the configuration of the test environment and the production environment is fully considered to be different, and based on the target response duration threshold value, the problem that the response of the transaction service is too slow or the transaction service is lost in the production environment can still be found, so that the operation reliability of the distributed transaction system is improved.
As shown in fig. 3, in an exemplary embodiment, in the step S102, the transaction duration information of each transaction that occurs in the test environment by the distributed transaction system is obtained, and specifically includes the following steps:
Step S302, a first point in time when a transaction service request for each transaction service is sent to an interface in a test environment is recorded.
Step S304, record a second time point when the transaction service result returned by the interface for each transaction service is received.
Step S306, for each transaction service, determining a second time variation between the first time point and the second time point corresponding to the transaction service, and determining the second time variation as transaction duration information of the distributed transaction system corresponding to the transaction service in the test environment.
The transaction service result is an execution result of the interface for the transaction service.
Specifically, the server firstly sends transaction service requests of different transaction services to an interface in a test environment, and records a first time point of sending each transaction service request through a first timestamp carried by the transaction service request; after receiving the transaction service request, the interface can provide transaction service by calling a program in the distributed transaction system and return a transaction service result aiming at the transaction service to the server; the server receives the transaction service results returned by the interfaces and records a second time point of receiving the transaction service results returned for each transaction service through a second timestamp carried by the transaction service results; then, the server determines a second time variation amount between a second time point corresponding to each transaction service and the first time point, and quantitatively determines the second time variation amount as transaction duration information of the distributed transaction system corresponding to the transaction service in the test environment, so that the server obtains the transaction duration information of each transaction of the distributed transaction system in the test environment.
For example, assuming that the first point in time when the server sends a transaction service request of transaction service a to interface 1 is tstart and the second point in time when the server receives a transaction service result returned by interface 1 for transaction service a, interface 1 returns transaction duration information tsransaction = tsreceived-tstart for transaction service a.
Thus, interface 1 corresponds to the response duration tstart=tstart-tstart-delay of transaction service a.
In this embodiment, the server may accurately determine the complete duration (including the information transmission stage and the data processing stage) of the transaction service provided by the interface by recording the first time point of the transaction service request for initiating the transaction service and the second time point of the transaction service result for receiving the transaction service, so as to facilitate the subsequent determination of the response duration of the interface corresponding to the transaction service, and further reasonably determine the target response duration threshold of the interface in the production environment, thereby improving the operational reliability of the distributed transaction system.
As shown in fig. 4, in an exemplary embodiment, in the step S102, the network delay information of the test environment is obtained, which specifically includes the following steps:
step S402, a third time point for sending each network delay test request to the target interface in the test environment is recorded.
Step S404, recording a fourth time point of receiving the network delay test result returned by the target interface in response to each network delay test request.
Step S406, for each network delay test request, determining a third time variation between a third time point and a fourth time point corresponding to the network delay test request, and taking the third time variation as a set of transmission delays of the test environment.
In step S408, an average transmission delay of the plurality of sets of transmission delays is determined, and the average transmission delay is determined as network delay information of the test environment.
The target interface is any one of the interfaces of the distributed transaction system.
The network delay test request is blank packet information which does not contain any transaction service request, and the blank packet information can avoid the influence of the transmitted data quantity on the transmission delay; likewise, the network delay test result is blank packet information.
Specifically, the server firstly sends a network delay test request to any one interface in a test environment for a plurality of times, and records a third time point for sending the network delay test request through a third timestamp carried by the network delay test request; because the network delay test request is blank packet information, the interface directly returns the network delay test request to the server as a network delay test result after receiving the network delay test request; the server receives a network delay test result returned by the interface, and records a fourth time point of receiving each network delay test request through a fourth timestamp carried by the network delay test result; then, the server determines a third time variation between a third time point and a fourth time point corresponding to each network delay test request, so as to obtain a group of transmission delays of the test environment; after the server determines the third time variation corresponding to each network delay test request, multiple groups of transmission delays of the test environment can be obtained, then the server determines the average transmission delay of the multiple groups of transmission delays, and takes the average transmission delay as network delay information of the test environment.
For example, assuming that the network delay information of the test environment is tstare delay, the interface 1 corresponds to the response duration tsrespond=tsreceived-tstare delay of the transaction service a.
In this embodiment, the server, through the blank packet information without any transaction service request, can test the transmission delay of the test environment under the condition of avoiding the influence of the transmitted data volume on the transmission delay, thereby determining the network delay information of the test environment, and being helpful for determining the response time of the interface corresponding to the transaction service subsequently, and further reasonably determining the target response time threshold of the interface in the production environment, so as to improve the operation reliability of the distributed transaction system.
In an exemplary embodiment, the step S110 monitors the interface in the production environment according to the target response time threshold, which specifically includes the following: under the condition that the interface is monitored to provide transaction service in the production environment, confirming the production response time when the interface provides the transaction service; and under the condition that the production response time length is longer than the target response time length threshold corresponding to the interface, confirming that the interface is overtime, and generating overtime early warning information of the interface.
Specifically, the server confirms the time spent in the data processing stage in the process of providing the transaction service by the interface as the production response time of the interface when providing the transaction service under the condition that the interface is monitored to provide the transaction service in the production environment; and then, the server compares the production response time length with a target response time length threshold corresponding to the interface, confirms that the interface is overtime under the condition that the production response time length is larger than the target response time length threshold corresponding to the interface, so as to generate overtime early warning information of the interface, and sends the overtime early warning information to staff of the distributed transaction system and a user initiating the transaction service.
For example, in the case that the server monitors that the interface provides the transaction service in the production environment, determining a first time point when the user initiates the transaction service request based on a first time stamp carried by the transaction service request received by the interface; then, under the condition that the interface returns a transaction service request result to the user, the server determines a second time point when the user receives the transaction service request result, and obtains the production response time length of the interface based on the first time point, the second time point and the network time delay information; if the interface does not return the transaction service request result to the user, the server determines the current time point, and obtains the production response time length of the interface based on the first time point, the current time point and the network delay information.
In this embodiment, the server monitors the timeout of the interface providing the transaction service in the production environment through the target response duration threshold, so that the problem that the transaction service in the production environment is too slow in response or lost can be timely found, and further the operation reliability of the distributed transaction system is improved.
In an exemplary embodiment, as shown in fig. 5, another transaction service monitoring method is provided, which is illustrated by taking the application of the method to a server as an example, and includes the following steps:
step S501, record a first time point when a transaction service request for each transaction service is sent to an interface in a test environment, and record a second time point when a transaction service result returned by the interface for each transaction service is received.
Step S502, for each transaction service, determining a second time variation between a first time point and a second time point corresponding to the transaction service, and determining the second time variation as transaction duration information of the distributed transaction system corresponding to the transaction service in the test environment.
The server may also perform the following steps S503 to S505 while performing steps S501 to S502:
step S503, recording a third time point when each network delay test request is sent to the target interface in the test environment, and recording a fourth time point when the network delay test result returned by the target interface in response to each network delay test request is received.
Step S504, for each network delay test request, determining a third time variation between a third time point and a fourth time point corresponding to the network delay test request, and taking the third time variation as a group of transmission delays of the test environment.
In step S505, an average transmission delay of the plurality of sets of transmission delays is determined, and the average transmission delay is determined as network delay information of the test environment.
After step S502 and step S505, the service also needs to perform the following steps:
step S506, for each transaction service provided by the interface, determining a first time variation between transaction duration information corresponding to the transaction service and network delay information, and determining the first time variation as a response duration of the interface for the transaction service.
Step S507, determining the average response time length of the response time length corresponding to each transaction service, and determining the confidence interval of the response time length of the interface as the response time length interval of the interface in the test environment according to the average response time length and the number of the transaction services provided by the interface.
Step S508, determining the upper limit value of the response time length interval.
Step S509, determining the upper limit value of the response time length as the target response time length threshold of the interface in the production environment when the upper limit value of the response time length is greater than the initial response time length threshold, and determining the initial response time length threshold as the target response time length threshold of the interface in the production environment when the upper limit value of the response time length is less than or equal to the initial response time length threshold.
Step S510, in the case that the interface is monitored to provide the transaction service in the production environment, confirms the production response time length when the interface provides the transaction service.
And S511, confirming that the interface is overtime and generating overtime early warning information of the interface under the condition that the production response time is longer than the target response time threshold corresponding to the interface.
In this embodiment, the first server, by recording the first time point of the transaction service request for initiating the transaction service and the second time point of the transaction service result for receiving the transaction service, can accurately determine the complete duration (including the information transmission stage and the data processing stage) of the interface for providing the transaction service, so as to facilitate the subsequent determination of the response duration of the interface corresponding to the transaction service, and further reasonably determine the target response duration threshold of the interface in the production environment. Secondly, the server can test the transmission delay of the test environment under the condition of avoiding the influence of the transmitted data quantity on the transmission delay by not containing any blank packet information of the transaction service request, thereby determining the network delay information of the test environment, being beneficial to the follow-up determination of the response time length of the interface corresponding to the transaction service, and further reasonably determining the target response time length threshold of the interface in the production environment. Thirdly, the server can filter the influence of the transmission delay of the test environment on the response time length in the process of confirming the response time length through the first time variation between the transaction time length information and the network delay information, so that the time spent in an interface data processing stage can be determined based on the performance of the distributed transaction system, and further the follow-up determination of a more reasonable target response time length threshold value is facilitated. Fourth, the server determines the confidence interval of the response time length of the interface on the premise of presetting the significance level by averaging the response time length and the number of transaction services provided by the interface, so that the confidence distribution condition of the time spent by the interface in the data processing stage is determined, and further the follow-up determination of a more reasonable target response time length threshold value is facilitated. Fifth, the server can verify the initial response time threshold by comparing the value of the response time upper limit value with the value of the initial response time threshold, so that whether the response time threshold of the production environment is reasonable or not can be judged based on the test environment, and in the case that the response time threshold is unreasonable, the response time threshold of the production environment is updated based on the response time upper limit value. Based on the target response time threshold obtained in the process, the interface providing the transaction service in the production environment can be subjected to overtime monitoring, so that the problem that the transaction service in the production environment is too slow in response or lost can be timely found, and the running reliability of the distributed transaction system is improved.
In order to more clearly illustrate the transaction service monitoring method provided in the embodiments of the present application, a specific embodiment will be described below, but it should be understood that the embodiments of the present application are not limited thereto. In an exemplary embodiment, as shown in fig. 6, the application further provides a test environment-based interface timeout evaluation method under a distributed architecture, which specifically includes the following steps:
step 1: network delay detection.
The server sends the empty packet information to the interfaces of the distributed transaction system in the test environment, and the server determines network delay based on the sending time of the empty packet information and the receiving time of the empty packet information returned by the interfaces.
Step 2: transaction response time statistics.
The server sends transaction service requests of transaction services to each interface, and counts the time spent by the interface for providing the transaction services in the test environment based on the sending time of the transaction service requests and the receiving time of the transaction service requests returned by the interfaces; then, the server deducts the network time delay in the information transmission process from the time spent by the interface for providing the transaction service, so as to obtain the time spent by the interface for actually responding to the transaction service request and carrying out data processing, namely the response time of the interface; then, the server counts all response time lengths of the interfaces according to each interface to obtain average response time length of the interfaces, and further obtains a confidence interval of the response time length of the interfaces.
Step 3: and judging the confidence interval of the response time.
The server compares the response time length upper limit value of the confidence interval of the response time length of the interface with the response time length threshold value of the interface in the production environment aiming at each interface, if the response time length upper limit value is larger than the response time length threshold value, the response time length threshold value of the interface in the production environment is set to be too small, or the transaction efficiency of the interface is poor, so that the response time length upper limit value needs to be updated to the response time length threshold value of the interface in the production environment to optimize the service capability of the distributed transaction system; if the upper limit value of the response time length is smaller than or equal to the response time length threshold value, the transaction efficiency of the interface is indicated to meet the confidence level, and the response time length threshold value is not required to be updated.
It can be understood that under the distributed framework, because more micro services are split, the number of micro services required for completing one service is increased, the configuration of the test environment is lower than that of the production environment, and the response of each interface in the application link of the distributed transaction system in the test environment is not greatly slower than that of the production environment, but the final superposition can cause overtime; therefore, under the test environment, the overtime setting of the interface in the application link is generally enlarged so as to ensure that the tester can finally finish the transaction test. However, since the timeout setting of the interface in the application link is enlarged, the timeout setting of the interface is significantly larger than the actual configuration of the production environment, so that it is difficult for a tester to effectively find the interface timeout and perform targeted analysis based on the test environment.
In this embodiment, the server determines whether the response time length in the production environment is reasonable through the confidence interval of the response time length, so that the server can provide support for timeout evaluation of the test environment through intelligent analysis under the conditions that the configuration of the test environment is poor and the timeout setting of the transaction is enlarged in the test environment, thereby solving the trouble of service test and technicians in the test environment and improving the timeout evaluation capability of the interface of the distributed transaction system in the test environment.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a transaction service monitoring device for realizing the transaction service monitoring method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the transaction service monitoring device or devices provided below may be referred to the limitation of the transaction service monitoring method hereinabove, and will not be described herein.
In an exemplary embodiment, as shown in fig. 7, there is provided a transaction service monitoring apparatus including: a test information determination module 702, a response time duration determination module 704, a response interval determination module 706, a time duration threshold determination module 708, and a transaction service monitoring module 710, wherein:
the test information determining module 702 is configured to obtain transaction duration information of each transaction occurring in the test environment by the distributed transaction system, and obtain network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for users through the interface.
And the response time length determining module 704 is configured to determine a response time length of the interface for each transaction service provided by the interface based on the network delay information and the transaction time length information.
The response interval determining module 706 is configured to determine a response time interval of the interface in the test environment according to the response time durations corresponding to the transaction services.
The duration threshold determining module 708 is configured to verify an initial response duration threshold of the interface in a production environment corresponding to the test environment based on the response duration interval, and determine a target response duration threshold of the interface in the production environment according to a verification result.
The transaction service monitoring module 710 is configured to monitor a transaction service provided by the interface in the production environment according to the target response time threshold.
In an exemplary embodiment, the response time determining module 704 is further configured to determine, for each transaction service provided by the interface, a first time variation between transaction time duration information and network delay information corresponding to the transaction service; the first time variation is determined as a response time length of the interface for the transaction service.
In an exemplary embodiment, the response interval determining module 706 is further configured to determine an average response duration of the response durations corresponding to the transaction services; and determining a response time confidence interval of the interface according to the average response time and the number of transaction services provided by the interface, and taking the response time confidence interval as the response time interval of the interface in the test environment.
In an exemplary embodiment, the duration threshold determining module 708 is further configured to determine an upper limit value of a response duration of the response duration interval; under the condition that the upper limit value of the response time length is larger than the initial response time length threshold value, determining the upper limit value of the response time length as a target response time length threshold value of the interface in the production environment; and under the condition that the upper limit value of the response time length is smaller than or equal to the threshold value of the initial response time length, determining the threshold value of the initial response time length as a target response time length threshold value of the interface in the production environment.
In an exemplary embodiment, the test information determining module 702 is further configured to record a first point in time when a transaction service request for each transaction service is sent to an interface in a test environment; recording a second time point of receiving transaction service results returned by the interface for each transaction service; for each transaction service, determining a second time variation between a first time point and a second time point corresponding to the transaction service, and determining the second time variation as transaction duration information of the distributed transaction system corresponding to the transaction service in the test environment.
In an exemplary embodiment, the test information determining module 702 is further configured to record a third time point when each network latency test request is sent to the target interface in the test environment; the target interface is any one of the interfaces of the distributed transaction system; recording a fourth time point of receiving a network delay test result returned by the target interface in response to each network delay test request; determining a third time variation between a third time point and a fourth time point corresponding to the network delay test request aiming at each network delay test request, and taking the third time variation as a group of transmission delays of a test environment; and determining the average transmission delay of the multiple groups of transmission delays, and determining the average transmission delay as network delay information of the test environment.
In an exemplary embodiment, the transaction service monitoring module 710 is further configured to, in a case where it is monitored that the interface provides the transaction service in the production environment, confirm a production response time period when the interface provides the transaction service; and under the condition that the production response time length is longer than the target response time length threshold corresponding to the interface, confirming that the interface is overtime, and generating overtime early warning information of the interface.
The various modules in the transaction service monitoring device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In an exemplary embodiment, a computer device is provided, which may be a server, and an internal structure thereof may be as shown in fig. 8. The computer device includes a processor, a memory, an Input/Output interface (I/O) and a communication interface. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface is connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing the response time length and the response time length threshold value of each interface in the distributed transaction system. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for communicating with an external terminal through a network connection. The computer program when executed by a processor implements a transaction service monitoring method.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an exemplary embodiment, a computer device is also provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method embodiments described above.
In an exemplary embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A transaction service monitoring method, the method comprising:
acquiring transaction duration information of each transaction of a distributed transaction system in a test environment, and acquiring network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface;
determining response time length of the interface for each transaction service provided by the interface based on the network time delay information and the transaction time length information;
Determining a response time interval of the interface in the test environment according to the response time corresponding to each transaction service;
verifying an initial response time length threshold value of the interface in a production environment corresponding to the test environment based on the response time length interval, and determining a target response time length threshold value of the interface in the production environment according to a verification result;
and monitoring transaction services provided by the interface in the production environment according to the target response time threshold.
2. The method of claim 1, wherein the determining, based on the network latency information and the transaction duration information, a response duration of the interface for each transaction service provided by the interface comprises:
determining a first time variation between transaction duration information corresponding to the transaction service and the network delay information aiming at each transaction service provided by the interface;
and determining the first time variation as the response time length of the interface for the transaction service.
3. The method according to claim 1, wherein the determining a response time interval of the interface in the test environment according to the response time intervals corresponding to the transaction services includes:
Determining the average response time length of the response time length corresponding to each transaction service;
and determining a response time confidence interval of the interface according to the average response time and the number of transaction services provided by the interface, and taking the response time confidence interval as the response time interval of the interface in the test environment.
4. The method according to claim 1, wherein the verifying the initial response time threshold of the interface in the production environment corresponding to the test environment based on the response time interval, and determining the target response time threshold of the interface in the production environment according to the verification result, includes:
determining a response time upper limit value of the response time interval;
determining the upper limit value of the response time length as a target response time length threshold value of the interface in the production environment under the condition that the upper limit value of the response time length is larger than the initial response time length threshold value;
and under the condition that the upper limit value of the response time length is smaller than or equal to the initial response time length threshold value, determining the initial response time length threshold value as a target response time length threshold value of the interface in the production environment.
5. The method of claim 1, wherein the obtaining transaction duration information for each transaction that occurs by the distributed transaction system in the testing environment comprises:
Recording a first point in time when a transaction service request for each transaction service is sent to the interface in the test environment;
recording a second time point when a transaction service result returned by the interface for each transaction service is received;
for each transaction service, determining a second time variation between a first time point and a second time point corresponding to the transaction service, and determining the second time variation as transaction duration information of the distributed transaction system corresponding to the transaction service in the test environment.
6. The method of claim 1, wherein the obtaining network latency information for the test environment comprises:
recording a third time point for sending each network delay test request to a target interface in the test environment; the target interface is any one of the interfaces of the distributed transaction system;
recording a fourth time point of receiving a network delay test result returned by the target interface in response to each network delay test request;
for each network delay test request, determining a third time variation between a third time point and a fourth time point corresponding to the network delay test request, and taking the third time variation as a group of transmission delays of the test environment;
And determining the average transmission delay of a plurality of groups of transmission delays, and determining the average transmission delay as network delay information of the test environment.
7. The method of any of claims 1 to 6, wherein monitoring the interface in the production environment according to the target response time period threshold comprises:
under the condition that the interface is monitored to provide transaction service in the production environment, confirming production response time when the interface provides the transaction service;
and under the condition that the production response time length is larger than a target response time length threshold corresponding to the interface, confirming that the interface is overtime, and generating overtime early warning information of the interface.
8. A transaction service monitoring device, the device comprising:
the test information determining module is used for acquiring the transaction duration information of each transaction of the distributed transaction system in the test environment and acquiring the network delay information of the test environment; an interface is arranged in the distributed transaction system, and transaction service is provided for a user through the interface;
the response time length determining module is used for determining the response time length of the interface for each transaction service provided by the interface based on the network time delay information and the transaction time length information;
The response interval determining module is used for determining a response time interval of the interface in the test environment according to the response time length corresponding to each transaction service;
the time length threshold value determining module is used for verifying an initial response time length threshold value of the interface in a production environment corresponding to the test environment based on the response time length interval, and determining a target response time length threshold value of the interface in the production environment according to a verification result;
and the transaction service monitoring module is used for monitoring transaction services provided by the interface in the production environment according to the target response time threshold.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 7.
CN202310922495.2A 2023-07-26 2023-07-26 Transaction service monitoring method, device and computer equipment Pending CN117439913A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310922495.2A CN117439913A (en) 2023-07-26 2023-07-26 Transaction service monitoring method, device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310922495.2A CN117439913A (en) 2023-07-26 2023-07-26 Transaction service monitoring method, device and computer equipment

Publications (1)

Publication Number Publication Date
CN117439913A true CN117439913A (en) 2024-01-23

Family

ID=89552293

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310922495.2A Pending CN117439913A (en) 2023-07-26 2023-07-26 Transaction service monitoring method, device and computer equipment

Country Status (1)

Country Link
CN (1) CN117439913A (en)

Similar Documents

Publication Publication Date Title
US20180329921A1 (en) Method and apparatus for storing time series data
CN113315828B (en) Traffic recording method and device, traffic recording equipment and storage medium
CN117033039A (en) Fault detection method, device, computer equipment and storage medium
CN117439913A (en) Transaction service monitoring method, device and computer equipment
CN113902415A (en) Financial data checking method and device, computer equipment and storage medium
CN118409882B (en) Service data processing method, device, computer equipment and readable storage medium
CN115296840B (en) Security early warning method and device based on security state of associated node and electronic equipment
CN117112355A (en) Method, device, equipment, storage medium and program product for monitoring log file
CN112529613B (en) Method and device for processing user continuous login data and transferring virtual resources
CN118761831A (en) Method, device, equipment and storage medium for processing business license data
CN118569989A (en) Transaction abnormal data detection method, apparatus, computer device, readable storage medium, and program product
CN117171444A (en) Questionnaire information pushing method, device, computer equipment and storage medium
CN116521546A (en) Interface performance adjusting method and device, computer equipment and storage medium
CN117196628A (en) Method, apparatus, computer device and readable storage medium for detecting group fraud
CN114185949A (en) Information registration method, information registration apparatus, computer device, storage medium, and program product
CN118313830A (en) Resource processing method, device, computer equipment and storage medium
CN116483658A (en) Method, device, system, equipment and storage medium for monitoring server performance
CN117151887A (en) Authority adjusting method, authority adjusting device, computer equipment and storage medium
CN118152459A (en) Data online reporting method, device, computer equipment, medium and program product
CN116991828A (en) Data complement method, device, equipment and storage medium
CN118552294A (en) Resource transfer method, apparatus, computer device, storage medium, and program product
CN118585306A (en) Request processing method, apparatus, computer device, storage medium, and program product
CN117291698A (en) Bank account opening request verification method, device, computer equipment and storage medium
CN115439229A (en) Service data processing method and device, computer equipment and storage medium
CN117033168A (en) System function verification method, device, computer 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