CN106603270A - Tracking method and device for invoked link in distributed system - Google Patents

Tracking method and device for invoked link in distributed system Download PDF

Info

Publication number
CN106603270A
CN106603270A CN201610990310.1A CN201610990310A CN106603270A CN 106603270 A CN106603270 A CN 106603270A CN 201610990310 A CN201610990310 A CN 201610990310A CN 106603270 A CN106603270 A CN 106603270A
Authority
CN
China
Prior art keywords
subsystem
message
link
chain circuit
processing server
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
CN201610990310.1A
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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN201610990310.1A priority Critical patent/CN106603270A/en
Publication of CN106603270A publication Critical patent/CN106603270A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • 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

Abstract

The invention, which belongs to the technical field of the internet network, discloses a tracking method and device for an invoked link in a distributed system. The method comprises: obtaining a service request message of a first subsystem; generating a link message of a second subsystem according to the service request message of the first subsystem; determining a target message processing server corresponding to the second subsystem from a plurality of message processing servers; and sending the link message of the second subsystem to the target message processing server for storage. According to the invention, the corresponding message processor is determined for each subsystem and the link message of each subsystem is sent to the corresponding message processing server for storage, so that link merging on the unified message processing server is not needed and thus too high processing pressure of the message processing server can be avoided. Therefore, decentration type high-efficiency invoked link tracking can be realized and the system performance can be improved.

Description

The method for tracing and device of link are called in distributed system
Technical field
The present invention relates to Internet technical field, call in more particularly to a kind of distributed system link method for tracing and Device
Background technology
In Internet technical field, distributed system includes multiple subsystems, and each subsystem has different functions, many Individual subsystem is processed by the service request information to user, can provide the user service.If sequentially will according to calling Invoked subsystem constitutes one and calls link, by calling link to be tracked and analyze, finding out systematic function Bottleneck, so as to pass through optimization of system config, improves the stability and availability of system.
In order to realize to calling link to be tracked in distributed system, the clothes that prior art passes through interception higher level's subsystem Business request message, obtains the chain circuit message in the service request information, and the chain circuit message includes calling link identification and link sequence Row mark, the link sequences are identified for representing the invoked order of each subsystem, according in secondary sequence modification chain circuit message Link sequences are identified, and obtain amended chain circuit message, and the service request that amended chain circuit message is stored back into intercepting is disappeared In breath, the service request information after renewal is sent to subordinate's subsystem, and amended chain circuit message is sent into system Unique message processing server, multiple invoked subsystems are sent amended link by the message processing server Message is analyzed, and obtains multiple analysis results, and then by merging to multiple analysis results, obtains the tune of this service Use link.
During the present invention is realized, inventor has found that prior art at least has problems with:
In the tracing process for calling link in distributed system, each invoked subsystem is by amended chain Road message is sent to message processing server, and this virtually increased the processing pressure of message processing server, so as to reduce Systematic function.
The content of the invention
In order to solve problem of the prior art, embodiments provide and chasing after for link is called in a kind of distributed system Track method and device, technical scheme is as follows:
On the one hand, there is provided call the method for tracing of link, the distributed system to include many in a kind of distributed system Individual subsystem, methods described includes:
Obtain the service request information of the first subsystem;
According to the service request information of first subsystem, the chain circuit message of the second subsystem is generated, described second is sub The chain circuit message of system includes calling link identification, the chain circuit message mark of the first subsystem and the chain circuit message of the second subsystem Mark;
From multiple message processing servers, the corresponding target message processing server of second subsystem is determined;
The chain circuit message of second subsystem is sent to the target message processing server and is stored.
In another embodiment of the present invention, the service request information according to first subsystem, generates the The chain circuit message of two subsystems, including:
From the service request information of first subsystem, the recalls information of first subsystem is obtained, described the The recalls information of one subsystem include it is described call link identification, first subsystem chain circuit message mark and described second The chain circuit message mark of system;
According to the recalls information of first subsystem, the chain circuit message of second subsystem is generated.
In another embodiment of the present invention, it is described from the service request information of first subsystem, obtain institute Before stating the recalls information of the first subsystem, also include:
When detecting first subsystem and calling the service of second subsystem, triggering first subsystem is Second subsystem generates the chain circuit message mark of second subsystem;
The chain circuit message mark of second subsystem is stored in the recalls information of first subsystem.
In another embodiment of the present invention, it is described from multiple message processing servers, determine second subsystem Unite corresponding target message processing server, including:
Calculate the distance between each message server and described second subsystem;
According to result of calculation, the message processing server closest with second subsystem is chosen, as the mesh Mark message processing server.
In another embodiment of the present invention, methods described also includes:
Link inquiry request is called in reception, described to call link inquiry request to call link identification including described;
Link identification is called according to described, from the message processing server corresponding to each invoked subsystem, is obtained The corresponding son of link identification is called to call link described in taking;
The many sub- call chain roads for getting are merged, obtains described calling that link identification is corresponding to call link.
On the other hand, there is provided call the follow-up mechanism of link, the distributed system to include in a kind of distributed system Multiple subsystems, described device includes:
First acquisition module, for obtaining the service request information of the first subsystem;
Message generating module, for according to the service request information of first subsystem, generating the chain of the second subsystem Road message, the chain circuit message of second subsystem includes calling link identification, the chain circuit message mark of the first subsystem and the The chain circuit message mark of two subsystems;
Determining module, for from multiple message processing servers, determining the corresponding target message of second subsystem Processing server;
Sending module, for sending to the target message processing server the chain circuit message of second subsystem Row storage.
In another embodiment of the present invention, the message generating module, for from the service of first subsystem In request message, the recalls information of first subsystem is obtained, the recalls information of first subsystem includes described calling The chain circuit message mark of link identification, the chain circuit message mark of first subsystem and the second system;According to described The recalls information of one subsystem, generates the chain circuit message of second subsystem.
In another embodiment of the present invention, described device also includes:
Trigger module, for when detecting first subsystem and calling the service of second subsystem, triggering institute State the chain circuit message mark that the first subsystem is that second subsystem generates second subsystem;
Memory module, for the chain circuit message of second subsystem mark to be stored in into calling for first subsystem In information.
In another embodiment of the present invention, the determining module, for calculating each message server with described The distance between two subsystems;According to result of calculation, the message processing server closest with second subsystem is chosen, As the target message processing server.
In another embodiment of the present invention, described device also includes:
Receiver module, for receiving link inquiry request is called, described to call link inquiry request to include the call chain Line;
Second acquisition module, for calling link identification according to described, from disappearing corresponding to each invoked subsystem In breath processing server, the corresponding son of link identification is called to call link described in acquisition;
Merging module, for many sub- call chain roads for getting to be merged, obtains described calling link identification pair That what is answered calls link.
The beneficial effect that technical scheme provided in an embodiment of the present invention is brought is:
By determining corresponding message handling device for each subsystem, and the chain circuit message of each subsystem is sent to it is right The message processing server answered is stored, so as to merge without the need for entering line link in unified message processing server, it is to avoid Message processing server processing pressure is excessive, and that realizes decentralization efficiently calls link tracing, improves systematic function.
Description of the drawings
Technical scheme in order to be illustrated more clearly that the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, can be obtaining other according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of structural representation of distributed system that one embodiment of the invention is provided;
Fig. 2 is the flow process of the method for tracing that link is called in a kind of distributed system that another embodiment of the present invention is provided Figure;
Fig. 3 is the flow process of the method for tracing that link is called in a kind of distributed system that another embodiment of the present invention is provided Figure;
Fig. 4 is the information reporting of multiple subsystem interactions of a certain moment that another embodiment of the present invention is provided and transmission Flow chart;
Fig. 5 is the structure of the follow-up mechanism that link is called in a kind of distributed system that another embodiment of the present invention is provided Schematic diagram.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 shows a kind of distributed system, and the distributed system is provided in an embodiment of the present invention distributed for performing The method for tracing of link is called in system, referring to Fig. 1, the distributed system includes:Terminal 101, multiple subsystems 102 are (such as son System A, subsystem B, subsystem C and subsystem D etc.) and multiple message processing servers 103 (such as message processing server a, disappear Breath processing server b, message processing server c and message processing server d).
Wherein, terminal 101 can be smart mobile phone, panel computer, notebook computer etc., and the present embodiment is not to terminal 101 Specific product form make specific restriction.In order to meet the use demand of user, various applications are installed in terminal 101, including Shopping application, navigation application, social networking application etc..
Each subsystem 102 has different functions, and collaboration provides the user service.Multiple subsystems 102 are according to calling Order, can form father and son's call relation, in Fig. 1 subsystem A can call subsystem B, subsystem C and subsystem D, according to calling time Sequence, subsystem A and subsystem B can form father and son's call relation, and subsystem A and subsystem C can form father and son's call relation, subsystem System A and subsystem D can form father and son's call relation.
Each message processing server 103 is respectively provided with data storage capacities, can store the chain circuit message of corresponding subsystem.Ginseng See Fig. 1, message processing server a is corresponding with subsystem A, can storage subsystem A chain circuit message;Message processing server b with Subsystem B correspondence, can storage subsystem B chain circuit message;Message processing server c is corresponding with subsystem C, can storage subsystem The chain circuit message of C;Message processing server d is corresponding with subsystem D, can storage subsystem D chain circuit message.
The method for tracing that link is called in a kind of distributed system is embodiments provided, the distributed system includes Multiple subsystems, referring to Fig. 2, method flow provided in an embodiment of the present invention includes:
201st, the service request information of the first subsystem is obtained.
202nd, according to the service request information of the first subsystem, the chain circuit message of the second subsystem, second subsystem are generated The chain circuit message of system includes calling link identification, the chain circuit message mark of the first subsystem and the chain circuit message mark of the second subsystem Know.
203rd, from multiple message processing servers, the corresponding target message processing server of the second subsystem is determined.
204th, the chain circuit message of the second subsystem is sent to target message processing server and is stored.
Method provided in an embodiment of the present invention, by determining corresponding message handling device for each subsystem, and by each The chain circuit message of subsystem is sent to corresponding message processing server and is stored, so as to without the need for taking in unified Message Processing Business device enters line link merging, it is to avoid message processing server processing pressure is excessive, and that realizes decentralization efficiently call link Follow the trail of, improve systematic function.
In another embodiment of the present invention, according to the service request information of the first subsystem, the second subsystem is generated Chain circuit message, including:
From the service request information of the first subsystem, the recalls information of the first subsystem, the tune of the first subsystem are obtained Include the chain circuit message mark of call chain line, the chain circuit message mark of the first subsystem and second system with information;
According to the recalls information of the first subsystem, the chain circuit message of the second subsystem is generated.
In another embodiment of the present invention, from the service request information of the first subsystem, the first subsystem is obtained Recalls information before, also include:
When detecting the first subsystem and calling the service of the second subsystem, the first subsystem of triggering is that the second subsystem is given birth to Chain circuit message into the second subsystem is identified;
The chain circuit message mark of the second subsystem is stored in the recalls information of the first subsystem.
In another embodiment of the present invention, from multiple message processing servers, determine that the second subsystem is corresponding Target message processing server, including:
Calculate the distance between each message server and the second subsystem;
According to result of calculation, choose and the closest message processing server of the second subsystem, at target message Reason server.
In another embodiment of the present invention, the method also includes:
Link inquiry request is called in reception, calls link inquiry request to include calling link identification;
According to link identification is called, from the message processing server corresponding to each invoked subsystem, obtain and adjust Link is called with the corresponding son of link identification;
The many sub- call chain roads for getting are merged, obtains calling that link identification is corresponding to call link.
Above-mentioned all optional technical schemes, can adopt the alternative embodiment for arbitrarily combining to form the present invention, and here is no longer Repeat one by one.
Based on the implementation environment shown in Fig. 1, embodiments provide and chasing after for link is called in a kind of distributed system Track method, the distributed system includes multiple subsystems, and in a distributed manner system is performed as a example by the present invention, and referring to Fig. 3, the present invention is real Applying the method flow of example offer includes:
301st, when detecting the first subsystem and calling the service of the second subsystem, the first subsystem of triggering is the second subsystem System generates the chain circuit message mark of the second subsystem.
In the present embodiment, multiple application programs are installed in terminal, including shopping application, social networking application etc., arbitrary Using in running, user can be according to use demand, and sending service using corresponding distributed system to this by terminal please Message is sought, to obtain required service.For the ease of being subsequently tracked to the link that calls that this is serviced, in distributed system When the subsystem of the middle the superiors receives the service request information of user, the subsystem of the superiors is the service request information life Link identification being called into one, and generating the chain circuit message of the superiors' subsystem, the chain circuit message includes the superiors' subsystem Chain circuit message mark, root message identifier, father's message identifier etc..In practice for the subsystem of the superiors, its chain circuit message mark, Root message identifier, father's message identifier are identical.Afterwards, the superiors' subsystem is calculated with each message handling services in distributed system The distance between device, and according to result of calculation, choose and the closest message processing server of the superiors' subsystem, and then The chain circuit message of the superiors' subsystem is sent to the selected message processing server and is stored.It is sub when the superiors are detected System calls other subsystems based on RPC (Remote Procedure Call Protocol, remote procedure call protocol) It is the chain circuit message mark that other subsystems generate other subsystems by the triggering the superiors subsystem during service, and according to most The chain circuit message of upper-layer subsystem is identified, calls chain circuit message mark of link identification, other subsystems etc. to generate the superiors' The recalls information of system, and then the recalls information of the superiors' subsystem is stored in service request information, after being updated Service request information, and then the service request information after updating is sent to other subsystems, the superiors' subsystem Recalls information can be used for other subsystems and generate chain circuit message.
What the above described the superiors' subsystem and other subsystems in distributed system calls link when interacting Tracing process, for the tracing process for calling link in distributed system between any two subsystem, the present embodiment is with first Illustrate as a example by subsystem and the second subsystem.Wherein, the first subsystem and the second subsystem are two in distributed system Individual subsystem, and the first subsystem is the upper system of the second subsystem, the second subsystem is the underlying system of the first subsystem, During service is provided the user, the first subsystem needs the service for calling the second subsystem.When detecting the first subsystem When system calls the service of the second subsystem based on RPC, can trigger the first subsystem is that the second subsystem generates the second subsystem Chain circuit message is identified.
302nd, the chain circuit message according at least to the first subsystem identify, the chain circuit message of the second subsystem mark, generate the The recalls information of one subsystem.
Chain circuit message based on the second subsystem is identified, and the present embodiment can be according to root message identifier, the chain of the first subsystem Road message identifier, link identification etc. is called, generate the recalls information of the first subsystem, the recalls information middle finger of first subsystem Show the father and son's call relation between the chain circuit message mark of the first subsystem and the chain circuit message mark of the second subsystem, so as to Can be inquired about successively according to father and son's call relation when link inquiry is subsequently called.
303rd, the service request information of the first subsystem is obtained, the service request information calls letter including the first subsystem Breath.
Based on the recalls information of the first subsystem for being generated, can be by the way that the recalls information of the first subsystem be stored in into In the service request information that one subsystem upper-layer subsystem sends, the service request information of the first subsystem is obtained, so as to logical Cross and the service request information of first subsystem is sent to the second subsystem, to call the second subsystem to provide service.Enter one Step ground, when detecting the second subsystem and receiving the service request information of the first subsystem, can obtain from the second subsystem The service request information of the first subsystem.
304th, according to the service request information of the first subsystem, the chain circuit message of the second subsystem is generated.
Based on the service request information of the first accessed subsystem, can be from the service request information of first subsystem In, the recalls information of first subsystem is obtained, and then according to the recalls information of the first subsystem, generate the chain of the second subsystem Road message, the chain circuit message of second subsystem includes calling link identification, the chain circuit message mark of the first subsystem, second sub Chain circuit message mark, root message identifier of system etc..
305th, from multiple message processing servers, the corresponding target message processing server of the second subsystem is determined.
In order to there is the processing pressure for reducing message processing server, while targeted specifically to the chain circuit message of different sub-systems Processed, after the chain circuit message of the second subsystem is generated, can calculate each message processing server and the second subsystem it Between distance, and then according to result of calculation, choose and the closest message processing server of the second subsystem, and should be with the The closest message processing server of two subsystems is used as target message processing server.
306th, the chain circuit message of the second subsystem is sent to target message processing server and is stored.
After target message processing server is determined, the chain circuit message asynchronous transmission of the second subsystem can be disappeared to target Breath processing server is stored, so as to local service when calling link to be tracked, can be according to target message at The chain circuit message of the second subsystem stored in reason server, gets and complete calls link.
So far, realized to calling link to chase after between the first subsystem and the second subsystem by above-mentioned steps 301 to 306 Track, in distributed system between other subsystems when calling link to be tracked, can adopt above-mentioned steps 301 to 306 side Formula, the present embodiment is repeated no more.
In order to improve the performance of distributed system, after this service terminates, user can be by terminal to this offer clothes The distributed system transmission link inquiry request of business, the link inquiry request includes calling link identification, and according to this link is called Mark, from the beginning of distributed system the superiors subsystem, can be from the corresponding message processing server of each invoked subsystem In, obtain this and call the corresponding son of link identification to call link, and according to the father and son's call relation between upper and lower layer subsystem, will be from The many sub- call chain roads for obtaining merge, and obtain calling that link identification is corresponding calls link, and then by calling for obtaining Link is sent to terminal, is shown by terminal.
For said process, in order to make it easy to understand, illustrating by taking Fig. 4 as an example below.
Referring to Fig. 4, distributed system includes 4 subsystems, respectively subsystem A, subsystem B, subsystem C and subsystem System D, when subsystem A receives the service request information of user, generates the chain circuit message of subsystem A, the link of subsystem A Message includes root message identifier A-0a01515c-404886-01, father's message identifier A-0a01515c-404886-01 and subsystem The chain circuit message mark A-0a01515c-404886-01 of A, and then by the chain circuit message asynchronous transmission of subsystem A to distance most Near message processing server.Afterwards, subsystem A call subsystems B, and the chain circuit message mark for generating subsystem B for subsystem B Know, this is designated A-0a01515c-404886-02, then by the mark of the chain circuit message comprising subsystem B, the chain of subsystem A The recalls information of road message identifier, root message identifier etc. is stored in service request information and sends to subsystem B, and subsystem B connects After receiving the recalls information, according to the recalls information, the chain circuit message of subsystem B, the chain circuit message bag of subsystem B are generated Include the chain of root message identifier A-0a01515c-404886-01, father's message identifier A-0a01515c-404886-01 and subsystem B Road message identifier A-0a01515c-404886-02, and then the chain circuit message asynchronous transmission of subsystem B is disappeared to closest Breath processing server, in the invoked procedure of sub-system B, subsystem A generates chain also by call subsystem C for subsystem C Road message identifier, this is designated A-0a01515c-404886-03, then by the mark of the chain circuit message comprising subsystem C, son The recalls information of chain circuit message mark, the root message identifier of system A etc. is stored in service request information and sends to subsystem C, Subsystem C is received after the recalls information, according to the recalls information, generates the chain circuit message of subsystem C, subsystem C's Chain circuit message includes root message identifier A-0a01515c-404886-01, father's message identifier A-0a01515c-404886-01 and son The chain circuit message mark A-0a01515c-404886-03 of system C, and then by the chain circuit message asynchronous transmission of subsystem C to distance Recent news processing server, after the service call of subsystem A terminates, subsystem B also by call subsystem D, to subsystem In the invoked procedure of system D, also chain circuit message mark will be generated for subsystem D, this is designated B-0a01515c-404886-01, so Afterwards by the recalls information of the mark of the chain circuit message comprising subsystem D, chain circuit message mark, the root message identifier of subsystem B etc. It is stored in service request information and sends to subsystem D, subsystem D is received after the recalls information, according to the recalls information, Generate the chain circuit message of subsystem D, the chain circuit message of subsystem D include root message identifier A-0a01515c-404886-01, The chain circuit message mark B-0a01515c-404886-01 of father's message identifier A-0a01515c-404886-02 and subsystem D, enters And by the chain circuit message asynchronous transmission of subsystem D to closest message processing server.
Method provided in an embodiment of the present invention, by determining corresponding message handling device for each subsystem, and by each The chain circuit message of subsystem is sent to corresponding message processing server and is stored, so as to without the need for taking in unified Message Processing Business device enters line link merging, it is to avoid message processing server processing pressure is excessive, and that realizes decentralization efficiently call link Follow the trail of, improve systematic function.
Referring to Fig. 5, the follow-up mechanism that link is called in a kind of distributed system is embodiments provided, this is distributed System includes multiple subsystems, and the device includes:
First acquisition module 501, for obtaining the service request information of the first subsystem;
Message generating module 502, for according to the service request information of the first subsystem, generating the link of the second subsystem Message, the chain circuit message of second subsystem includes calling link identification, the chain circuit message mark of the first subsystem and second sub The chain circuit message mark of system;
Determining module 503, for from multiple message processing servers, determining at the corresponding target message of the second subsystem Reason server;
Sending module 504, is deposited for the chain circuit message of the second subsystem to be sent to target message processing server Storage.
In another embodiment of the present invention, message generating module 502, for disappearing from the service request of the first subsystem In breath, the recalls information of the first subsystem is obtained, the recalls information of first subsystem includes calling link identification, the first subsystem The chain circuit message mark of system and the chain circuit message mark of second system;According to the recalls information of the first subsystem, second is generated sub The chain circuit message of system.
In another embodiment of the present invention, the device also includes:
Trigger module, for when detecting the first subsystem and calling the service of the second subsystem, triggering the first subsystem For the chain circuit message mark that the second subsystem generates the second subsystem;
Memory module, for the chain circuit message of the second subsystem mark to be stored in the recalls information of the first subsystem.
In another embodiment of the present invention, determining module 503, for calculating each message server and the second subsystem The distance between system;According to result of calculation, choose and the closest message processing server of the second subsystem, disappear as target Breath processing server.
In another embodiment of the present invention, the device also includes:
Receiver module, for receiving link inquiry request is called, and this calls link inquiry request to include calling link identification;
Second acquisition module, for according to link identification is called, from the message corresponding to each invoked subsystem In reason server, acquisition calls the corresponding son of link identification to call link;
Merging module, for many got sub- call chain roads to be merged, obtains calling link identification corresponding Call link.
In sum, device provided in an embodiment of the present invention, by determining corresponding message handling device for each subsystem, And the chain circuit message of each subsystem is sent to into corresponding message processing server is stored, so as to without the need for disappear in unified Breath processing server enters line link merging, it is to avoid message processing server processing pressure is excessive, realizes the efficient of decentralization Link tracing is called, systematic function is improve.
It should be noted that:The follow-up mechanism that link is called in the distributed system that above-described embodiment is provided is following the trail of distribution In formula system when calling link, be only illustrated with the division of above-mentioned each functional module, in practical application, can basis Need and completed above-mentioned functions distribution by different functional modules, the follow-up mechanism of link will be called in distributed system Internal structure is divided into different functional modules, to complete all or part of function described above.In addition, above-described embodiment The method for tracing embodiment of link is called to belong in follow-up mechanism and distributed system that link is called in the distributed system of offer In same design, it implements process and refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that realizing all or part of step of above-described embodiment can pass through hardware To complete, it is also possible to which the hardware that correlation is instructed by program is completed, and described program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only storage, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not to limit the present invention, all spirit in the present invention and Within principle, any modification, equivalent substitution and improvements made etc. should be included within the scope of the present invention.

Claims (10)

1. the method for tracing of link is called in a kind of distributed system, it is characterised in that the distributed system includes many height System, methods described includes:
Obtain the service request information of the first subsystem;
According to the service request information of first subsystem, the chain circuit message of the second subsystem, second subsystem are generated Chain circuit message include call link identification, the first subsystem chain circuit message mark and the second subsystem chain circuit message mark Know;
From multiple message processing servers, the corresponding target message processing server of second subsystem is determined;
The chain circuit message of second subsystem is sent to the target message processing server and is stored.
2. method according to claim 1, it is characterised in that the service request according to first subsystem disappears Breath, generates the chain circuit message of the second subsystem, including:
From the service request information of first subsystem, the recalls information of first subsystem is obtained, described first is sub The recalls information of system calls link identification, the chain circuit message mark of first subsystem and the second system including described Chain circuit message mark;
According to the recalls information of first subsystem, the chain circuit message of second subsystem is generated.
3. method according to claim 2, it is characterised in that the service request information from first subsystem In, before obtaining the recalls information of first subsystem, also include:
When detecting first subsystem and calling the service of second subsystem, first subsystem is triggered for described Second subsystem generates the chain circuit message mark of second subsystem;
The chain circuit message mark of second subsystem is stored in the recalls information of first subsystem.
4. method according to claim 1, it is characterised in that described from multiple message processing servers, it is determined that described The corresponding target message processing server of second subsystem, including:
Calculate the distance between each message server and described second subsystem;
According to result of calculation, the message processing server closest with second subsystem is chosen, disappeared as the target Breath processing server.
5. method according to claim 1, it is characterised in that methods described also includes:
Link inquiry request is called in reception, described to call link inquiry request to call link identification including described;
Link identification is called according to described, from the message processing server corresponding to each invoked subsystem, institute is obtained State and call the corresponding son of link identification to call link;
The many sub- call chain roads for getting are merged, obtains described calling that link identification is corresponding to call link.
6. the follow-up mechanism of link is called in a kind of distributed system, it is characterised in that the distributed system includes many height System, described device includes:
First acquisition module, for obtaining the service request information of the first subsystem;
Message generating module, for according to the service request information of first subsystem, the link for generating the second subsystem to disappear Breath, the chain circuit message of second subsystem includes calling link identification, the chain circuit message mark of the first subsystem and second sub The chain circuit message mark of system;
Determining module, for from multiple message processing servers, determining that the corresponding target message of second subsystem is processed Server;
Sending module, is deposited for the chain circuit message of second subsystem to be sent to the target message processing server Storage.
7. device according to claim 6, it is characterised in that the message generating module, for from first subsystem In the service request information of system, the recalls information of first subsystem is obtained, the recalls information of first subsystem includes It is described to call the chain circuit message of link identification, the chain circuit message mark of first subsystem and the second system to identify;Root According to the recalls information of first subsystem, the chain circuit message of second subsystem is generated.
8. device according to claim 7, it is characterised in that described device also includes:
Trigger module, for when detecting first subsystem and calling the service of second subsystem, triggering described the One subsystem is the chain circuit message mark that second subsystem generates second subsystem;
Memory module, for the chain circuit message of second subsystem mark to be stored in the recalls information of first subsystem In.
9. device according to claim 6, it is characterised in that the determining module, for calculating each message server The distance between with second subsystem;According to result of calculation, choose at the message closest with second subsystem Reason server, as the target message processing server.
10. device according to claim 6, it is characterised in that described device also includes:
Receiver module, for receiving link inquiry request is called, described to call link inquiry request to include the call chain road sign Know;
Second acquisition module, for calling link identification according to described, from the message corresponding to each invoked subsystem In reason server, the corresponding son of link identification is called to call link described in acquisition;
Merging module, for many sub- call chain roads for getting to be merged, obtains described calling link identification corresponding Call link.
CN201610990310.1A 2016-11-10 2016-11-10 Tracking method and device for invoked link in distributed system Pending CN106603270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610990310.1A CN106603270A (en) 2016-11-10 2016-11-10 Tracking method and device for invoked link in distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610990310.1A CN106603270A (en) 2016-11-10 2016-11-10 Tracking method and device for invoked link in distributed system

Publications (1)

Publication Number Publication Date
CN106603270A true CN106603270A (en) 2017-04-26

Family

ID=58590824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610990310.1A Pending CN106603270A (en) 2016-11-10 2016-11-10 Tracking method and device for invoked link in distributed system

Country Status (1)

Country Link
CN (1) CN106603270A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107404420A (en) * 2017-09-11 2017-11-28 北京奇艺世纪科技有限公司 One kind calls link method for monitoring performance and device
CN108183927A (en) * 2017-11-22 2018-06-19 链家网(北京)科技有限公司 The monitoring method and system that a kind of distributed system link calls
CN109726016A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of link tracing methods, devices and systems for distributed system
CN109923847A (en) * 2018-08-29 2019-06-21 华为技术有限公司 Call discovery method, apparatus, equipment and the storage medium of link
CN110737465A (en) * 2018-07-20 2020-01-31 武汉斗鱼网络科技有限公司 function call path acquisition method and related device
WO2020259003A1 (en) * 2019-06-27 2020-12-30 深圳前海微众银行股份有限公司 Link tracking method and apparatus
CN114003472A (en) * 2022-01-04 2022-02-01 连连(杭州)信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN114302249A (en) * 2020-09-22 2022-04-08 华为云计算技术有限公司 Transmission chain information generation method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414638A (en) * 2013-07-26 2013-11-27 华为技术有限公司 Message processing server and method and system for distributed message processing
CN104219316A (en) * 2014-09-12 2014-12-17 微梦创科网络科技(中国)有限公司 Method and device for processing call request in distributed system
CN104601696A (en) * 2015-01-13 2015-05-06 北京京东尚科信息技术有限公司 Service processing method and service invoking frame, device and architecture
CN104811459A (en) * 2014-01-23 2015-07-29 阿里巴巴集团控股有限公司 Processing method, processing device and system for message services and message service system
CN105808328A (en) * 2014-12-31 2016-07-27 杭州华为数字技术有限公司 Task scheduling method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414638A (en) * 2013-07-26 2013-11-27 华为技术有限公司 Message processing server and method and system for distributed message processing
CN104811459A (en) * 2014-01-23 2015-07-29 阿里巴巴集团控股有限公司 Processing method, processing device and system for message services and message service system
CN104219316A (en) * 2014-09-12 2014-12-17 微梦创科网络科技(中国)有限公司 Method and device for processing call request in distributed system
CN105808328A (en) * 2014-12-31 2016-07-27 杭州华为数字技术有限公司 Task scheduling method, device and system
CN104601696A (en) * 2015-01-13 2015-05-06 北京京东尚科信息技术有限公司 Service processing method and service invoking frame, device and architecture

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107404420A (en) * 2017-09-11 2017-11-28 北京奇艺世纪科技有限公司 One kind calls link method for monitoring performance and device
CN107404420B (en) * 2017-09-11 2021-10-15 北京奇艺世纪科技有限公司 Call link performance monitoring method and device
CN109726016A (en) * 2017-10-30 2019-05-07 阿里巴巴集团控股有限公司 A kind of link tracing methods, devices and systems for distributed system
CN108183927A (en) * 2017-11-22 2018-06-19 链家网(北京)科技有限公司 The monitoring method and system that a kind of distributed system link calls
CN110737465B (en) * 2018-07-20 2023-09-22 深圳市大梦龙途网络科技有限公司 Method and related device for acquiring function call path
CN110737465A (en) * 2018-07-20 2020-01-31 武汉斗鱼网络科技有限公司 function call path acquisition method and related device
CN109923847A (en) * 2018-08-29 2019-06-21 华为技术有限公司 Call discovery method, apparatus, equipment and the storage medium of link
WO2020042029A1 (en) * 2018-08-29 2020-03-05 华为技术有限公司 Discovery method for invoked link, apparatus, device, and storage medium
CN109923847B (en) * 2018-08-29 2021-01-15 华为技术有限公司 Discovery method, device, equipment and storage medium for call link
WO2020259003A1 (en) * 2019-06-27 2020-12-30 深圳前海微众银行股份有限公司 Link tracking method and apparatus
CN114302249A (en) * 2020-09-22 2022-04-08 华为云计算技术有限公司 Transmission chain information generation method and device
CN114003472B (en) * 2022-01-04 2022-04-12 连连(杭州)信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN114003472A (en) * 2022-01-04 2022-02-01 连连(杭州)信息技术有限公司 Data processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106603270A (en) Tracking method and device for invoked link in distributed system
CN110958218B (en) Data transmission method based on multi-network communication and related equipment
US20200374288A1 (en) Block chain-based multi-chain management method and system, electronic device, and storage medium
CN103020256B (en) A kind of association rule mining method of large-scale data
CN109491758A (en) Docker mirror image distribution method, system, data gateway and computer readable storage medium
CN106911780A (en) Traffic ID generation method, apparatus and system
WO2020259003A1 (en) Link tracking method and apparatus
CN109923847A (en) Call discovery method, apparatus, equipment and the storage medium of link
CN110611667B (en) Dynamic position privacy protection method and device in edge computing environment
CN102769709B (en) A kind of for providing the method and apparatus of service contact information to user
CN107301091A (en) Resource allocation methods and device
EP4037347B1 (en) Communication methods and apparatuses for vehicle, and electronic device
CN105095313A (en) Data access method and equipment
CN110493308B (en) Distributed consistency system session method and device, storage medium and server
CN106210163A (en) IP address-based localization method and device
CN110290168A (en) Data transmission method for uplink, device, server and storage medium
CN112383878B (en) Collaborative computing method and electronic device
CN112560724A (en) Vehicle monitoring method and device and cloud control platform
CN113900907B (en) Mapping construction method and system
CN110535661A (en) Method for processing business, device, electronic equipment and storage medium based on block chain
US20190370293A1 (en) Method and apparatus for processing information
CN103095784A (en) Cloud user mapping system and method
CN113360210A (en) Data reconciliation method and device, computer equipment and storage medium
CN111949720B (en) Data analysis method based on big data and artificial intelligence and cloud data server
CN106452816B (en) Information processing method, server and client

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17

Applicant after: Guangzhou KuGou Networks Co., Ltd.

Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F

Applicant before: Guangzhou KuGou Networks Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426