CN109542718A - Monitoring method, device, storage medium and the server of service call - Google Patents

Monitoring method, device, storage medium and the server of service call Download PDF

Info

Publication number
CN109542718A
CN109542718A CN201811232409.0A CN201811232409A CN109542718A CN 109542718 A CN109542718 A CN 109542718A CN 201811232409 A CN201811232409 A CN 201811232409A CN 109542718 A CN109542718 A CN 109542718A
Authority
CN
China
Prior art keywords
service
server
service call
call
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811232409.0A
Other languages
Chinese (zh)
Other versions
CN109542718B (en
Inventor
郭兴明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Life Insurance Company of China Ltd
Original Assignee
Ping An Life Insurance Company of China 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 Ping An Life Insurance Company of China Ltd filed Critical Ping An Life Insurance Company of China Ltd
Priority to CN201811232409.0A priority Critical patent/CN109542718B/en
Publication of CN109542718A publication Critical patent/CN109542718A/en
Application granted granted Critical
Publication of CN109542718B publication Critical patent/CN109542718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • G06F11/3082Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting the data filtering being achieved by aggregating or compressing the monitored data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2201/00Indexing scheme relating to error detection, to error correction, and to monitoring
    • G06F2201/875Monitoring of systems including the internet

Abstract

The present invention relates to data monitoring fields, more particularly to a kind of monitoring method of service call, device, storage medium and server, the described method includes: first service termination receives service invocation request, service call mark and the calling data logging comprising service call mark are generated;According to the service invocation request by the service call identification transmission to second service end;Second service end generates the calling data logging comprising service call mark according to the service invocation request and service call mark, according to the service invocation request by the service call identification transmission to third server-side;First service end, second service end are connect with third server-side with data aggregate center, and the calling data logging is sent to the data aggregate center;Data aggregate center is identified according to the service call calls the calling data logging of mark to generate service call link for described with same services.The present invention can carry out effective monitoring to service call.

Description

Monitoring method, device, storage medium and the server of service call
Technical field
The present invention relates to data monitoring fields, and in particular to a kind of monitoring method of service call, device, storage medium and Server.
Background technique
With the development of internet technology, the number of users of client is more and more, and the function of client is also more next Abundanter, the simple function of each single item is required to multinomial service behind and participates in jointly, such as client requests an item number in front end It is sent to after background server according to, request and needs to enable multinomial service the request is responded, mesh needed for obtaining client Data are marked, then return to target data to client, client will appear certain functions in certain time period in the process of running The phenomenon that being unable to operate normally, after and restore function normal operation, cause certain clients that can not obtain whithin a period of time To normal response, therefore how quickly to check out the problem of specific problem is current industry urgent need to resolve.
Summary of the invention
To overcome the above technical problem, the especially prior art can not effectively asking between the relationship monitoring multiple services Topic, spy propose following technical scheme:
In a first aspect, the present invention provides a kind of monitoring methods of service call, comprising:
First service termination receives service invocation request, generates service call mark and comprising service call mark Call data logging;According to the service invocation request by the service call identification transmission to second service end;
It includes the service call that second service end is generated according to the service invocation request and service call mark The calling data logging of mark, and according to the service invocation request by the service call identification transmission to third server-side, To allow third server-side to generate and identify comprising the service call according to the service invocation request and service call mark Calling data logging;
First service end, second service end are connect with third server-side with data aggregate center, and by the calling data Log is sent to the data aggregate center;
Data aggregate center is identified according to the service call by the calling data for calling mark with same services Log generates service call link.
Further, the data aggregate center described will have same services to call mark according to service call mark The calling data logging of knowledge generates after service call link, further includes:
Monitor the integrity degree of the service call link;
If the integrity degree of the service call link is unsatisfactory for preset condition, determine in the service call link presence It is disconnected, the corresponding exception service end of the interruption is obtained, Xiang Suoshu exception service end sends a warning message.
Further, the data aggregate center described will have same services to call mark according to service call mark The calling data logging of knowledge generates after service call link, further includes:
The calling frequency of each server-side in statistical fractals call chain route is preset when the calling frequency of a certain server-side is greater than When the frequency, the server-side is configured by preset active service end.
Further, the first service end, second service end are connect with third server-side with data aggregate center, and will The calling data logging is sent to the data aggregate center, comprising:
First service end, second service end are connect with third server-side with data aggregate center, and asynchronous by the calling Data logging is sent to the data aggregate center.
Further, it is described according to the service invocation request by the service call identification transmission to second service end, Include:
First service end determines second service end according to the service invocation request and generates new service invocation request;
By the new service invocation request and the service call identification transmission to second service end.
Further, the data aggregate center described will have same services to call mark according to service call mark The calling data logging of knowledge generates service call link, comprising:
Data aggregate center obtains the calling data logging that there are same services to call mark;Obtain the calling data day The time value of will;The calling data logging is sequentially generated service call link according to the time value.
Second aspect, the present invention provide a kind of monitoring device of service call, including service module and data aggregate center Module, the service module include first service end, second service end and third server-side;Wherein,
The first service end receives service invocation request for terminating, and generates service call mark and includes the service Call the calling data logging of mark;According to the service invocation request by the service call identification transmission to second service End;
The second service end is used to be generated according to the service invocation request and service call mark comprising described The calling data logging of service call mark, and according to the service invocation request by the service call identification transmission to third Server-side, to allow third server-side to generate and adjust comprising the service according to the service invocation request and service call mark With the calling data logging of mark;
Data aggregate center module: for being connect with first service end, second service end with third server-side, and reception the The calling data logging that one server-side, second service end and third server-side are sent;Being identified according to the service call will It is described to call the calling data logging of mark to generate service call link with same services.
Further, the data aggregate center module further includes executing:
The calling frequency of each server-side in statistical fractals call chain route is preset when the calling frequency of a certain server-side is greater than When the frequency, the server-side is configured by preset active service end.
The third aspect, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium On be stored with computer program, which realizes the monitoring method of above-mentioned service call when being executed by processor.
Fourth aspect, the present invention also provides a server, the server includes one or more processors, storage Device, one or more computer programs, wherein one or more of computer programs are stored in the memory and quilt It is configured to be executed by one or more of processors, one or more of programs are configured to carry out above-mentioned service call Monitoring method.
Compared with the prior art, the present invention has the following beneficial effects:
The present invention provides a kind of call relations between the multiple services for completing request of data, the monitoring side of recalls information Method after first service termination receives service invocation request, generates service call mark and the tune comprising service call mark Use data logging;Then by the service call identification transmission to second service end;Likewise, second service end is according to the clothes Business call request and service call mark generate the calling data logging comprising service call mark, and according to described Service invocation request is by the service call identification transmission to third server-side;By institute after each server-side generation calling data logging It states and data logging is called to be sent to the data aggregate center, data aggregate center is identified according to the service call by the tool The calling data logging for having same services to call mark generates service call link, can be expressly understood that between service with this Call relation, quickly locate service required for each business, can be counted subsequently through the service call link, find to take The problem in calling process of being engaged in guarantees each service according to each server-side problem of service call link investigation The normal operation at end guarantees the normal response of request of data.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is an embodiment flow diagram of the monitoring method of service call of the present invention;
Fig. 2 is another embodiment flow diagram of the monitoring method of service call of the present invention;
Fig. 3 is an embodiment schematic diagram of the monitoring device of service call of the present invention;
Fig. 4 is an example structure schematic diagram of server of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention Diction " comprising " refers to that there are the feature, integer, step, operations, but it is not excluded that in the presence of or addition it is one or more other Feature, integer, step, operation.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here To explain.
It will be appreciated by those skilled in the art that of the invention so-called " application ", " application program ", " computer program " and The concept of similar statement, is same concept well known to those skilled in the art, refers to and is instructed by series of computation machine and dependency number According to the computer software for being suitable for electronics operation of the organic construction of resource.Unless specified, this name itself is not by programming language Say type, rank, the operating system of operation of also not rely by it or platform are limited.In the nature of things, this genus also not by Any type of terminal is limited.
The embodiment of the present invention provides a kind of monitoring method of service call, as shown in Figure 1, the method includes following steps It is rapid:
S10: first service termination receives service invocation request, generates service call mark and includes the service call mark The calling data logging of knowledge;According to the service invocation request by the service call identification transmission to second service end.
In a project or client, when client is initiated to request, request needs use certain services, at this time The request of client is transmitted to first service end, and first service end is for handling initial client request, first service termination After receiving service invocation request, service call mark and the calling data logging at first service end are generated, then according to first Service invocation request described in the business logic processing of server-side determines subsequent need clothes to be used according to the service invocation request It is engaged in end, in the present embodiment, the subsequent server-side used in first service end being defined as second service end, then first service end will The service call identification transmission is to second service end.For example, client initiates request, request arrives first at first service end S1, first service end S1, which generate to generate after service call mark, and the processing request, calls data logging, while after determining After the intermediary service end that needs call, the intermediary service end called the first service end S1 is defined as second service by the present embodiment S2 is held, then by the service call identification transmission to second service end.
S20: it includes the service that second service end is generated according to the service invocation request and service call mark The calling data logging of mark is called, and according to the service invocation request by the service call identification transmission to third service End, to allow third server-side to be generated according to the service invocation request and service call mark comprising the service call mark The calling data logging of knowledge.
After second service termination receives the service invocation request and service call mark of the transmission of first service end, according to Service invocation request described in the business logic processing at second service end generates the calling data day comprising service call mark Will, and according to the service invocation request determine it is subsequent need to server-side to be used, it is in the present embodiment, second service end is subsequent The server-side used is defined as third server-side, then by the service call identification transmission to third server-side;Likewise, the Three server-sides receive the service invocation request and service call mark of second service end transmission, according to the business of third server-side Service invocation request described in logical process generates the calling data logging comprising service call mark.
S30: first service end, second service end are connect with third server-side with data aggregate center, and by the calling Data logging is sent to the data aggregate center.
In the present embodiment, the first service end, second service end are connect with third server-side with data aggregate center, can To be appreciated that, the first service end, second service end and third server-side are not three specified server-sides, but generation There is the relationship that front and back is called, first service end in the required server-side used in table service invocation procedure, those server-sides Second service end is called directly, second service end calls directly third server-side, in first service end, second service end and third Server-side handles the calling data logging that the server-side can be generated after service invocation request each time, then by the calling number The data aggregate center is sent to according to log.
S40: data aggregate center is identified according to the service call by the calling for calling mark with same services Data logging generates service call link.
Data aggregate center receives each server-side and handles the calling data that the service invocation request generates each time After log, the service call mark for calling data logging to include according to each will call the calling number of mark with same services Service call link is generated according to log, whole link of service call is generated with this, subsequently through the service call link The problem in statistics, discovery service invocation procedure, checks each server-side problem according to the service call link.
Present embodiments provide a kind of monitoring between call relation, recalls information the multiple services for completing request of data Method after first service termination receives service invocation request, generates service call mark and comprising service call mark Call data logging;Then by the service call identification transmission to second service end;Likewise, second service end is according to Service invocation request and service call mark generate the calling data logging comprising service call mark, and according to institute Service invocation request is stated by the service call identification transmission to third server-side;Each server-side will after generating calling data logging The calling data logging is sent to the data aggregate center, and data aggregate center will be described according to service call mark It calls the calling data logging of mark to generate service call link with same services, service can be expressly understood that with this Between call relation, quickly locate service required for each business, can count, find subsequently through the service call link The problem in service invocation procedure checks each server-side problem according to the service call link, guarantees each clothes The normal operation at business end, guarantees the normal response of request of data.
A kind of embodiment of the invention, the data aggregate center described will have identical according to service call mark The calling data logging of service call mark generates after service call link, further includes:
Monitor the integrity degree of the service call link;
If the integrity degree of the service call link is unsatisfactory for preset condition, determine in the service call link presence It is disconnected, the corresponding exception service end of the interruption is obtained, Xiang Suoshu exception service end sends a warning message.
When the request of client needs the work compound of multiple server-sides, there are some clients can not normally complete place The request of the phenomenon that reason, client can not normally be fed back, and when the request of client is unable to get feedback, illustrate some Server-side can not normally complete the processing of request of data, in the present embodiment, pass through monitoring service and the integrity degree of link is called to determine Judge whether request is normally handled, if the integrity degree of the service call link is unsatisfactory for preset condition, it is determined that described Service call link, which exists, to interrupt, i.e. required service, which is unable to get, in a call request correctly, timely feeds back, at this time The corresponding exception service end of the interruption can be obtained from the calling data logging of the last one server-side of service call link, Then it sends a warning message to the exception service end, such as to described in the operation personnel of the server-side or maintenance personnel's transmission Warning information, to fast and efficiently check out the server-side problem, it is ensured that each server-side operates normally, and guarantees client The request of data at end can obtain normal response.
A kind of embodiment of the invention, as shown in Fig. 2, the data aggregate center is identified according to the service call by institute It states after calling the calling data logging identified to generate service call link with same services, further includes:
S50: the calling frequency of each server-side in statistical fractals call chain route, when the calling frequency of a certain server-side is greater than When the default frequency, the server-side is configured by preset active service end.
In the present embodiment, data aggregate center, can be with statistical fractals tune after a rule service call link of generation With the calling frequency of server-side each in chain route, respectively taken in the service call link in preset time period specifically, can count The calling frequency at business end needs to improve the clothes when the calling frequency of a certain server-side in a period of time is greater than the default frequency It is engaged in service performance of the end hereafter in a period of time, the processing capacity of the server-side is avoided to be unable to satisfy business need this moment, To the problem of client is unable to get normal response occur, in the present embodiment, when the calling frequency of a certain server-side is greater than in advance If when the frequency, configuring the server-side for preset active service end, the corresponding service performance of the dilatation server-side guarantees the clothes Business end can in time respond service invocation request, guarantee the normal operation of this server-side and next server-side.
A kind of embodiment of the invention, in the first service end, second service end and third server-side and data aggregate Heart connection, and the calling data logging is sent to the data aggregate center, comprising:
First service end, second service end are connect with third server-side with data aggregate center, and asynchronous by the calling Data logging is sent to the data aggregate center.
In order to guarantee that each server-side can in time respond service request at business processing peak period, the present embodiment In, the first service end, second service end are connect with third server-side with data aggregate center, and asynchronous by the calling number It is sent to the data aggregate center according to log, does not need to generate each time and calls data logging just by the calling data logging It is sent to data aggregate center.Preferably, history number of requests in different time periods is obtained, determines that number of requests is less than present count According to the corresponding period is measured, it will be generated in those periods but not sent calling data logging be sent to the data aggregate Center.For example, in the daily number of requests of the history acquired, within the period of 0:00-5:00 and 12:00-14:00 Number of requests is lower, then will generate before those periods but not sent calling data logging is uniformly sent to the data Polymerization site, by configuring each server-side priority processing service request at service request peak period, in service request idle periods When the calling data logging of generation is transmitted to data aggregate center again, rationally utilize each server-side resource, guarantee each service End can in time, efficiently finishing service be requested.
A kind of embodiment of the invention, it is described according to the service invocation request by the service call identification transmission to Two server-sides, comprising:
First service end determines second service end according to the service invocation request and generates new service invocation request;
By the new service invocation request and the service call identification transmission to second service end.
In the present embodiment, since the processing logic of different server-sides is different, received service invocation request is also applied Difference, when first service termination receives service invocation request, such as it is that client directly transmits that first service end is received Service invocation request, then the received service invocation request of first service end processing, needs to adjust according to processing logic determination With second service end, the service invocation request is generated to new service invocation request at this time, the new service invocation request energy It is enough quickly to be identified, handle by second service end, it no longer needs to be parsed, then adjusts new service invocation request and the service With identification transmission to second service end.Likewise, second service end is if it is determined that when needing to call third server-side, by what is received Service invocation request, which generates, to be retransmited after new service invocation request to third server-side, third server-side can Direct Recognition should It is handled after service invocation request, quickly completes the business logical operation of this server-side.
Further, since different server-sides are configured with different resources, the operational capability of different server-sides is different, handles Ability is different, can also obtain the stronger server-side of operational capability in the present embodiment, and allowing those server-sides, voluntarily analysis service is asked Ask, and operational capability compared with if server-side if only handle the service logic of this server-side, then directly service request is forwarded to Next server-side carries out business processing after parsing the service request by the stronger next server-side of operational capability.
A kind of embodiment of the invention, the data aggregate center described will have identical according to service call mark The calling data logging of service call mark generates service call link, comprising:
Data aggregate center obtains the calling data logging that there are same services to call mark;Obtain the calling data day The time value of will;The calling data logging is sequentially generated service call link according to the time value.
Due to practical business be it is continually changing, the sequence of service call also can constantly change, for example, can be service A- The service call sequence for servicing B- service C- service D, the service call for being also possible to service A- service D- service C- service B are suitable Sequence, in the present embodiment, in order to accurately determine service call sequence when service call each time, data aggregate center is being received To after the calling data logging, the calling data logging that there are same services to call mark is obtained, each tune is then obtained With the time value of data logging, the calling data logging is sequentially generated service call link according to the time value, with reality Border business is sequentially generated service call link to the calling of each service, takes in every service call link to accurately determine The calling sequence of business, the investigation to go wrong for follow-up service end provide data basis.
As shown in figure 3, in another embodiment, the present invention provides a kind of monitoring devices of service call, including clothes Be engaged in module 10 and data aggregate center module 20: the service module 10 include first service end 101, second service end 102 and Third server-side 103;Wherein,
The first service end 101 receives service invocation request for terminating, and generates service call mark and comprising described The calling data logging of service call mark;The service call identification transmission to second is taken according to the service invocation request Business end 102;
It includes institute that the second service end 102, which is used to be generated according to the service invocation request and service call mark, State the calling data logging of service call mark, and according to the service invocation request by the service call identification transmission to the Three server-sides 103, to allow third server-side 103 to be generated according to the service invocation request and service call mark comprising institute State the calling data logging of service call mark;
Data aggregate center module 20: for being connect with first service end 101, second service end 102 with third server-side 103, and receive the calling data logging that first service end 101, second service end 102 and third server-side 103 are sent;Root The calling data logging of mark is called to generate service call link with same services for described according to service call mark.
A kind of embodiment of the invention, the data aggregate center module 20 further include executing:
Monitor the integrity degree of the service call link;
If the integrity degree of the service call link is unsatisfactory for preset condition, determine in the service call link presence It is disconnected, the corresponding exception service end of the interruption is obtained, Xiang Suoshu exception service end sends a warning message.
A kind of embodiment of the invention, the data aggregate center module 20 further include executing:
The calling frequency of each server-side in statistical fractals call chain route is preset when the calling frequency of a certain server-side is greater than When the frequency, the server-side is configured by preset active service end.
A kind of embodiment of the invention, the first service end 101, second service end 102 and third server-side 103 execute When the calling data logging is sent to the data aggregate center module 20, comprising:
First service end 101, second service end 102 and third server-side 103 are asynchronous by calling data logging transmission To the data aggregate center module 20.
A kind of embodiment of the invention, the first service end 101 are executed the clothes according to the service invocation request Business calls identification transmission to second service end, comprising:
First service end 101 determines second service end 102 according to the service invocation request and generates new service tune With request;
By the new service invocation request and the service call identification transmission to second service end 102.
A kind of embodiment of the invention, the data aggregate center module 20, which is executed, to be identified according to the service call by institute It states and calls the calling data logging of mark to generate service call link with same services, comprising:
Data aggregate center module 20 obtains the calling data logging that there are same services to call mark;Obtain the calling The time value of data logging;The calling data logging is sequentially generated service call link according to the time value.
In another embodiment, the present invention provides a kind of computer readable storage medium, computer-readable storage mediums Computer program is stored in matter, which realizes service call described in above-described embodiment when being executed by processor Monitoring method.Wherein, the computer readable storage medium includes but is not limited to any kind of disk (including floppy disk, hard disk, light Disk, CD-ROM and magneto-optic disk), ROM (Read-Only Memory, read-only memory), RAM (Random AcceSS Memory, immediately memory), EPROM (EraSable Programmable Read-Only Memory, erasable programmable Read-only memory), EEPROM (Electrically EraSable Programmable Read-Only Memory, electrically erasable Programmable read only memory), flash memory, magnetic card or light card.It is, storage equipment includes by equipment (for example, calculating Machine, mobile phone) with any medium for the form storage or transmission information that can be read, it can be read-only memory, disk or CD etc..
A kind of computer readable storage medium provided in an embodiment of the present invention is, it can be achieved that first service termination receives service tune With request, service call mark and the calling data logging comprising service call mark are generated;According to the service call It requests the service call identification transmission to second service end;Second service end is according to the service invocation request and the clothes Business calls mark to generate the calling data logging comprising service call mark, and will be described according to the service invocation request Service call identification transmission is to third server-side, to allow third server-side according to the service invocation request and the service call Mark generates the calling data logging comprising service call mark;First service end, second service end and third server-side It is connect with data aggregate center, and the calling data logging is sent to the data aggregate center;Data aggregate Central Radical The calling data logging of mark is called to generate service call link with same services for described according to service call mark.It is logical Cross provide it is a kind of between complete request of data multiple services call relation, recalls information monitoring method, first service end After receiving service invocation request, service call mark and the calling data logging comprising service call mark are generated;So Afterwards by the service call identification transmission to second service end;Likewise, second service end according to the service invocation request and The service call mark generates the calling data logging comprising service call mark, and according to the service invocation request By the service call identification transmission to third server-side;By the calling data day after each server-side generation calling data logging Will is sent to the data aggregate center, and data aggregate center described will have same services tune according to service call mark Service call link is generated with the calling data logging of mark, the call relation between service can be expressly understood that with this, Service required for each business is quickly located, can be counted subsequently through the service call link, find service invocation procedure The middle problem checks each server-side problem according to the service call link, guarantees the normal fortune of each server-side Row, guarantees the normal response of request of data.
The monitoring method of above-mentioned service call may be implemented in computer readable storage medium provided in an embodiment of the present invention Embodiment, concrete function realize the explanation referred in embodiment of the method, and details are not described herein.
In addition, the present invention also provides a kind of servers in another embodiment, as shown in figure 4, the server includes The devices such as processor 403, memory 405, input unit 407 and display unit 409.It will be understood by those skilled in the art that Structure devices shown in Fig. 4 do not constitute the restriction to Servers-all, may include components more more or fewer than diagram, or Person combines certain components.Memory 405 can be used for storing computer program 401 and each functional module, and the operation of processor 403 is deposited The computer program 401 in memory 405 is stored up, thereby executing the various function application and data processing of equipment.Memory 405 It can be built-in storage or external memory, or including both built-in storage and external memory.Built-in storage may include read-only Memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), quick flashing Memory or random access memory.External memory may include hard disk, floppy disk, ZIP disk, USB flash disk, tape etc..It is presently disclosed Memory include but is not limited to these types memory.Memory 405 disclosed in this invention is only used as example rather than makees To limit.
Input unit 407 is used to receive the input of signal and receives the input of user, and input unit 407 may include touch surface Plate and other input equipments, touch panel collect user on it or nearby touch operation (such as user using finger, The operation of any suitable object or attachment such as stylus on touch panel or near touch panel), and according to presetting The corresponding attachment device of driven by program;Other input equipments can include but is not limited to physical keyboard, function key (for example plays Control button, switch key etc.), trace ball, mouse, one of operating stick etc. or a variety of.Display unit 409 can be used for showing The information of user's input is supplied to the information of user and the various menus of computer equipment.Liquid can be used in display unit 409 The forms such as crystal display, Organic Light Emitting Diode.Processor 403 is the control centre of computer equipment, using various interfaces and The various pieces of the entire computer of connection, by running or executing the software program being stored in memory 403 and/or mould Block, and the data being stored in memory are called, perform various functions and handle data.
In one embodiment, the server includes one or more processors 403, and one or more storages Device 405, one or more computer programs 401, wherein one or more of computer programs 401 are stored in memory It in 405 and is configured as being executed by one or more of processors 403, one or more of computer programs 401 configure For executing the monitoring method of service call described in above embodiments.One or more processors 403 can shown in Fig. 4 Execute, realize service module 10 and its first service end 101 shown in Fig. 3, second service end 102 and third server-side 103, And the function of data aggregate center module module 20.
A kind of server provided in an embodiment of the present invention receives service invocation request, it can be achieved that first service terminates, and generates Service call mark and the calling data logging comprising service call mark;According to the service invocation request by the clothes Business calls identification transmission to second service end;Second service end is according to the service invocation request and service call mark life The service call is identified at the calling data logging identified comprising the service call, and according to the service invocation request It is transmitted to third server-side, to allow third server-side to generate according to the service invocation request and service call mark and include The calling data logging of the service call mark;In first service end, second service end and third server-side and data aggregate Heart connection, and the calling data logging is sent to the data aggregate center;It is adjusted according to the service at data aggregate center The calling data logging of mark is called to generate service call link with same services for described with mark.It is a kind of right by providing The monitoring method of call relation, recalls information between multiple services of completion request of data, first service termination receive service and adjust After request, service call mark and the calling data logging comprising service call mark are generated;Then by the service Call identification transmission to second service end;Likewise, second service end is according to the service invocation request and the service call Mark generates the calling data logging comprising service call mark, and is adjusted the service according to the service invocation request With identification transmission to third server-side;The calling data logging is sent to after each server-side generation calling data logging described Data aggregate center, data aggregate center are identified according to the service call by the calling for calling mark with same services Data logging generates service call link, can be expressly understood that the call relation between service with this, quickly locates each Service, can count subsequently through the service call link, find the problem in service invocation procedure required for business, Each server-side problem is checked according to the service call link, guarantees the normal operation of each server-side, guarantees that data are asked The normal response asked.
The embodiment of the monitoring method of the service call of above-mentioned offer may be implemented in server provided in an embodiment of the present invention, Concrete function realizes the explanation referred in embodiment of the method, and details are not described herein.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of monitoring method of service call characterized by comprising
First service termination receives service invocation request, generates service call mark and the calling comprising service call mark Data logging;According to the service invocation request by the service call identification transmission to second service end;
Second service end generates and identifies comprising the service call according to the service invocation request and service call mark Calling data logging, and according to the service invocation request by the service call identification transmission to third server-side, to allow Third server-side generates the tune comprising service call mark according to the service invocation request and service call mark Use data logging;
First service end, second service end are connect with third server-side with data aggregate center, and by the calling data logging It is sent to the data aggregate center;
Data aggregate center is identified according to the service call by the calling data logging for calling mark with same services Generate service call link.
2. the method according to claim 1, wherein the data aggregate center is identified according to the service call After the calling data logging generation service call link for calling mark with same services, further includes:
Monitor the integrity degree of the service call link;
If the integrity degree of the service call link is unsatisfactory for preset condition, determines that the service call link exists and interrupt, obtain The corresponding exception service end of the interruption is taken, Xiang Suoshu exception service end sends a warning message.
3. the method according to claim 1, wherein the data aggregate center is identified according to the service call After the calling data logging generation service call link for calling mark with same services, further includes:
The calling frequency of each server-side in statistical fractals call chain route, when the calling frequency of a certain server-side is greater than the default frequency When, the server-side is configured by preset active service end.
4. the method according to claim 1, wherein the first service end, second service end and third service End is connect with data aggregate center, and the calling data logging is sent to the data aggregate center, comprising:
First service end, second service end are connect with third server-side with data aggregate center, and asynchronous by the calling data Log is sent to the data aggregate center.
5. the method according to claim 1, wherein described adjust the service according to the service invocation request With identification transmission to second service end, comprising:
First service end determines second service end according to the service invocation request and generates new service invocation request;
By the new service invocation request and the service call identification transmission to second service end.
6. the method according to claim 1, wherein the data aggregate center is identified according to the service call The calling data logging of mark is called to generate service call link with same services for described, comprising:
Data aggregate center obtains the calling data logging that there are same services to call mark;Obtain the calling data logging Time value;The calling data logging is sequentially generated service call link according to the time value.
7. a kind of monitoring device of service call characterized by comprising service module and data aggregate center module, it is described Service module includes first service end, second service end and third server-side;Wherein,
The first service end receives service invocation request for terminating, and generates service call mark and includes the service call The calling data logging of mark;According to the service invocation request by the service call identification transmission to second service end;
It includes the service that the second service end, which is used to be generated according to the service invocation request and service call mark, The calling data logging of mark is called, and according to the service invocation request by the service call identification transmission to third service End, to allow third server-side to be generated according to the service invocation request and service call mark comprising the service call mark The calling data logging of knowledge;
Data aggregate center module: for connecting with first service end, second service end with third server-side, and the first clothes are received The calling data logging that end, second service end and the third server-side of being engaged in are sent;It will be described according to service call mark The calling data logging of mark is called to generate service call link with same services.
8. device according to claim 7, which is characterized in that the data aggregate center module further includes executing:
The calling frequency of each server-side in statistical fractals call chain route, when the calling frequency of a certain server-side is greater than the default frequency When, the server-side is configured by preset active service end.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize the monitoring side of service call as claimed in any one of claims 1 to 6 when being executed by processor Method.
10. a kind of server characterized by comprising
One or more processors;
Memory;
One or more computer programs, wherein one or more of computer programs are stored in the memory and quilt It is configured to be executed by one or more of processors, one or more of computer programs are configured to carry out according to right It is required that the monitoring method of 1 to 6 described in any item service calls.
CN201811232409.0A 2018-10-22 2018-10-22 Service call monitoring method and device, storage medium and server Active CN109542718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811232409.0A CN109542718B (en) 2018-10-22 2018-10-22 Service call monitoring method and device, storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811232409.0A CN109542718B (en) 2018-10-22 2018-10-22 Service call monitoring method and device, storage medium and server

Publications (2)

Publication Number Publication Date
CN109542718A true CN109542718A (en) 2019-03-29
CN109542718B CN109542718B (en) 2023-02-07

Family

ID=65844628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811232409.0A Active CN109542718B (en) 2018-10-22 2018-10-22 Service call monitoring method and device, storage medium and server

Country Status (1)

Country Link
CN (1) CN109542718B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445636A (en) * 2019-07-03 2019-11-12 平安科技(深圳)有限公司 Micro services method for early warning, device and computer equipment based on management platform
CN110865927A (en) * 2019-11-20 2020-03-06 腾讯科技(深圳)有限公司 Block chain call link abnormity detection method and device and computer equipment
CN112437155A (en) * 2020-11-20 2021-03-02 北京健康之家科技有限公司 Service data processing method and device and server equipment
CN114697395A (en) * 2020-12-11 2022-07-01 北京神州泰岳软件股份有限公司 Service resource calling execution method, device, service gateway and readable storage medium
CN114884807A (en) * 2022-05-20 2022-08-09 远景智能国际私人投资有限公司 Link log generation method and device, Internet of things platform and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004287855A (en) * 2003-03-20 2004-10-14 Ricoh Co Ltd Monitoring method, monitoring system and program
CN106445784A (en) * 2016-09-27 2017-02-22 北京搜狐新动力信息技术有限公司 Information monitoring method and information monitoring device
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107483221A (en) * 2016-06-08 2017-12-15 阿里巴巴集团控股有限公司 A kind of across application problem investigation method, apparatus and system
CN107645562A (en) * 2017-10-12 2018-01-30 广州爱九游信息技术有限公司 Data transmission processing method, device, equipment and system
CN107729210A (en) * 2017-09-29 2018-02-23 百度在线网络技术(北京)有限公司 The abnormality diagnostic method and device of Distributed Services cluster
CN108038145A (en) * 2017-11-23 2018-05-15 携程旅游网络技术(上海)有限公司 Distributed Services tracking, system, storage medium and electronic equipment
CN108173915A (en) * 2017-12-21 2018-06-15 中国联合网络通信集团有限公司 Call chain processing method and processing device
CN108512689A (en) * 2017-12-15 2018-09-07 中国平安财产保险股份有限公司 Micro services business monitoring method and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004287855A (en) * 2003-03-20 2004-10-14 Ricoh Co Ltd Monitoring method, monitoring system and program
CN107483221A (en) * 2016-06-08 2017-12-15 阿里巴巴集团控股有限公司 A kind of across application problem investigation method, apparatus and system
CN106445784A (en) * 2016-09-27 2017-02-22 北京搜狐新动力信息技术有限公司 Information monitoring method and information monitoring device
CN106790718A (en) * 2017-03-16 2017-05-31 北京搜狐新媒体信息技术有限公司 Service call link analysis method and system
CN107729210A (en) * 2017-09-29 2018-02-23 百度在线网络技术(北京)有限公司 The abnormality diagnostic method and device of Distributed Services cluster
CN107645562A (en) * 2017-10-12 2018-01-30 广州爱九游信息技术有限公司 Data transmission processing method, device, equipment and system
CN108038145A (en) * 2017-11-23 2018-05-15 携程旅游网络技术(上海)有限公司 Distributed Services tracking, system, storage medium and electronic equipment
CN108512689A (en) * 2017-12-15 2018-09-07 中国平安财产保险股份有限公司 Micro services business monitoring method and server
CN108173915A (en) * 2017-12-21 2018-06-15 中国联合网络通信集团有限公司 Call chain processing method and processing device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110445636A (en) * 2019-07-03 2019-11-12 平安科技(深圳)有限公司 Micro services method for early warning, device and computer equipment based on management platform
CN110445636B (en) * 2019-07-03 2022-03-18 平安科技(深圳)有限公司 Management platform-based micro-service early warning method and device and computer equipment
CN110865927A (en) * 2019-11-20 2020-03-06 腾讯科技(深圳)有限公司 Block chain call link abnormity detection method and device and computer equipment
CN112437155A (en) * 2020-11-20 2021-03-02 北京健康之家科技有限公司 Service data processing method and device and server equipment
CN112437155B (en) * 2020-11-20 2024-02-20 北京水滴科技集团有限公司 Service data processing method and device and server device
CN114697395A (en) * 2020-12-11 2022-07-01 北京神州泰岳软件股份有限公司 Service resource calling execution method, device, service gateway and readable storage medium
CN114884807A (en) * 2022-05-20 2022-08-09 远景智能国际私人投资有限公司 Link log generation method and device, Internet of things platform and storage medium

Also Published As

Publication number Publication date
CN109542718B (en) 2023-02-07

Similar Documents

Publication Publication Date Title
CN109542718A (en) Monitoring method, device, storage medium and the server of service call
CN111831420B (en) Method for task scheduling, related device and computer program product
US8554829B2 (en) Virtual server ID managing system, integrated monitoring system, virtual server ID managing program, and integrated monitoring program
US9639446B2 (en) Trace monitoring
US8626908B2 (en) Distributed capture and aggregation of dynamic application usage information
GB2518052A (en) Group server performance correction via actions to server subset
US20030088660A1 (en) Techniques for load distribution processing for call centers and other processing systems
US20100005468A1 (en) Black-box performance control for high-volume throughput-centric systems
US9497095B2 (en) Dynamic control over tracing of messages received by a message broker
CN109815716A (en) Access request processing method, device, storage medium and server
CN109547282A (en) Overload protection method, device, computer readable storage medium and server
CA2533737A1 (en) Fast application notification in a clustered computing system
US11159604B2 (en) Processing an operation with a plurality of processing steps
CN111694646A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
EP3692443B1 (en) Application regression detection in computing systems
US20190179944A1 (en) Predictive scaling for cloud applications
CN109542475A (en) Data-updating method, device, storage medium and the server of system multi version
CN111738446A (en) Scheduling method, device, equipment and medium of deep learning inference engine
CN112491617A (en) Link tracking method, device, electronic equipment and medium
CN112486645A (en) Timed task monitoring method and device, electronic equipment and medium
US9317355B2 (en) Dynamically determining an external systems management application to report system errors
CN112395126A (en) Fault log processing method and device, electronic equipment and storage medium
US20120254277A1 (en) Aggregating information of distributed jobs
Domingues et al. DRMonitor-a distributed resource monitoring system
CN111694686B (en) Processing method and device for abnormal service, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant