CN108199876A - A kind of daily record data store method, device and distribution service - Google Patents

A kind of daily record data store method, device and distribution service Download PDF

Info

Publication number
CN108199876A
CN108199876A CN201711472167.8A CN201711472167A CN108199876A CN 108199876 A CN108199876 A CN 108199876A CN 201711472167 A CN201711472167 A CN 201711472167A CN 108199876 A CN108199876 A CN 108199876A
Authority
CN
China
Prior art keywords
server
call request
call
daily record
record data
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
CN201711472167.8A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201711472167.8A priority Critical patent/CN108199876A/en
Publication of CN108199876A publication Critical patent/CN108199876A/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/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • 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/133Protocols for remote procedure calls [RPC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention provides a kind of daily record data store method, device and distributed systems.Method includes:It determines to need to during lower level servers the second call request of transmission when the first call request for receiving parent server transmission, and according to the calling event in the first call request, the second call request is sent to lower level servers;Wherein the first call request and the second call request include identical mark;The second call result that lower level servers return is received, and based on the second call result, generates and preserves the second daily record data corresponding with the second call request;According to the second call result, the first call result of generation superior server return;Based on the first call result, generate and preserve the first daily record data corresponding with the first call request;In the present invention, comprising the identical mark in daily record data corresponding with call request, thus the present invention can the daily record data to be collected of direct basis mark location, improve collection efficiency.

Description

A kind of daily record data store method, device and distribution service
Technical field
The present invention relates to Distributed Services technical field, more specifically, being to be related to a kind of daily record data store method, dress It puts and distribution service.
Background technology
In distribution service, RPC (Remote Procedure Call, remote procedure call) can be largely used System carries out the decoupling of system module.For including the distribution service of multiple servers, when wherein any one takes After business device receives client's request or the call request for receiving other servers, if necessary to carry out next stage calling, then to correspondence Server initiate corresponding call request.Therefore, during arbitrary client request is performed, according between server Call relation, a certain number of servers can be called step by step.For arbitrary primary calling therein, the initiation server of calling Daily record data is preserved to record the IP (Internet of the local terminal server of this calling in local when completing primary call Protocol, interconnection agreement between network) address, opposite end server IP address, call state and call and take etc.;It calls Execute server preserves daily record data to record this called local terminal server when completing primary called in local IP address, the IP address of opposite end server handle state and handle time-consuming etc..
For each server called step by step during arbitrary client request is performed, technical staff is simultaneously unclear Call relation of the Chu between them.If technical staff expects the call relation between each server, need from reception originally The server of secondary client's request starts, and according to the opposite end server ip included in server log data, each service is logged in by platform Device is collected asks relevant daily record data with this client, for post analysis processing.However, in any one server A large amount of daily record data is stored, by checking the log information in each daily record data one by one, in these daily record datas really Fixed and this client asks relevant daily record data, undoubtedly quite time-consuming, inefficient.
Invention content
In view of this, the present invention provides a kind of daily record data store method, device and distribution service, existing to solve It takes, inefficient ask when having in technology daily record data needed for being determined in a large amount of daily record datas of any one server storage Topic.Technical solution is as follows:
Based on an aspect of of the present present invention, the present invention provides a kind of daily record data store method, the method includes:
When the first call request for receiving parent server transmission, and according to the calling thing in first call request Part determines to need to during lower level servers the second call request of transmission, and the second call request is sent to the lower level servers;Its Described in the first call request and second call request include identical mark;
The second call result that the lower level servers return is received, second call result is by the lower level servers In response to being obtained after second call request, and based on second call result, generate and preserve and called with described second Ask corresponding second daily record data;
According to second call result, the first call result returned to the parent server is generated;
Based on first call result, generate and preserve the first daily record data corresponding with first call request;
Wherein, the identical mark is included in daily record data corresponding with call request.
Optionally, it is described to be identified as higher level's clothes when the parent server is to receive the server of client's request The mark that business device is requested to generate according to the client;
Wherein, it after the parent server receives first call result, generates and preserves and called with described first Ask corresponding third daily record data.
Optionally, the method further includes:
It is called when determining not need to send second to lower level servers according to the calling event in first call request During request, the calling event in first call request that responds obtains third calling knot corresponding with first call request Fruit generates and preserves the 4th daily record data corresponding with first call request.
Optionally, the method further includes:
Obtain the daily record data preserved on each server;
All daily record datas got are stored to a storage device.
Optionally, the method further includes:
According to the target identification got, the target journaling number for including the target identification is obtained from each server According to;
According to all target journaling data got, at least one recalls information is generated.
Optionally, all target journaling data that the foundation is got, at least one recalls information of generation include:
It obtains in the target journaling data, the IP address for the local terminal server that each target journaling data include and opposite end The IP address of server;
Determine two target journaling numbers comprising the IP address of identical local terminal server and the IP address of opposite end server According to for one group of target journaling data;
Summarize the data of two target journaling data in each group of target journaling data, generation and each group of target journaling number According to a corresponding recalls information.
Optionally, the method further includes:
The calling included in each recalls information of generation is obtained to initiate the IP address of server and call to perform service The IP address of device;
For arbitrary two recalls informations, when called in a wherein recalls information IP address of initiating server with it is another When calling the IP address of execute server identical in recalls information, determine the identical IP address for an overlapping point IP address;
According to the calling included in each recalls information with initiating the IP address of server, the IP for calling execute server Location and determining overlapping point IP address generate the calling topological structure of each server.
Based on another aspect of the present invention, the present invention provides a kind of daily record data save set, and described device includes:
First processing units, for working as the first call request for receiving parent server transmission, and according to described first Calling event in call request determines to need to during lower level servers the second call request of transmission, is sent out to the lower level servers Send the second call request;Wherein described first call request and second call request include identical mark;
Second processing unit, for receiving the second call result that the lower level servers return, described second calls knot Fruit by the lower level servers in response to being obtained after second call request and for being based on second call result, It generates and preserves the second daily record data corresponding with second call request;
Third processing unit, for according to second call result, generating first returned to the parent server Call result and for being based on first call result, generating and preserving and first call request corresponding first Daily record data;
Wherein, the identical mark is included in daily record data corresponding with call request.
Optionally, described device further includes:
Fourth processing unit determines not needing to take to subordinate for working as according to the calling event in first call request When business device sends the second call request, the calling event responded in first call request obtains and first call request Corresponding third call result generates and preserves the 4th daily record data corresponding with first call request.
A kind of distribution service, the distributed system include multiple servers, and the multiple server at least wraps First server, second server, third server and the 4th server are included, wherein:
The first server is used to send the first call request to the second server;
The second server is used to determine to need to the third according to the calling event in first call request When server sends the second call request, the second call request is sent to the third server;Wherein described first calling please Second call request of summing includes identical mark;
The third server is used to determine not need to described the according to the calling event in second call request When four servers send third call request, second call request is responded, obtains the second call result, and by described second Call result return the second server and, based on second call result, generate and preserve and described second calls Ask corresponding 4th daily record data;
The second server is additionally operable to, based on second call result, generate and preserve and second call request Corresponding second daily record data, and according to second call result, generate first returned to the first server and call As a result, it and based on first call result, generates and preserves the first daily record data corresponding with first call request;
The first server is additionally operable to receive first call result, generates and preserves and first call request Corresponding third daily record data.
Compared with prior art, the present invention includes advantages below:
In daily record data store method provided by the invention, device and distributed system, server is receiving higher level's clothes The first call request that business device is sent, and determine to need to send to lower level servers according to the calling event in the first call request During the second call request, the second call request is sent to lower level servers, in first call request and the second call request Including identical mark.Server is receiving what lower level servers returned, and the lower level servers are in response to the second call request After the second call result obtained afterwards, based on second call result, generate and preserve corresponding with second call request The second daily record data;And the first call result returned according to second call result, generation superior server, and Based on first call result, generate and preserve the first daily record data corresponding with first call request.
Identical mark is carried when server at different levels is called by call request in the present invention, and generate with Comprising identical mark in the corresponding daily record data of call request, therefore technical staff collects day in any one server During will data, can the daily record data to be collected of direct basis mark location, saved the time compared to existing method, improve Collection efficiency.
Description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention, for those of ordinary skill in the art, without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the configuration diagram of distribution service;
Fig. 2 is a kind of flow chart of daily record data store method provided by the invention;
Fig. 3 is the flow chart of another daily record data store method provided by the invention;
Fig. 4 is the connection relation between server in the present invention in distribution service, log concentrator and memory Schematic diagram;
Fig. 5 is a kind of structure diagram of daily record data save set provided by the invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without making creative work Embodiment shall fall within the protection scope of the present invention.
Daily record data store method provided by the invention is applied to distribution service, as shown in Figure 1, the distribution takes Business system includes multiple servers, and existence information interacts between multiple server.
In distribution service, the calling that any one server reception client asked or received other servers please After asking, if necessary to carry out next stage calling, then corresponding call request is initiated to corresponding server.In the following realities of the present invention It applies in example, for ease of description, present invention definition for any one server, for server A, is sent to server A The server of call request is referred to as the parent server of the server A, and server A continues to send the service of call request backward Device is referred to as the lower level servers of the server A.
Specifically, daily record data store method provided by the invention is as shown in Fig. 2, method includes:
Step 101, when the first call request for receiving parent server transmission, and according in first call request Calling event determine need to lower level servers send the second call request when, to the lower level servers send second call Request;Wherein described first call request and second call request include identical mark.
Specifically, such as the calling event in the first call request of parent server transmission is obtains file B.And if The file B of partial amt is stored in local terminal server or does not have storage file B, then local terminal server needs to continue to it The server (i.e. lower level servers) that he is stored with file B initiates the second call request, to continue to obtain file B.
In this inventor it is important to note that being wrapped in the second call request and the first call request in the present invention Identical mark is included, to the incidence relation for establishing two call requests and for including identical mark to be subsequently generated The daily record data of knowledge is prepared.
Certainly, it if being stored with all file B in local terminal server, needs not continue to initiate to adjust to other servers With request, the return of grade server include the call result of file B to local terminal server directly up at this time, at the same generate and preserve and The corresponding daily record data of first call request, the processing operation of local terminal server terminate.
Step 102, the second call result that the lower level servers return is received, second call result is by under described Grade server after second call request in response to obtaining.
Step 103, it based on second call result, generates and preserves second day corresponding with second call request Will data.
After lower level servers receive the second call request, respond second call request and obtain corresponding second calling knot Fruit, and the second call result of the acquisition is returned into local terminal server.Meanwhile lower level servers are obtaining the second call result Afterwards, the second call result can be also based on, generates and preserves the second daily record data corresponding with the second call request.
Step 104, according to second call result, the first call result returned to the parent server is generated.
Step 105, it based on first call result, generates and preserves and first call request corresponding first Daily record data.
After local terminal server receives the second call result, according to second call result, generation superior server returns The first call result returned, while based on first call result generates and preserves corresponding with first call request the One daily record data.
Specifically, still by taking aforementioned calling event is obtains file B as an example, if local terminal server does not have storage file B, that After local terminal server receives the file B of lower level servers return, the file B received is directly transmitted to parent service In device, the i.e. embodiment of the present invention, local terminal server receives the second call result " file B ", is returned with generation superior server The first call result " file B " returned is identical.
If local terminal server storage has partial document B, then local terminal server receives the text of lower level servers return After part B, its partial document B with itself storage is integrated after being packaged, be then forwarded to parent server, the i.e. embodiment of the present invention In, after local terminal server receives the second call result " file B ", with reference to the file B received and the file itself stored B is transmitted to parent server, the first call result " file B " of the superior server return of local terminal server generation Include the second call result " file B " received.
In the present invention, because each daily record data is all based on call result generation, and call result is in response to adjust It is obtained with request, and because all includes identical mark in the present invention in each call request, therefore present invention generation Daily record data corresponding with call request in include identical mark.
Using daily record data store method provided by the invention, servers at different levels are adjusted by call request in the present invention Used time carries identical mark, and identical mark is included in the daily record data corresponding with call request generated, because This technical staff, being capable of the daily record to be collected of direct basis mark location in any one server during collector journal data Data have saved the time compared to existing method, have improved collection efficiency.
In the following, the technical solution protected to the present invention is further described in detail by inventor.
Distribution service includes multiple servers, and multiple server includes at least first server, second service Device and third server.Daily record data store method provided by the invention is as shown in figure 3, specifically include:
Step 201, second server receives the first call request of first server transmission, and parsing described first is called Request obtains calling event and mark in first call request.
In the embodiment of the present invention, in multiple servers of distribution service, first server, second server and Third server can be any one in multiple servers.For convenience of description, the present invention defines first server to connect Receive the First server of client's request.
Optionally, when the mark in the embodiment of the present invention can be that first server receives client's request, according to described The mark that client requests to generate.The mark has uniqueness, and one-to-one relationship is asked with client, can be used in uniquely representing visitor It asks at family.
Mark in the embodiment of the present invention can be specially UUID (Universally Unique Identifier, it is general Unique identifier) etc ID.For UUID, UUID is according to the generation of the information such as time, host ip, and the present invention is for mark Specific type is not construed as limiting.
In the embodiment of the present invention, after second server receives the first call request of first server transmission, institute is parsed The first call request is stated, gets calling event and mark in first call request.
Step 202:Second server is determined the need for according to the calling event in first call request to third Server sends the second call request.If desired, step 204 is performed, if it is not needed, performing step 203.
Step 203, the calling event that second server is responded in first call request is obtained to be called with described first Corresponding third call result is asked, generate and preserves the 4th daily record data corresponding with first call request.
Second server judgement does not need to, to during the transmission call request of third server, illustrate the identity of the second server For an end in each server for calling step by step, second server is directly in response to the calling in first call request at this time Event, and obtain third call result corresponding with first call request.It generates and preserves simultaneously and called with described first Ask corresponding 4th daily record data.The processing procedure of second server terminates at this time.
Step 204, second server sends the second call request to third server, and second call request includes adjusting With event and mark.
It is worth noting that, the mark in second call request is with parsing the mark phase obtained during the first call request Together.
Step 205, third server receives second call request, parses second call request, described in acquisition Calling event and mark in second call request.
Step 206, third server is determined the need for according to the calling event in second call request to the 4th Server sends third call request.If desired, step 207 is performed, if it is not needed, performing step 208.
Step 207, third server sends third call request to the 4th server, and the third call request includes adjusting With event and mark.
It is worth noting that, the mark in the third call request is with parsing the mark phase obtained during the first call request Together.
If it is to be appreciated that the 4th server determines to need to continue according to the calling event in the third call request To the 5th server send call request, then the 4th server continue to the 5th server send call request, and so on, this Invention is until some server determines to need not continue to send call request to lower level servers.
Step 208, the calling event that third server is responded in second call request is obtained to be called with described second Corresponding second call result is asked, generate and preserves the 5th daily record data corresponding with second call request.
The judgement of third server is not needed to during the transmission call request of the 4th server, and third server responds second tune With the calling event in request, and obtain the second call result corresponding with second call request.It generates and preserves simultaneously The 5th daily record data corresponding with second call request.The processing procedure of third server terminates at this time.
Step 209, third server will obtain corresponding with second call request the second call result and be back to the Two servers.
Step 210, second server receives the second call result that third server returns, and is called based on described second As a result, it generates and preserves the second daily record data corresponding with second call request.
Second server is in the second call result for receiving the return of third server, the hair as the second call request Side is played, preserves the second daily record data corresponding with the second call request.The sheet of this calling is contained in second daily record data The IP address of server (i.e. second server) is held, the IP address of opposite end server (i.e. third server), state is called, calls The information such as time-consuming and mark.Wherein, calling state can be successfully or fail, and call and take then to call initiation with connecing Receive taking between call result.
Step 211, second server generates first returned to first server and calls according to second call result As a result, it and based on first call result, generates and preserves the first daily record data corresponding with first call request.
Based on the second call result received, second server proceeds to respond to the calling event in the first call request, Generate the first call result returned to first server.Meanwhile as the execution side of the first call request, generate and preserve with Corresponding first daily record data of first call request.First daily record data contains this called local terminal server (i.e. Second server) IP address, the IP address of opposite end server (i.e. first server), processing state, processing take, Yi Jibiao The information such as knowledge.Wherein, whether processing state representation second server response calling event succeeds, and it is then second service that processing, which takes, Device response calling event starts to what is finished to take.
Step 212, first server receives first call result, generates and preserves and first call request pair The third daily record data answered.
In the embodiment of the present invention, the first call request that first server is sent to second server, second server to Third call request that second call request of third server transmission, third server are sent to the 4th server etc., it is each to adjust With including identical mark in request, i.e., during one-time continuous is called, for each server called step by step, The mark for storing and transmitting therebetween is identical.
It should be noted that for any one server in the embodiment of the present invention, when it needs to call other servers When, it may only call one, it is also possible to while call more.In the case of calling more simultaneously, expand with reference to aforementioned method Exhibition, herein inventor be not described in detail.
Therefore, it in daily record data store method provided in an embodiment of the present invention, is passed between each server by call request Mark is passed, and the identification information is added in daily record data when preserving daily record data, so as to make technical staff in office In one server of meaning during collector journal data, the daily record data to be collected of direct basis identification information positioning is saved Time improves collection efficiency.
On the basis of previous embodiment, optionally, daily record data store method provided by the invention can also include:It obtains The daily record data preserved on each server in distribution service is taken, and all daily record datas got are stored to one Storage device.
Specifically, as shown in figure 4, the present invention can pre-set a log concentrator and one in distribution service Memory, the log concentrator are used in real time or periodically obtain the daily record data of its preservation respectively from each server, and The daily record data got is sent in memory and is preserved.
More specifically, the log concentrator in the embodiment of the present invention can be with asynchronous collector journal data, to minimize to being The influence that performance of uniting generates.
One log concentrator in the embodiment of the present invention, in distribution service can be set, may also set up multiple days Will collector.When, there is only during a log concentrator, which corresponds to whole services in distribution service Device;When log concentrator there are multiple and quantity be less than server quantity when, each log concentrator can be set at least right A server is answered, and each server only corresponds to a log concentrator;When the quantity of log concentrator and the number of server When measuring equal, log concentrator can be set to be corresponded with server.
It should be noted that in the embodiment of the present invention, in each server, comprising a server-side and a client End.With second server for example, in second server, server-side is for receiving and performing the first call request, when need When calling third server, the second call request is generated and sent by client;Client receives the return of third server The second call result when, generate and preserve the second daily record data corresponding with the second call request;Server-side is based on client During the first call result of corresponding first call request of the second call result generation received, preserve and the first call request pair The first daily record data answered.For any one server, its function of being realized can be by server-side and visitor in the present invention It shares at family end.In this case, when preserving daily record data, server-side and client can store respectively.So as to log collection The quantity of device may be twice of number of servers, and each client and each server respectively correspond to a log collection Device.
In the embodiment of the present invention, all daily record datas are uniformly collected into memory, technical staff is made to collect day Inefficient, the time-consuming problem brought by platform login service device can be avoided during will data in memory according to the quick lookup of mark.
On the basis of previous embodiment, optionally, daily record data store method provided by the invention can also include:According to According to the target identification got, the target journaling data for including the target identification are obtained from each server;According to acquisition All target journaling data arrived generate at least one recalls information.
Preferably, if the present invention has obtained the daily record data preserved on each server, and the institute that will be got There is daily record data to store to a storage device, then the present invention can obtain directly from storage device includes the target identification Target journaling data, and obtained no longer from each server and include the target journaling data of the target identification.
In the embodiment of the present invention, when receive client input target identification after, can the mode based on text retrieval, The multiple daily record datas for including target identification are obtained in the storage device of storing daily record data.It is and then all according to what is got Target journaling data generate at least one recalls information.
Specifically, the present invention can be adopted according to all target journaling data got, at least one recalls information of generation It is realized with following steps 301 to the method shown in step 303:
Step 301:It obtains in the target journaling data, the IP of local terminal server that each target journaling data include Location and the IP address of opposite end server.
In the embodiment of the present invention, each target journaling data include the IP address of local terminal server and opposite end server IP address, the present invention parses and acquires the IP address of local terminal server and opposite end clothes in each target journaling data successively The IP address of business device.
Step 302:Determine two mesh comprising the IP address of identical local terminal server and the IP address of opposite end server Mark daily record data is one group of target journaling data.
In the embodiment of the present invention, for arbitrary primary calling, call initiation server and call execute server generation Daily record data is corresponding, is exactly the IP address and another server of the local terminal server of a server specifically The IP address of opposite end server be identical.That is, in two daily record datas of the corresponding secondary calling, each daily record Two IP address included in data, there is also only the position in daily record data is not in another daily record data Together.Therefore, the correspondence seen according to IP address, it is possible at least one set of target journaling number is determined in multiple daily record datas According to.
Step 303:Summarize the data of two target journaling data in each group of target journaling data, generation and each group of mesh Mark the corresponding recalls information of daily record data.
The embodiment of the present invention summarizes the data of two daily record datas in each group of target journaling data, generation and each group of mesh Mark the corresponding recalls information of daily record data.Wherein, it is arbitrary that there is calling to close in each server corresponding with target identification Two servers of system correspond to a recalls information.
In the embodiment of the present invention, comprising IP address, the calling execution for calling initiation server in each recalls information The IP address of server calls state, processing state, calling take, processing takes etc..When there is only once calling, call Information is one;If there is no calling, then recalls information need not be generated.
In the embodiment of the present invention, it can be automatically generated between each server corresponding with target identification according to target identification Recalls information.Summarize daily record data manually relative to technical staff to obtain recalls information, improve efficiency.
On the basis of previous embodiment, optionally, daily record data store method provided by the invention can also be included such as Lower step 401 is to the method shown in step 403:
Step 401, IP address and calling that the calling included in each recalls information of generation initiates server are obtained The IP address of execute server.
Step 402, for arbitrary two recalls informations, when with calling the IP that initiates server in a wherein recalls information When location is identical with calling the IP address of execute server in another recalls information, determine the identical IP address for overlapping point IP Address.
Step 403, the IP address of server is initiated according to the calling included in each recalls information, calling performs service The IP address of device and determining overlapping point IP address generate the calling topological structure of each server.
In the embodiment of the present invention, regard each recalls information as a branch, the both ends of branch are respectively to call to initiate The IP address of server and the IP address for calling execute server.When two recalls informations have an identical IP address, It can then determine that the server of IP address characterization receives to call and perform next stage calling.
Branch representated by each recalls information is attached according to overlapping point IP address, after simple arrangement arrangement, you can Generation and the calling topological structure of the corresponding each server of target identification.
The embodiment of the present invention is further handled recalls information on the basis of recalls information is generated, obtained with The calling topological structure of the corresponding each server of target identification.
Based on a kind of daily record data store method provided by the invention above, the present invention also provides a kind of preservations of daily record data Device, as shown in figure 5, including:
First processing units 100, for when the first call request that receive parent server transmission, and according to described the Calling event in one call request determine need to lower level servers send the second call request when, to the lower level servers Send the second call request;Wherein described first call request and second call request include identical mark;
Second processing unit 200, for receiving the second call result that the lower level servers return, described second calls As a result knot is called by the lower level servers in response to being obtained after second call request and for being based on described second Fruit generates and preserves the second daily record data corresponding with second call request;
Third processing unit 300, for according to second call result, generating returned to the parent server One call result and for being based on first call result generates and preserves corresponding with first call request One daily record data;
Wherein, the identical mark is included in daily record data corresponding with call request.
Optionally, described device further includes:
Fourth processing unit determines not needing to take to subordinate for working as according to the calling event in first call request When business device sends the second call request, the calling event responded in first call request obtains and first call request Corresponding third call result generates and preserves the 4th daily record data corresponding with first call request.
In addition, the present invention also provides a kind of distribution service, which includes multiple servers, described more A server includes at least first server, second server, third server and the 4th server, wherein:
First server is used to send the first call request to second server;
Second server is used to determine to need to the third service according to the calling event in first call request When device sends the second call request, the second call request is sent to the third server 30;Wherein described first call request Include identical mark with second call request;
Third server is used to determine not needing to the described 4th clothes according to the calling event in second call request When business device sends third call request, second call request is responded, obtains the second call result, and described second is called As a result return the second server and, based on second call result, generate and preserve and second call request Corresponding 4th daily record data;
Second server is additionally operable to, based on second call result, generate and preserve corresponding with second call request The second daily record data, and according to second call result, generate the first call result returned to the first server, And it based on first call result, generates and preserves the first daily record data corresponding with first call request;
First server is additionally operable to receive first call result, generates and preserves corresponding with first call request Third daily record data.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference from other examples, and just to refer each other for identical similar part between each embodiment. For device class embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, related part is joined See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only include that A little elements, but also including other elements that are not explicitly listed or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except also there are other identical elements in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units during description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware during invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can It is realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme of the present invention essence On the part that the prior art contributes can be embodied in the form of software product in other words, the computer software product It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, be used including some instructions so that a computer equipment (can be personal computer, server either network equipment etc.) performs the certain of each embodiment of the present invention or embodiment Method described in part.
Above to a kind of daily record data store method, device and the distribution service that the embodiment of the present invention is provided into It has gone and has been discussed in detail, specific case used herein is expounded the principle of the present invention and embodiment, implements above The explanation of example is merely used to help understand the method and its core concept of the present invention;Meanwhile for the general technology people of this field Member, thought according to the present invention, there will be changes in specific embodiments and applications, in conclusion this explanation Book content should not be construed as limiting the invention.

Claims (10)

1. a kind of daily record data store method, which is characterized in that the method includes:
It is and true according to the calling event in first call request when the first call request for receiving parent server transmission It is fixed to need, to during lower level servers the second call request of transmission, the second call request to be sent to the lower level servers;Wherein institute It states the first call request and second call request includes identical mark;
The second call result that the lower level servers return is received, second call result is responded by the lower level servers It is obtained after second call request, and based on second call result, generates and preserve and second call request Corresponding second daily record data;
According to second call result, the first call result returned to the parent server is generated;
Based on first call result, generate and preserve the first daily record data corresponding with first call request;
Wherein, the identical mark is included in daily record data corresponding with call request.
2. according to the method described in claim 1, it is characterized in that, when the service that the parent server is reception client's request During device, the mark for being identified as the parent server and being requested to generate according to the client;
Wherein, it after the parent server receives first call result, generates and preserves and first call request Corresponding third daily record data.
3. according to the method described in claim 1, it is characterized in that, the method further includes:
When determining not need to according to the calling event in first call request to send the second call request to lower level servers When, the calling event responded in first call request obtains third call result corresponding with first call request, It generates and preserves the 4th daily record data corresponding with first call request.
4. according to claim 1-3 any one of them methods, which is characterized in that the method further includes:
Obtain the daily record data preserved on each server;
All daily record datas got are stored to a storage device.
5. according to claim 1-3 any one of them methods, which is characterized in that the method further includes:
According to the target identification got, the target journaling data for including the target identification are obtained from each server;
According to all target journaling data got, at least one recalls information is generated.
6. according to the method described in claim 5, it is characterized in that, all target journaling data that the foundation is got, raw Include at least one recalls information:
It obtains in the target journaling data, the IP address for the local terminal server that each target journaling data include and opposite end service The IP address of device;
The two target journaling data of IP address for determining the IP address comprising identical local terminal server and opposite end server are One group of target journaling data;
Summarize the data of two target journaling data in each group of target journaling data, generation and each group of target journaling data pair The recalls information answered.
7. according to the method described in claim 5, it is characterized in that, the method further includes:
The calling included in each recalls information of generation is obtained to initiate the IP address of server and call execute server IP address;
For arbitrary two recalls informations, when IP address and another tune that initiation server is called in a wherein recalls information With in information call execute server IP address it is identical when, determine the identical IP address for overlapping point an IP address;
According to the calling included in each recalls information initiate the IP address of server, the IP address for calling execute server, And determining overlapping point IP address, generate the calling topological structure of each server.
8. a kind of daily record data save set, which is characterized in that described device includes:
First processing units, for being called when the first call request for receiving parent server transmission, and according to described first Calling event in request determine to need to lower level servers send the second call request when, send the to the lower level servers Two call requests;Wherein described first call request and second call request include identical mark;
Second processing unit, for receiving the second call result that the lower level servers return, second call result by The lower level servers after second call request in response to obtaining and for being based on second call result, generating And preserve the second daily record data corresponding with second call request;
Third processing unit, for according to second call result, generating first returned to the parent server and calling As a result, and for being based on first call result, generating and preserving the first daily record corresponding with first call request Data;
Wherein, the identical mark is included in daily record data corresponding with call request.
9. device according to claim 8, which is characterized in that described device further includes:
Fourth processing unit determines not needing to lower level servers for working as according to the calling event in first call request When sending the second call request, the calling event in first call request that responds obtains corresponding with first call request Third call result, generate and preserve the 4th daily record data corresponding with first call request.
10. a kind of distribution service, which is characterized in that the distributed system includes multiple servers, the multiple clothes Device be engaged in including at least first server, second server, third server and the 4th server, wherein:
The first server is used to send the first call request to the second server;
The second server is used to determine to need to the third service according to the calling event in first call request When device sends the second call request, the second call request is sent to the third server;Wherein described first call request and Second call request includes identical mark;
The third server is used to determine not needing to the described 4th clothes according to the calling event in second call request When business device sends third call request, second call request is responded, obtains the second call result, and described second is called As a result return the second server and, based on second call result, generate and preserve and second call request Corresponding 4th daily record data;
The second server is additionally operable to, based on second call result, generate and preserve corresponding with second call request The second daily record data, and according to second call result, generate the first call result returned to the first server, And it based on first call result, generates and preserves the first daily record data corresponding with first call request;
The first server is additionally operable to receive first call result, generates and preserves corresponding with first call request Third daily record data.
CN201711472167.8A 2017-12-29 2017-12-29 A kind of daily record data store method, device and distribution service Pending CN108199876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711472167.8A CN108199876A (en) 2017-12-29 2017-12-29 A kind of daily record data store method, device and distribution service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711472167.8A CN108199876A (en) 2017-12-29 2017-12-29 A kind of daily record data store method, device and distribution service

Publications (1)

Publication Number Publication Date
CN108199876A true CN108199876A (en) 2018-06-22

Family

ID=62586247

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711472167.8A Pending CN108199876A (en) 2017-12-29 2017-12-29 A kind of daily record data store method, device and distribution service

Country Status (1)

Country Link
CN (1) CN108199876A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597687A (en) * 2019-08-27 2019-12-20 厦门亿联网络技术股份有限公司 Log processing method and device
CN115442226A (en) * 2022-08-01 2022-12-06 远光软件股份有限公司 Log collection method, related device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040098478A1 (en) * 2002-11-20 2004-05-20 Microsoft Corporation System and method for client side monitoring of client server communications
CN106254145A (en) * 2016-09-06 2016-12-21 腾讯科技(深圳)有限公司 network request tracking processing method and device
CN106354765A (en) * 2016-08-19 2017-01-25 广东亿迅科技有限公司 Log analysis system and method based on distributed collection
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device
CN107229619A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 Internet service link calls statistics, methods of exhibiting and the device of situation
CN107483221A (en) * 2016-06-08 2017-12-15 阿里巴巴集团控股有限公司 A kind of across application problem investigation method, apparatus and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040098478A1 (en) * 2002-11-20 2004-05-20 Microsoft Corporation System and method for client side monitoring of client server communications
CN107229619A (en) * 2016-03-23 2017-10-03 阿里巴巴集团控股有限公司 Internet service link calls statistics, methods of exhibiting and the device of situation
CN107483221A (en) * 2016-06-08 2017-12-15 阿里巴巴集团控股有限公司 A kind of across application problem investigation method, apparatus and system
CN106354765A (en) * 2016-08-19 2017-01-25 广东亿迅科技有限公司 Log analysis system and method based on distributed collection
CN106254145A (en) * 2016-09-06 2016-12-21 腾讯科技(深圳)有限公司 network request tracking processing method and device
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107181675A (en) * 2017-06-20 2017-09-19 北京奇艺世纪科技有限公司 Service calling method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597687A (en) * 2019-08-27 2019-12-20 厦门亿联网络技术股份有限公司 Log processing method and device
CN110597687B (en) * 2019-08-27 2022-07-22 厦门亿联网络技术股份有限公司 Log processing method and device
CN115442226A (en) * 2022-08-01 2022-12-06 远光软件股份有限公司 Log collection method, related device and storage medium
CN115442226B (en) * 2022-08-01 2024-06-11 远光软件股份有限公司 Log acquisition method, related device and storage medium

Similar Documents

Publication Publication Date Title
CN104243154B (en) Server user's permission centralized control system and method
CN105553993B (en) A kind of remote service calling method, device and server
CN108737467B (en) Server log viewing method, device and system
CN104144098B (en) Information push method, system and push server equipment
CN106797405A (en) Distributed load equalizing system, health examination method and service node
CN103297528B (en) A kind of method and apparatus obtaining ticket information
CN104410546B (en) The method of testing and device of real time processing system
CN110278187A (en) Multiple terminals single-point logging method, system, sync server and medium
CN104618255B (en) A kind of front-collection service system and data processing method
CN108696581A (en) Caching method, device, computer equipment and the storage medium of distributed information
CN105049246B (en) A kind of group user management service method and system
CN107465666A (en) A kind of client ip acquisition methods and device
CN103780654A (en) Business request processing method, user terminal, business router and network system
CN103685590A (en) Method and system for obtaining IP (internet protocol) address
CN104618388B (en) Fast registration login method and corresponding resetting server, information server
CN102158518B (en) Data transmission method in content distribution network (CDN), network node and system
CN108156274A (en) Equipment is made to obtain the method and device of domain name mapping result in a kind of VPN network
CN107395559A (en) Data processing method and equipment based on redis
CN109547524A (en) User behavior storage method, device, equipment and storage medium based on Physical Network
CN109491895A (en) Server stress test method and device
CN108199876A (en) A kind of daily record data store method, device and distribution service
CN106888261A (en) A kind of distributed document transmission method, server and private clound equipment
CN106453349A (en) An account number login method and apparatus
CN108600412A (en) A kind of domain name analytic method and system
CN101159597A (en) Method, system and related equipment of obtaining software configuration information

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180622