[go: up one dir, main page]

CN110445667B - Link delay detection method, device, storage medium and terminal - Google Patents

Link delay detection method, device, storage medium and terminal Download PDF

Info

Publication number
CN110445667B
CN110445667B CN201910454316.0A CN201910454316A CN110445667B CN 110445667 B CN110445667 B CN 110445667B CN 201910454316 A CN201910454316 A CN 201910454316A CN 110445667 B CN110445667 B CN 110445667B
Authority
CN
China
Prior art keywords
service
time
business
link
generated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910454316.0A
Other languages
Chinese (zh)
Other versions
CN110445667A (en
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.)
Chengdu Yudi Technology Co ltd
Original Assignee
Beijing Dami Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN201910454316.0A priority Critical patent/CN110445667B/en
Publication of CN110445667A publication Critical patent/CN110445667A/en
Application granted granted Critical
Publication of CN110445667B publication Critical patent/CN110445667B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本申请公开了一种链路延迟检测方法、装置、存储介质以及终端,涉及计算机技术领域,首先基于在第一业务日志集合中插入的时间浮标获取第一业务日志集合的生成时间,然后获取数据库中针对业务链路在处理业务数据时生成的第二业务日志,获取第二业务日志写入数据库的写入时间,计算写入时间与生成时间的差值,将差值作为业务数据的处理时长,最后基于处理时长,确定业务链路是否存在传输延迟。由于生成时间可以通过时间浮标达到预设精度且写入时间的精度也可以控制达到预设精度,计算写入时间与生成时间的差值后,差值可以作为业务数据的处理时长,所以业务数据的处理时长也可以达到预设精度,从而可以提高监测链路是否发生故障或者拥堵的精度。

Figure 201910454316

The present application discloses a link delay detection method, device, storage medium and terminal, and relates to the field of computer technology. First, the generation time of the first service log set is obtained based on a time buoy inserted in the first service log set, and then a database is obtained. For the second business log generated by the business link when processing business data, obtain the write time of the second business log written to the database, calculate the difference between the write time and the generation time, and use the difference as the processing time of the business data. , and finally determine whether there is a transmission delay in the service link based on the processing time. Since the generation time can reach the preset precision through the time buoy and the precision of the writing time can also be controlled to reach the preset precision, after calculating the difference between the writing time and the generating time, the difference can be used as the processing time of the business data, so the business data The processing time can also reach the preset accuracy, so that the accuracy of monitoring whether the link is faulty or congested can be improved.

Figure 201910454316

Description

Link delay detection method, device, storage medium and terminal
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for detecting a link delay, a storage medium, and a terminal.
Background
With the development of network and computer technologies, people have higher and higher processing requirements for service data and data synchronization in a service link, and when data synchronization of the service data is involved, whether delay exists in the service link is determined by monitoring the processing duration of the service data in the synchronization process in real time, and then whether the service link fails or is congested is judged, so that delay detection in the service link is the key point of research of researchers in the field.
In the database, if a user wants to detect whether a delay exists in a service link, the processing time length of the service data in the service link in the synchronous backup process needs to be obtained first, and the processing time length of the service data needs to be obtained from a transmission list generated by the database and related to the service data. The transmission time of the service data recorded in the transmission list generated in the database is in units of seconds, so the accuracy of delay detection of the service link is not high, and the accuracy of monitoring whether the service link is faulty or congested is not high.
Disclosure of Invention
The present application mainly aims to provide a link delay detection method, device, storage medium, and terminal, which can solve the technical problem that the accuracy of delay detection of a service link is not high, which results in the accuracy of monitoring whether the service link is faulty or congested.
In order to achieve the above purpose, the present application provides the following technical solutions:
in a first aspect, an embodiment of the present application provides a link delay detection method, where the method includes:
acquiring a first service log set generated in a database when service data is generated aiming at a service link, and acquiring the generation time of the first service log set based on a time buoy inserted in the first service log set;
acquiring a second service log generated in a database when the service data is processed aiming at the service link, and acquiring the writing time of the second service log written into the database;
calculating a difference value between the writing time and the generating time, and taking the difference value as the processing duration of the service data;
and determining whether the service link has transmission delay or not based on the processing duration.
In a second aspect, an embodiment of the present application provides a link delay detection apparatus, including:
the generation time acquisition module is used for acquiring a first service log set generated in a database aiming at a service link when service data is generated, and acquiring the generation time of the first service log set based on a time buoy inserted in the first service log set;
a write-in time obtaining module, configured to obtain a second service log generated in a database when the service data is processed for the service link, and obtain write-in time for writing the second service log into the database;
a difference value calculating module, configured to calculate a difference value between the writing time and the generating time, and use the difference value as a processing duration of the service data;
and the delay determining module is used for determining whether the service link has transmission delay or not based on the processing duration.
In a third aspect, an embodiment of the present application provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to execute steps implementing the above-mentioned method.
In a fourth aspect, embodiments of the present application provide a terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the method described above.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, a first service log set generated in a database for a service link when service data is generated is first acquired, generation time of the first service log set is acquired based on a time buoy inserted in the first service log set, a second service log generated in the database for the service link when the service data is processed is then acquired, writing time of the second service log written in the database is acquired, a difference between the writing time and the generation time is calculated, the difference is used as processing duration of the service data, and finally, whether a transmission delay exists in the service link is determined based on the processing duration. The generation time of the first service log set is accurately acquired through the time buoy inserted in the first service log set, and then the writing time of the second service log written into the database is acquired, because the generation time can reach the preset precision through the time buoy and the precision of the writing time can also be controlled to reach the preset precision, and after the difference value between the writing time and the generation time is calculated, the difference value can be used as the processing time length of the service data, the processing time length of the service data can reach the preset precision, the delay detection of the service link can also reach the preset precision, and therefore the precision of monitoring whether the link is in fault or jammed can be improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic network architecture diagram of a link delay detection system according to an embodiment of the present application;
fig. 2 is a system interaction diagram of a link delay detection method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a link delay detection method according to an embodiment of the present application;
fig. 4 is a schematic illustration showing a first service log set in a link delay detection method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another link delay detection method according to an embodiment of the present application;
fig. 6 is a schematic diagram illustrating an example of hint information in another link delay detection method according to an embodiment of the present application;
fig. 7 is a schematic diagram illustrating a first service log set in another method for detecting a link delay according to an embodiment of the present application;
fig. 8 is an exemplary schematic diagram of a service processing procedure in another link delay detection method according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a link delay detection apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of another link delay detection apparatus according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a generation time obtaining module in another link delay detection apparatus according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
In order to make the purpose, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
Fig. 1 illustrates an exemplary system architecture 100 that may be applied to the link delay detection method of the present application.
As shown in fig. 1, system architecture 100 may include user terminal 101, server 102, network 103, server 104, and database 105. Network 103 is the medium used to provide communication links between user terminals 101, server 102, and server 104. Network 103 may include various types of wired or wireless communication links, such as: the wired communication link includes an optical fiber, a twisted pair wire or a coaxial cable, and the Wireless communication link includes a bluetooth communication link, a Wireless-Fidelity (Wi-Fi) communication link, a microwave communication link, or the like.
User terminal 101 may interact with database 105, server 102, and server 104 over network 103 to receive messages from server 102 and server 104, or to send messages to server 102 and server 104. Various communication client applications may be installed on the user terminal 101, such as: data synchronization system software, drawing applications, video recording applications, video playing applications, voice acquisition applications, voice interaction applications, search-type applications, instant messaging tools, mailbox clients, social platform software, and the like.
The user terminal 101 may be hardware or software. When the user terminal 101 is hardware, it may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like. When the user terminal 101 is software, it may be installed in the electronic device listed above. Which may be implemented as a plurality of software or software modules (e.g., for providing distributed services) or as a single software or software module, and is not particularly limited herein.
When the user terminal 101 is a hardware, a display device may be further installed thereon, and the display device may be various devices capable of implementing a display function, for example: a Cathode ray tube display (CR), a Light-emitting diode display (LED), an electronic ink panel, a Liquid Crystal Display (LCD), a Plasma Display Panel (PDP), and the like. The user may utilize the display device on the user terminal 101 to view information such as displayed text, pictures, video, etc.
The database 105 is a place for storing electronic files, and the user terminal may add, intercept, update, delete, etc. data in the files, for example, the database may be a relational database.
Server 102 and server 104 may be business servers that provide various services. The server 102 and the server 104 may be hardware or software. When the server 102 and the server 104 are hardware, they may be implemented as a distributed server cluster composed of a plurality of servers, or as a single server. When server 102 and server 104 are software, they may be implemented as multiple software or software modules (e.g., for providing distributed services), or as a single software or software module, and are not limited in this respect.
It should be understood that the number of user terminals, networks, databases, and servers in fig. 1 are merely illustrative. There may be any number of user terminals, networks, databases, and servers, as desired for implementation.
Referring to fig. 2, fig. 2 is a system interaction diagram of a link delay detection method according to an embodiment of the present application, and a system interaction process in the link delay detection method will be described with reference to fig. 1 and fig. 2.
In the embodiment of the present application, the processing time length when the server on the service link processes data sent by other user terminals may be obtained through the data synchronization device, where the data synchronization device may be the user terminal or data synchronization software in the user terminal, and may also be the server. For convenience of description, a system interaction procedure of a link delay detection method is described below by taking a data synchronization device as an example.
As shown in fig. 1 and fig. 2, the steps in the system interaction process include:
s201, the server receives the service processing request, generates service data and backs up the service data to the database.
It is possible that the server receives a service processing request, and the service processing request may be a request from a user terminal or a request input to the server by an administrator. The service link can comprise a link formed by independently processing data by one server or a link formed by cooperatively processing data by a plurality of servers. In order to ensure the monitoring of the service data and the retention of the service data in the data processing process, the service data generated by the server can be backed up to the database in the process of generating the service data by the service link.
S202, the database stores a first service log set corresponding to the service data.
The server may generate the service data and backup the service data to the database, where the type of the database may be a relational database, and the database backup may be performed in a manner that the database receives a first service log generated by the server for the service data, and stores the first service log in a manner of a first service log set.
S203, the user terminal obtains a first service log set generated in the database for the service link when generating the service data, and obtains a generation time of the first service log set based on a time buoy inserted in the first service log set.
The method for acquiring a first service log set generated in a database when service data is generated for a service link by a user terminal includes: the user terminal obtains a first service log set generated in the database aiming at the service link when generating service data, and adopts a time buoy inserted into the first service log set by a preset period.
The obtaining of the generation time of the first service log set based on the time buoy inserted in the first service log set may include: the user terminal obtains a first service log in the first service log set, searches a time buoy closest to the first service log in the inserted time buoy, obtains the time indicated by the closest time buoy, and takes the time as the generation time of the first service log set.
It is possible that, since the user terminal obtains the generation time of the first service log set based on the time buoy inserted in the first service log set, the time precision of the preset period for inserting the time buoy represents the time precision for calculating the generation time of the first service log set.
S204, the user terminal obtains a second service log generated in the database when the service data is processed aiming at the service link, and obtains the writing time of the second service log written into the database.
Processing the service data comprises transmitting the service data;
the method for acquiring the first service log set generated in the database when the service data is generated for the service link comprises the following steps: acquiring a first service log set generated when service data are generated aiming at a first server on a service link in a database;
acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises: and acquiring a second service log generated in the database when the second server receives the service data on the service link.
Further, processing the service data may include storing the service data;
the method for acquiring the first service log set generated in the database when the service data is generated for the service link comprises the following steps: acquiring a first service log set generated in a database aiming at a first server on a service link when service data is generated;
acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises: and acquiring a second service log generated in the database when the service data is stored for the first server.
Further, processing the service data includes consuming the service data;
the method for acquiring the first service log set generated in the database when the service data is generated for the service link comprises the following steps: acquiring a first service log set generated in a database aiming at a first server on a service link when service data is generated;
acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises: and acquiring a second service log generated in the database when the service data is consumed for the first server.
S205, the user terminal calculates the difference between the writing time and the generating time, the difference is used as the processing time length of the service data, and whether the service link has transmission delay or not is determined based on the processing time length.
Optionally, the determining whether the traffic link has a transmission delay based on the processing duration includes: and the user terminal calculates the difference between the processing time length of the service data and the preset processing time length, and if the difference is greater than a preset threshold, the prompt information is output.
In the embodiment of the application, a first service log set generated in a database when service data is generated for a service link is first acquired, the generation time of the first service log set is acquired based on a time buoy inserted in the first service log set, then a second service log generated in the database when the service data is processed for the service link is acquired, the writing time of the second service log written in the database is acquired, the difference between the writing time and the generation time is calculated, the difference is used as the processing duration of the service data, and finally whether transmission delay exists in the service link is determined based on the processing duration. The generation time of the first service log set is accurately acquired through the time buoy inserted in the first service log set, and then the writing time of the second service log written into the database is acquired, because the generation time can reach the preset precision through the time buoy and the precision of the writing time can also be controlled to reach the preset precision, and after the difference value between the writing time and the generation time is calculated, the difference value can be used as the processing time length of the service data, the processing time length of the service data can reach the preset precision, the delay detection of the service link can also reach the preset precision, and therefore the precision of monitoring whether the link is in fault or jammed can be improved.
The link delay detection method provided by the embodiment of the present application will be described in detail below with reference to fig. 3 to 8. In the following application embodiments, the processing time duration when the server on the service link processes data sent by other user terminals may be obtained through the data synchronization device, so as to determine whether the transmission delay exists in the service link. The data synchronization device may be a user terminal or data synchronization software in the user terminal, or may be a server. For convenience of description, a link delay detection method is described in detail below by taking a data synchronization device as an example of a user equipment.
Referring to fig. 3, fig. 3 is a schematic flowchart of a link delay detection method according to an embodiment of the present application, where the method includes:
s301, a first service log set generated in the database when the service data is generated aiming at the service link is obtained, and the generation time of the first service log set is obtained based on the time buoy inserted in the first service log set.
It is possible that the server receives a service processing request, which may be a request input to the server by another user terminal or an administrator for a certain service. For example: a user needs to register the service through the user terminal, and then sends a service processing request related to the service registration to the server in the process of registering through the user terminal, and the server performs data processing of the service registration after receiving the service processing request sent by the user terminal. For the processing of data by the server, only one server may be involved, and then a single server generates a traffic link based on the server in the process of processing data; if the processing of the data involves multiple servers, then multiple server-generated traffic links based on co-processed data may be generated during the processing of the data.
When a user generates a user operation through a user terminal, the user operation may be referred to as a service, and it corresponds to the invocation of multiple applications and services in the server to respond to the service, and the applications, services, and interfaces used in the invocation in the server and the order of the invocation processing are referred to as a service link.
Possibly, when the server in the service link processes the service process, service data related to the service may be generated. For example: in a service process that a user needs to register the user through a user terminal used by the user, a plurality of servers may be required to perform cooperative processing including processing processes of extracting user information, preprocessing the user information, storing the user information, consuming the user information and the like, and the server generates service data during each processing process.
In order to monitor and retain the service data in the service processing process, the service data generated by the server may be backed up to the database in the process of generating the service data when the server processes the service in the service link, where the type of the database may be a relational database.
The method for backing up the service data generated by the server to the database may include multiple methods, and one possible method is to synchronously back up the service data to the database and generate a service log corresponding to the service data, where the service log may be displayed in a binlog log format, and the binlog log is a file in a binary format and is used to record statement information of a structured query language updated by a user on the database, for example: statements in the structured query language that change the database table and change the content may be recorded in the binlog log.
For convenience of description, the service log corresponding to the service data backed up by the database is defined to include a first service log, where the first service log may be a service log corresponding to one event (for example, writing a user name) in a certain data processing procedure, may be a service log corresponding to all events involved in a certain data processing procedure (for example, storing course information and identity information of a user), and may also be a service log corresponding to an event involved in a certain time period or data processing procedure between different data processing nodes (for example, extracting data processing between a user information processing node and a pre-processing user information processing node), that is, the first service log may be one or more.
Referring to fig. 4, fig. 4 is a schematic view illustrating a first service log set in a link delay detection method according to an embodiment of the present application.
To facilitate classifying or searching the service logs, one or more first service logs may be grouped into a first service log set, and then the first service log set may represent a certain event in the service processing process, a certain data processing process in the service processing process, or a certain time period or data processing process between different data processing nodes.
The database may generate a first service log set from the acquired first service log in a preset manner, and insert a time buoy into the first service log set while generating the first service log set. The preset mode for generating the first service log set includes, but is not limited to, a table, a queue, a key-value pair, and an array. Fig. 4 shows a possible generation manner of the first service log set, that is, the first service log set is generated in a queue manner, and in fig. 4, it can be seen that the first service log set includes three first service logs arranged in sequence in a queue manner, which are respectively: a first service log 01, a first service log 02 and a first service log 03.
For obtaining the generation time of the first service log set, a time buoy needs to be inserted into the first service log set, the time buoy may also be a binary log, which is a file in a binary format, and time may be written in the time buoy to record the occurrence of a certain event. The time when the time buoy is inserted into the first service log set and the time when the time buoy is inserted into the first service log set is written into the time buoy, and the time buoy is generated simultaneously with the first service log set, so that the time written into the time buoy represents the generation time of the first service log set or the generation time of one first service log or a plurality of first service logs in the first service log set. Since there may be one or more first service logs in the first service log set and one or more time floats may also be inserted in the first service log set, the time represented by the time float depends on the number of the first service logs in the first service log set and the number of the time floats inserted in the first service log set. And the writing time of the time buoy may be accurate to a preset accuracy, for example, the preset accuracy may be in milliseconds or microseconds.
In fig. 4, the first service log set only includes one time buoy, that is, the time buoy 11 inserted behind the first service log 01, so that the time written in the time buoy 11 may represent the generation time of the first service log set, or may represent the generation time of each first service log in the first service log set.
S302, a second service log generated in the database when the service data is processed aiming at the service link is obtained, and the writing time of the second service log written into the database is obtained.
Similar to the first service log, the second service log is also a service log of the database backup service data, and the second service log may be a service log corresponding to an event in a certain data processing process, may be a service log corresponding to all events involved in a certain data processing process, may also be a service log corresponding to events involved in a certain time period or data processing processes between different data processing nodes, that is, the second service log may also be one or more.
Since the second service log is obtained later in time relative to the first service log, if a processing time from a time node when the database generates the second service log to a time when the database generates the first service log set is desired to be obtained, a writing time for writing the second service log into the database also needs to be obtained. The writing time of the second service log into the database can be obtained in real time, and the writing time of the second service log into the database can also be accurate to a preset precision, for example, the preset precision can be millisecond or microsecond.
And S303, calculating a difference value between the writing time and the generating time, and taking the difference value as the processing time length of the service data.
The writing time of the first service log set is obtained through the time buoy, and the time recorded by the time buoy is preset precision, so that the writing time of the first service log set is preset progress, the writing time of the second service log set written into the database can be also accurate to the preset precision, the difference value obtained by calculating the writing time and the generating time is also the preset precision, the difference value is taken as the processing time length of the service data, and the processing time length is also the preset precision.
S304, determining whether the transmission delay exists in the service link based on the processing time length.
Since the processing duration of the service data represents the transmission condition of the service link, based on the processing duration, it can be determined whether the transmission delay exists in the service link.
In the embodiment of the application, a first service log set generated in a database when service data is generated for a service link is first acquired, the generation time of the first service log set is acquired based on a time buoy inserted in the first service log set, then a second service log generated in the database when the service data is processed for the service link is acquired, the writing time of the second service log written in the database is acquired, the difference between the writing time and the generation time is calculated, the difference is used as the processing duration of the service data, and finally whether transmission delay exists in the service link is determined based on the processing duration. The generation time of the first service log set is accurately acquired through the time buoy inserted in the first service log set, and then the writing time of the second service log written into the database is acquired, because the generation time can reach the preset precision through the time buoy and the precision of the writing time can also be controlled to reach the preset precision, and after the difference value between the writing time and the generation time is calculated, the difference value can be used as the processing time length of the service data, the processing time length of the service data can reach the preset precision, the delay detection of the service link can also reach the preset precision, and therefore the precision of monitoring whether the link is in fault or jammed can be improved.
Referring to fig. 5, fig. 5 is a schematic flow chart of another link delay detection method according to an embodiment of the present application, where the method includes:
s501, a first service log set generated in the database when the service data is generated aiming at the service link is obtained, and the generation time of the first service log set is obtained based on a time buoy inserted in the first service log set.
S502, acquiring a second service log generated in the database when the service data is processed aiming at the service link, and acquiring the writing time of the second service log written into the database.
And S503, calculating a difference value between the writing time and the generating time, and taking the difference value as the processing time length of the service data.
For details that are not disclosed in the method steps S501 to S503, please refer to the detailed description in the method steps S301 to S303.
S504, calculating a difference value between the processing time length of the service data and a preset processing time length.
When there is no delay in the service link, it means that the service link has not failed or is not congested, that is, the transmission data channel of the service link is unobstructed, and at this time, the difference between the write-in time of the second service log written in the database and the generation time of the first service log set is the preset processing duration, so that if it is required to know whether the transmission data channel of the service link is unobstructed, the difference between the processing duration of the service data and the preset processing duration may be calculated.
And S505, if the difference value is larger than a preset threshold value, outputting prompt information.
Because the preset processing duration is obtained in an ideal state, a certain delay exists in the actual data processing process, but as long as the delay is within a preset range, the transmission data channel of the service link can be considered to be unobstructed, the delay can be set as a preset threshold, the preset threshold can be set according to the actual situation, and under the condition that the preset threshold exists, the data can be smoothly transmitted in the service link without influencing the overall work of the service link.
If the difference between the processing time length of the service data and the preset processing time length is greater than the preset threshold value, it represents that the service link may be in fault or jammed, and then prompt information is output to remind the user that a problem occurs in a transmission data channel of the service link, so that the user can process the service link in time. The prompt message may have a plurality of display modes, including but not limited to: the display pattern is identified and/or presented through an audio playing form. The display position of the pattern identifier may be a fixed position or a full screen display, the pattern display time may be a time that is continuously displayed at a certain position or disappears after displaying a preset time, and the pattern identifier includes: emoticons, text symbols, animated emoticons, and the like. Fig. 6 shows an exemplary schematic diagram of a prompt message in another link delay detection method, where in fig. 6, a text "a service link may be failed and please process in time" is displayed in a center position of a display interface of a user terminal, a sound generating device of the user terminal sends an alarm sound, and a flashing horn icon is displayed in an upper right corner of the display interface, and the alarm sound can be suspended when the user clicks the horn icon.
In the embodiment of the application, the delay detection of the service link is realized by calculating the difference between the processing time length of the service data and the preset processing time length and comparing the difference with the preset threshold value, so as to judge whether the service link fails or is jammed, and if the difference is greater than the preset threshold value, prompt information is output to remind a user that a transmission data channel of the service link has a problem, so that the user can process the service link in time.
Another link delay detection method provided in the embodiments of the present application includes:
s601, acquiring a first service log set generated in the database aiming at a service link when service data is generated, and adopting a time buoy inserted into the first service log set in a preset period.
The first service log set generated in the database for the service link when generating the service data is described in detail in S301, and is not described herein again.
When the first service log set includes a plurality of first service logs, if it is necessary to obtain more accurate generation time of a certain first service log in the first service log set, it is necessary to use a time buoy inserted in the first service log set at a preset period, that is, to insert a time buoy in the first service log set at every preset period, so that as many time buoys as possible are inserted in the first service log set by controlling the preset period, and the accurate generation time of the first service log can be obtained by using the time buoys near the first service log.
Referring to fig. 7, fig. 7 is a schematic diagram illustrating a first service log set in another method for detecting a link delay according to an embodiment of the present application.
S602, obtaining a first service log in the first service log set, and searching a time buoy closest to the first service log in the inserted time buoy.
When the first service log set comprises a plurality of first service logs, if the generation time of a certain first service log needs to be acquired, the first service log in the first service log set needs to be acquired first, if the first service log set is arranged in a queue, the position of the first service log in the first service log set in the queue needs to be acquired, and then a time buoy closest to the first service log is searched in the inserted time buoy.
For example, in fig. 7, it can be seen that the first service log set includes six first service logs arranged in sequence in the form of a queue, which are: the service log management system comprises a first service log 01, a first service log 02, a first service log 03, a first service log 04, a first service log 05 and a first service log 06. The first service log set includes two time buoys, that is, a time buoy 11 inserted after the first service log 01 and a time buoy 12 inserted after the third service log 03, so that the time buoy closest to the first service log 01 is the time buoy 11, and the time buoy closest to the first service log 03 is the time buoy 12.
When the first service log set includes a first service log, the first service log in the first service log set may be directly obtained, and a time buoy closest to the first service log is searched in the inserted time buoy.
And S603, acquiring the time indicated by the latest time buoy, and taking the time as the generation time of the first service log set.
Since the time when the first service log set is inserted is written in the time buoy at the same time as the time buoy is inserted in the first service log set, the time of insertion is recorded in the time buoy, and in fig. 7, the time indicated in the time buoy 11 may be the generation time of the first service log 01, and the time indicated in the time buoy 12 may be the generation time of the first service log 03. Meanwhile, if the generation time of the first traffic log set is represented by the generation time of the first traffic log 01, the time indicated in the time buoy 11 may be the generation time of the first traffic log set, or if the generation time of the first traffic log 03 is represented by the generation time of the first traffic log set, the time indicated in the time buoy 12 may be the generation time of the first traffic log set. As for the generation time of the first service log at which position in the specific queue is selected to represent the generation time of the first service log set, the adjustment can be made according to the actual situation.
When the first service log set comprises a first service log, the generation time of the first service log represents the generation time of the first service log set, after a time buoy closest to the first service log is searched in the inserted time buoy, the time indicated by the closest time buoy is obtained, and the time is taken as the generation time of the first service log set.
S604, acquiring a second service log generated in the database when the service link processes the service data, and acquiring the writing time of the second service log written in the database.
And S605, calculating a difference value between the writing time and the generating time, and taking the difference value as the processing time length of the service data.
S606, based on the processing time length, whether the transmission delay exists in the service link is determined.
For details that are not disclosed in the method steps S604 to S606, please refer to the detailed description in the method steps S302 to S304.
In the embodiment of the application, a first service log set generated in a database when service data is generated for a service link is acquired, a time buoy inserted into the first service log set at a preset period is adopted, the preset period is controlled to enable as many time buoys to be inserted into the first service log set as possible, and accurate generation time of the first service log can be obtained through the time buoys near the first service log. On the other hand, a first service log in the first service log set is obtained, a time buoy closest to the first service log is searched in the inserted time buoy, the time indicated by the closest time buoy is obtained, and the indicated time is taken as the generation time of the first service log set so as to accurately obtain the generation time of the first service log set.
Referring to fig. 8, fig. 8 is a schematic diagram illustrating an example of a service processing procedure in another link delay detection method according to an embodiment of the present application.
In fig. 8, the service link is a link formed by two servers that cooperatively process data, the two servers are respectively a first server and a second server, the service processing process further needs to use a data synchronization system and a database, the database is used for backing up service data generated by the service link, the data synchronization system is used for acquiring processing time of the service data, and the specific processes of generating the service data by the service link and acquiring the processing time of the service data are as follows:
the method comprises the steps that a first server obtains a service processing request, and the first server is connected with a second server;
the first server processes data according to the service processing request and generates service data, and meanwhile backups the service data to the database;
the database acquires the service data and generates a service log corresponding to the service data;
the data synchronization system acquires a first service log set generated by a service link in a database when service data are generated, acquires generation time of the first service log set based on a time buoy inserted in the first service log set, acquires a second service log generated by the service link in the database when the service data are processed, acquires write-in time of the second service log written in the database, calculates a difference value between the write-in time and the generation time, and uses the difference value as processing time of the service data so as to judge whether the service link fails or is congested.
It is possible that the processing of the service data in the above embodiment includes transmitting the service data.
Acquiring a first service log set generated in the database for the service link when the service data is generated, including:
the method comprises the steps of obtaining a first service log set generated when service data are generated aiming at a first server on a service link in a database.
Acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises:
and acquiring a second service log generated in the database when the second server receives the service data on the service link.
The method comprises the steps of calculating a difference value between writing time and generating time by respectively obtaining the generating time of a first service log set generated when service data are generated on a first server and obtaining the writing time of a second service log generated when a second server receives the service data, and taking the difference value as processing time for transmitting the service data.
Further, processing the service data may include storing the service data.
Acquiring a first service log set generated in the database for the service link when the service data is generated, including:
and acquiring a first service log set which is generated when the service data is generated for a first server on a service link in a database.
Acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises:
and acquiring a second service log generated in the database when the service data is stored for the first server.
The method comprises the steps of calculating a difference value between writing time and generating time by respectively obtaining the generating time of a first service log set generated when service data are generated on a first server and obtaining the writing time of a second service log generated when the first server processes the service data, and taking the difference value as the processing time for storing the service data.
Further, processing the service data may include consuming the service data.
Acquiring a first service log set generated in the database for the service link when the service data is generated, including:
and acquiring a first service log set which is generated when the service data is generated for a first server on a service link in a database.
Acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises:
and acquiring a second service log generated in the database when the service data is consumed for the first server.
The method comprises the steps of calculating a difference value between writing time and generating time by respectively obtaining the generating time of a first service log set generated when service data are generated on a first server and obtaining the writing time of a second service log generated when the first server processes the service data, and taking the difference value as the processing time of consuming the service data.
In the embodiment of the present application, processing the service data may be transmitting service data or storing service data or consuming service data, a difference between the writing time of the service data and the generating time is calculated, and the difference is used as a processing time length for transmitting, storing or consuming the service data, that is, the processing time length for processing different service data is obtained.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a link delay detection apparatus according to an embodiment of the present disclosure.
As shown in fig. 9, the link delay detection device 90 includes:
a generation time obtaining module 901, configured to obtain a first service log set generated in the database when the service data is generated for the service link, and obtain a generation time of the first service log set based on a time buoy inserted in the first service log set.
A write-in time obtaining module 902, configured to obtain a second service log generated in the database when the service link processes the service data, and obtain write-in time for writing the second service log into the database.
And a difference calculating module 903, configured to calculate a difference between the writing time and the generating time, where the difference is used as a processing time duration of the service data.
A delay determining module 904, configured to determine whether there is a transmission delay in the traffic link based on the processing duration.
Referring to fig. 10, fig. 10 is a schematic structural diagram of another link delay detection apparatus according to an embodiment of the present application.
As shown in fig. 10, the link delay detection device 90 includes:
a generation time obtaining module 901, configured to obtain a first service log set generated in the database when the service data is generated for the service link, and obtain a generation time of the first service log set based on a time buoy inserted in the first service log set.
A write-in time obtaining module 902, configured to obtain a second service log generated in the database when the service link processes the service data, and obtain write-in time for writing the second service log into the database.
And a difference calculating module 903, configured to calculate a difference between the writing time and the generating time, where the difference is used as a processing time duration of the service data.
And the time length difference calculation module 9041 is configured to calculate a difference between the processing time length of the service data and a preset processing time length.
And the information output module 9042 is configured to output a prompt message if the difference is greater than the preset threshold.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a generation time obtaining module in another link delay detection apparatus according to an embodiment of the present application.
As shown in fig. 11, the generation time acquisition module 901 includes:
the buoy inserting module 9011 is configured to acquire a first service log set generated in the database when service data is generated for a service link, and adopt a time buoy inserted in the first service log set in a preset period.
The buoy searching module 9012 is configured to obtain a first service log in the first service log set, and search, in the inserted time buoy, a time buoy closest to the first service log.
And the generation time calculation module 9013 is configured to acquire the time indicated by the latest time buoy, and use the time as the generation time of the first service log set.
Optionally, processing the service data includes transmitting the service data.
The method for acquiring the first service log set generated in the database when the service data is generated for the service link comprises the following steps:
the method comprises the steps of obtaining a first service log set generated when service data are generated aiming at a first server on a service link in a database.
Acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises:
and acquiring a second service log generated in the database when the second server receives the service data on the service link.
Further, processing the service data may include storing the service data.
The method for acquiring the first service log set generated in the database when the service data is generated for the service link comprises the following steps:
and acquiring a first service log set which is generated when the service data is generated for a first server on a service link in a database.
Acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises:
and acquiring a second service log generated in the database when the service data is stored for the first server.
Further, processing the service data may include consuming the service data.
The method for acquiring the first service log set generated in the database when the service data is generated for the service link comprises the following steps:
and acquiring a first service log set which is generated when the service data is generated for a first server on a service link in a database.
Acquiring a second service log generated in the database when the service data is processed for the service link, wherein the second service log comprises:
and acquiring a second service log generated in the database when the service data is consumed for the first server.
In an embodiment of the present application, a link delay detection apparatus includes: the system comprises a generation time acquisition module, a write-in time acquisition module, a difference calculation module and a delay determination module, wherein the generation time acquisition module is used for acquiring a first service log set generated by a service link in a database when service data is generated, and acquiring the generation time of the first service log set based on a time buoy inserted in the first service log set, the write-in time acquisition module is used for acquiring a second service log generated by the service link in the database when the service data is processed, and acquiring the write-in time of the second service log written in the database, the difference calculation module is used for calculating the difference between the write-in time and the generation time, and taking the difference as the processing time of the service data, and the delay determination module is used for determining whether the service link has transmission delay based on the processing time. The generation time of the first service log set is accurately acquired through the time buoy inserted in the first service log set, and then the writing time of the second service log written into the database is acquired, because the generation time can reach the preset precision through the time buoy and the precision of the writing time can also be controlled to reach the preset precision, and after the difference value between the writing time and the generation time is calculated, the difference value can be used as the processing time length of the service data, the processing time length of the service data can reach the preset precision, the delay detection of the service link can also reach the preset precision, and therefore the precision of monitoring whether the link is in fault or jammed can be improved.
Embodiments of the present application also provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the steps of the method according to any of the above embodiments.
Further, please refer to fig. 12, which provides a schematic structural diagram of a terminal according to an embodiment of the present application. As shown in fig. 12, the terminal 1200 may include: at least one processor 1201, at least one network interface 1204, a user interface 1203, memory 1205, at least one communication bus 1202.
Wherein a communication bus 1202 is used to enable connective communication between these components.
The user interface 1203 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1203 may also include a standard wired interface and a wireless interface.
The network interface 1204 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Processor 1201 may include one or more processing cores, among others. The processor 1201 interfaces with various interfaces and circuitry throughout the various portions of the terminal 1200 to perform various functions and processes data of the terminal 1200 by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 1205, as well as invoking data stored in the memory 1205. Optionally, the processor 1201 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1201 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 1201, and may be implemented by a single chip.
The Memory 1205 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1205 includes a non-transitory computer-readable medium (non-transitory computer-readable storage medium). The memory 1205 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1205 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1205 may also optionally be at least one storage device located remotely from the processor 1201 described previously. As shown in fig. 12, the memory 1205, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program.
In the terminal 1200 shown in fig. 12, the user interface 1203 is mainly used for providing an input interface for a user, and acquiring data input by the user; the processor 1201 may be configured to call an application program stored in the memory 1205, and specifically perform the following operations:
acquiring a first service log set generated in the database when service data is generated aiming at a service link, and acquiring the generation time of the first service log set based on a time buoy inserted in the first service log set;
acquiring a second service log generated in the database when the service data is processed aiming at the service link, and acquiring the writing time of the second service log written into the database;
calculating a difference value between the writing time and the generating time, and taking the difference value as the processing duration of the service data;
and determining whether the traffic link has transmission delay or not based on the processing time length.
In an embodiment, when determining whether a transmission delay exists in a service link based on a processing duration, the processor 1201 specifically performs the following operations:
calculating a difference value between the processing time length of the service data and a preset processing time length;
and if the difference value is larger than the preset threshold value, outputting prompt information.
In an embodiment, when executing the first service log set generated in the database for the service link when generating the service data, the processor 1201 specifically executes the following operations:
the processor 1201 obtains a first service log set generated in the database for the service link when the service data is generated, and adopts a time buoy inserted in the first service log set by a preset period:
the processor 1201 obtains the time indicated by the latest time buoy as the generation time of the first traffic log set.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of modules is merely a division of logical functions, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the link delay detection method, apparatus, storage medium and terminal provided by the present application, those skilled in the art will recognize that there may be variations in the embodiments and application ranges according to the ideas of the present application.

Claims (8)

1.一种链路延迟检测方法,其特征在于,所述方法包括:1. A link delay detection method, wherein the method comprises: 获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,基于在所述第一业务日志集合中插入的时间浮标获取第一业务日志集合的生成时间;Obtain the first business log set generated when the business data is generated for the business link in the database, and obtain the generation time of the first business log set based on the time buoy inserted in the first business log set; 其中,所述获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,包括:获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,并采用预设周期在所述第一业务日志集合中插入的时间浮标;Wherein, the acquiring the first business log set generated when the business data is generated for the business link in the database includes: acquiring the first business log set generated when the business data is generated for the business link in the database, and using a preset a time buoy periodically inserted in the first service log set; 其中,所述基于在所述第一业务日志集合中插入的时间浮标获取第一业务日志集合的生成时间,包括:获取所述第一业务日志集合中的第一业务日志,在所述插入的时间浮标中查找距离所述第一业务日志最近的时间浮标;获取所述最近的时间浮标指示的时间,将所述时间作为所述第一业务日志集合的生成时间;The obtaining the generation time of the first business log set based on the time buoy inserted in the first business log set includes: obtaining the first business log in the first business log set, and in the inserted Find the time buoy closest to the first service log in the time buoy; obtain the time indicated by the closest time buoy, and use the time as the generation time of the first service log set; 获取数据库中针对所述业务链路在处理所述业务数据时生成的第二业务日志,获取所述第二业务日志写入所述数据库的写入时间;Obtaining the second business log generated in the database for the business link when processing the business data, and obtaining the writing time when the second business log is written into the database; 计算所述写入时间与所述生成时间的差值,将所述差值作为所述业务数据的处理时长;Calculate the difference between the write time and the generation time, and use the difference as the processing time of the business data; 基于所述处理时长,确定所述业务链路是否存在传输延迟。Based on the processing duration, it is determined whether there is a transmission delay in the service link. 2.根据权利要求1所述的方法,其特征在于,所述基于所述处理时长,确定所述业务链路是否存在传输延迟,包括:2. The method according to claim 1, wherein the determining whether there is a transmission delay in the service link based on the processing duration comprises: 计算所述业务数据的处理时长与预设处理时长的差值;calculating the difference between the processing duration of the business data and the preset processing duration; 若所述差值大于预设阈值,则输出提示信息。If the difference is greater than the preset threshold, output prompt information. 3.根据权利要求1所述方法,其特征在于,所述处理所述业务数据包括传输所述业务数据;3. The method according to claim 1, wherein the processing the service data comprises transmitting the service data; 所述获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,包括:The acquisition of the first business log set generated when the business data is generated for the business link in the database includes: 获取数据库中针对业务链路上第一服务器产生业务数据时生成的第一业务日志集合;Obtain the first business log set generated when business data is generated for the first server on the business link in the database; 所述获取数据库中针对所述业务链路在处理所述业务数据时生成的第二业务日志,包括:The obtaining of the second service log generated when processing the service data for the service link in the database includes: 获取数据库中针对所述业务链路上第二服务器在接收所述业务数据时生成的第二业务日志。Acquire a second service log generated in the database for the second server on the service link when the service data is received. 4.根据权利要求1所述方法,其特征在于,所述处理所述业务数据包括存储所述业务数据;4. The method of claim 1, wherein the processing the business data comprises storing the business data; 所述获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,包括:The acquisition of the first business log set generated when the business data is generated for the business link in the database includes: 获取数据库中针对业务链路上第一服务器在产生业务数据时生成的第一业务日志集合;Obtaining the first business log set generated when the first server on the business link generates business data in the database; 所述获取数据库中针对所述业务链路在处理所述业务数据时生成的第二业务日志,包括:The obtaining of the second service log generated when processing the service data for the service link in the database includes: 获取数据库中针对所述第一服务器在存储所述业务数据时生成的第二业务日志。Acquire a second service log generated in the database for the first server when the service data is stored. 5.根据权利要求1所述方法,其特征在于,所述处理所述业务数据包括消费所述业务数据;5. The method according to claim 1, wherein the processing the business data comprises consuming the business data; 所述获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,包括:The acquisition of the first business log set generated when the business data is generated for the business link in the database includes: 获取数据库中针对业务链路上第一服务器在产生业务数据时生成的第一业务日志集合;Obtaining the first business log set generated when the first server on the business link generates business data in the database; 所述获取数据库中针对所述业务链路在处理所述业务数据时生成的第二业务日志,包括:The obtaining of the second service log generated when processing the service data for the service link in the database includes: 获取数据库中针对所述第一服务器在消费所述业务数据时生成的第二业务日志。Acquire a second service log generated in the database for the first server when the service data is consumed. 6.一种链路延迟检测装置,其特征在于,所述装置包括:6. A link delay detection device, characterized in that the device comprises: 生成时间获取模块,用于获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,基于在所述第一业务日志集合中插入的时间浮标获取第一业务日志集合的生成时间;The generation time acquisition module is used to acquire the first business log set generated when the business data is generated for the business link in the database, and obtain the generation time of the first business log set based on the time buoy inserted in the first business log set ; 所述生成时间获取模块包括浮标插入模块,用于获取数据库中针对业务链路在产生业务数据时生成的第一业务日志集合,并采用预设周期在第一业务日志集合中插入的时间浮标;The generation time acquisition module includes a buoy insertion module, which is used for acquiring the first service log set generated when the service data is generated for the service link in the database, and the time buoy inserted in the first service log set with a preset period; 所述生成时间获取模块还包括:浮标查找模块,用于获取第一业务日志集合中的第一业务日志,在插入的时间浮标中查找距离第一业务日志最近的时间浮标;生成时间计算模块,用于获取最近的时间浮标指示的时间,将时间作为第一业务日志集合的生成时间;The generation time acquisition module further includes: a buoy search module for acquiring a first business log in the first business log set, and searching for a time buoy closest to the first business log in the inserted time buoy; a generation time calculation module, used to obtain the time indicated by the most recent time buoy, and use the time as the generation time of the first service log set; 写入时间获取模块,用于获取数据库中针对所述业务链路在处理所述业务数据时生成的第二业务日志,获取所述第二业务日志写入所述数据库的写入时间;a writing time obtaining module, configured to obtain the second business log generated in the database for the business link when processing the business data, and obtain the writing time of the second business log being written into the database; 差值计算模块,用于计算所述写入时间与所述生成时间的差值,将所述差值作为所述业务数据的处理时长;a difference calculation module, configured to calculate the difference between the write time and the generation time, and use the difference as the processing time of the business data; 延迟确定模块,用于基于所述处理时长,确定所述业务链路是否存在传输延迟。A delay determination module, configured to determine whether there is a transmission delay in the service link based on the processing duration. 7.一种计算机存储介质,其特征在于,所述计算机存储介质存储有多条指令,所述指令适于由处理器加载并执行如权利要求1~5任意一项的所述方法的步骤。7. A computer storage medium, characterized in that the computer storage medium stores a plurality of instructions, the instructions are suitable for being loaded by a processor and performing the steps of the method according to any one of claims 1-5. 8.一种终端,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现权利要求1~5任一项所述方法的步骤。8. A terminal, characterized in that it comprises a memory, a processor and a computer program stored in the memory and running on the processor, wherein the processor implements any one of claims 1 to 5 when the processor executes the program. steps of the method described.
CN201910454316.0A 2019-05-29 2019-05-29 Link delay detection method, device, storage medium and terminal Active CN110445667B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910454316.0A CN110445667B (en) 2019-05-29 2019-05-29 Link delay detection method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910454316.0A CN110445667B (en) 2019-05-29 2019-05-29 Link delay detection method, device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110445667A CN110445667A (en) 2019-11-12
CN110445667B true CN110445667B (en) 2021-10-26

Family

ID=68428851

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910454316.0A Active CN110445667B (en) 2019-05-29 2019-05-29 Link delay detection method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110445667B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262725B (en) * 2020-01-07 2022-04-29 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and readable storage medium
CN113468215A (en) * 2020-03-30 2021-10-01 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and computer storage medium
CN112069018B (en) * 2020-07-21 2024-05-31 上海瀚银信息技术有限公司 Database high availability method and system
CN115237727B (en) * 2022-09-21 2022-12-02 云账户技术(天津)有限公司 Method and device for determining most congested sublinks, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106250424A (en) * 2016-07-22 2016-12-21 杭州朗和科技有限公司 The searching method of a kind of daily record context, Apparatus and system
CN106503020A (en) * 2015-09-08 2017-03-15 阿里巴巴集团控股有限公司 Daily record data processing method and processing device
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2684808A1 (en) * 2007-05-08 2008-11-13 Swissqual License Ag Method for determining a network delay
CN108243029B (en) * 2016-12-23 2021-02-19 北京国双科技有限公司 Method for restoring generation time of log, client and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503020A (en) * 2015-09-08 2017-03-15 阿里巴巴集团控股有限公司 Daily record data processing method and processing device
CN106250424A (en) * 2016-07-22 2016-12-21 杭州朗和科技有限公司 The searching method of a kind of daily record context, Apparatus and system
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device

Also Published As

Publication number Publication date
CN110445667A (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN110445667B (en) Link delay detection method, device, storage medium and terminal
CN106020595B (en) Message reply method and device
US10516633B2 (en) Method, system, and storage medium for message processing
US20210119953A1 (en) Method and system for synchronizing instant messages between multiple clients
US20180302350A1 (en) Method for determining candidate input, input prompting method and electronic device
US11861399B2 (en) User specific event threading
CN112214390B (en) Test case generation method, device, system, equipment and medium
US20200021652A1 (en) Method and device for synchronizing data, and electronic device
WO2017078983A1 (en) Notification bundles for affinities between notification data
CN113727406B (en) Communication control method, device, equipment and computer readable storage medium
CN112965799B (en) Prompt method, device, electronic device and medium for task state
CN115037709B (en) Information processing methods, devices, electronic equipment and storage media
CN114493185A (en) Approval processing methods, devices, systems, electronic equipment, storage media and products
CN114328132A (en) State monitoring method, apparatus, device and medium for external data source
KR20220091441A (en) Data synchronization method and device, electronic device, storage media, and computer program
US20180102988A1 (en) Bot monitoring
WO2022142716A1 (en) Information processing method and apparatus regarding wireless hotspot
US11411902B2 (en) Information processing apparatus and non-transitory computer readable medium storing information processing program
AU2018203730A1 (en) Selecting a communication mode
US11599406B2 (en) Common platform for fulfilling different actions
CN115080003A (en) Zero code platform operation method and device, electronic equipment and storage medium
US10374988B2 (en) Activity beacon
CN113168357B (en) Collect duplicate diagnostic data from each user participating in a document collaboration session
WO2017172653A1 (en) Cloud action center
US12277084B2 (en) Context-based workspace personalization using an experience ID

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20250613

Address after: No. 902, 9th Floor, Unit 2, Building 1, No. 333 Jiqing 3rd Road, Chengdu High tech Zone, Chengdu Free Trade Zone, Sichuan Province 610000

Patentee after: Chengdu Yudi Technology Co.,Ltd.

Country or region after: China

Address before: 100007 t4-27 floor, Damei center, courtyard 7, Qingnian Road, Chaoyang District, Beijing

Patentee before: BEIJING DA MI TECHNOLOGY Co.,Ltd.

Country or region before: China