CN107135128A - Call chain collecting method, mobile terminal and computer-readable recording medium - Google Patents
Call chain collecting method, mobile terminal and computer-readable recording medium Download PDFInfo
- Publication number
- CN107135128A CN107135128A CN201710511094.2A CN201710511094A CN107135128A CN 107135128 A CN107135128 A CN 107135128A CN 201710511094 A CN201710511094 A CN 201710511094A CN 107135128 A CN107135128 A CN 107135128A
- Authority
- CN
- China
- Prior art keywords
- collector
- call chain
- data
- chain data
- terminal
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/02—Capturing of monitoring data
- H04L43/022—Capturing of monitoring data by sampling
- H04L43/024—Capturing of monitoring data by sampling by adaptive sampling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/12—Network monitoring probes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of call chain collecting method, applied to call chain data collection agent, including:Gather the performance data of host's terminal, and by the reporting performance data of collection to the collector connected, the performance data is forwarded to real-time calculating platform by the collector, and generate what the carrying real-time calculating platform was returned, match the adjust instruction of the sampling collection ratio of the performance data;Receive the adjust instruction that the collector is returned based on the performance data;When receiving the adjust instruction, the sampling collection ratio for gathering the business service call chain data that are monitored in host's terminal is updated to the sampling collection ratio that the adjust instruction is carried.The invention also discloses a kind of mobile terminal and computer-readable storage media.On the premise of the present invention can ensure that host's terminal capabilities is stable, the call chain data for the business service that is monitored in collection host's terminal as much as possible.
Description
Technical field
The present invention relates to Network Monitoring Technology field, and in particular to a kind of call chain collecting method, mobile terminal and
Computer-readable recording medium.
Background technology
Fast-developing with the business of Internet enterprises, relevant enterprise will have to implement micro services strategy to tackle increasingly
Complicated business and the application species sharply increased.These Distributed Applications are depending therefrom, common to cooperate with completing the institute of enterprise
There is business scenario, the complexity and quantity of its dynamic change are monitored to it beyond the imagination and attempt to control global non-
Manpower in one's power, so call chain tracing system of having arisen at the historic moment, to assist business R&D team to understand system action, combing system
Framework, optimization systematic function etc..
However, it is commercial in the market or increase income call catenary system to exist to cause loss to the performance of host's terminal
Problem, and performance losses degree increases as sampling of data gathers the increase of ratio, is such as set to 100% when sampling proportion
When, the performance losses of host's terminal are up to 30% or so, in other words, if it can be handled simultaneously during host's terminal normal work
1000 external requests, when access call chain after, and sample collection ratio setting be 100% when, then simultaneously can only handle
The external request of 700 or so.
The content of the invention
The present invention provides a kind of call chain collecting method, mobile terminal and computer-readable recording medium, it is intended to protect
On the premise of hindering host's terminal capabilities stabilization, collection call chain data as much as possible.
For achieving the above object, the present invention provides a kind of call chain collecting method, the call chain data acquisition
Method includes:
The performance data of host's terminal is gathered, and by the reporting performance data of collection to the collector connected, by
The performance data is forwarded to real-time calculating platform by the collector, and generates what the carrying real-time calculating platform was returned,
Match the adjust instruction of the sampling collection ratio of the performance data;
Receive the adjust instruction that the collector is returned based on the performance data;
When receiving the adjust instruction, by the business service call chain data that are monitored in collection host's terminal
Sampling collection ratio is updated to the sampling collection ratio that the adjust instruction is carried.
Further, the present invention also provides a kind of mobile terminal, and the mobile terminal includes:
The memory of the call chain that is stored with data collection agent program;
Processor, is configured to perform the call chain data collection agent program to realize following steps:
The performance data of host's terminal is gathered, and by the reporting performance data of collection to the collector connected, by
The performance data is forwarded to real-time calculating platform by the collector, and generates what the carrying real-time calculating platform was returned,
Match the adjust instruction of the sampling collection ratio of the performance data;
Receive the adjust instruction that the collector is returned based on the performance data;
When receiving the adjust instruction, the business service call chain data that are monitored in host's terminal will be gathered
Sampling collection ratio is updated to the sampling collection ratio that the adjust instruction is carried.
Further, the present invention also provides a kind of computer-readable recording medium, is deposited on the computer-readable recording medium
Call chain data collection agent program is contained, following step is realized when the call chain data collection agent program is executed by processor
Suddenly:
The performance data of host's terminal is gathered, and by the reporting performance data of collection to the collector connected, by
The performance data is forwarded to real-time calculating platform by the collector, and generates what the carrying real-time calculating platform was returned,
Match the adjust instruction of the sampling collection ratio of the performance data;
Receive the adjust instruction that the collector is returned based on the performance data;
When receiving the adjust instruction, the business service call chain data that are monitored in host's terminal will be gathered
Sampling collection ratio is updated to the sampling collection ratio that the adjust instruction is carried.
Call chain collecting method proposed by the present invention, mobile terminal and computer-readable recording medium, by posting
The performance data of master terminal is acquired, and by the reporting performance data collected to the collector connected, by the collector
Performance data is forwarded to real-time calculating platform, the sampling collection ratio for matching aforementioned properties data is returned for real-time calculating platform
Example, afterwards, sends adjust instruction to call chain data collection agent, to indicate that it is monitored that call chain data collection agent will be gathered
The sampling collection ratio that the performance data that the sampling collection ratio of business service call chain data is updated to host's terminal is matched,
So that sampling collection ratio adapts to host's terminal real-time performance, the stable premise of host's terminal capabilities is being ensured
Under, being capable of collection call chain data as much as possible.
Brief description of the drawings
Fig. 1 is the hardware architecture diagram for realizing each one optional mobile terminal of embodiment of the invention;
Fig. 2 is a kind of communications network system Organization Chart of mobile terminal as shown in Figure 1;
Fig. 3 is the schematic flow sheet of call chain collecting method first embodiment of the present invention;
Fig. 4 is the call chain data collection architecture schematic diagram in call chain collecting method first embodiment of the present invention;
Fig. 5 is the tree structure exemplary plot of collector cluster in call chain collecting method first embodiment of the present invention;
Fig. 6 is the tree after call chain data collection agent registration in call chain collecting method first embodiment of the present invention
Shape topology example figure;
Fig. 7 is the mapping of performance data and sampling collection ratio in call chain collecting method first embodiment of the present invention
Exemplary relationship figure;
Fig. 8 is the structural representation of route addressing model in call chain collecting method second embodiment of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In follow-up description, the suffix using such as " module ", " part " or " unit " for representing element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " part " or " unit " can be mixed
Ground is used.
Terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as mobile phone, flat board
Computer, notebook computer, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), guider, wearable device (such as Intelligent bracelet), pedometer
Deng mobile terminal, and the fixed terminal such as numeral TV, desktop computer.
It will be illustrated in subsequent descriptions by taking mobile terminal as an example, it will be appreciated by those skilled in the art that except special
Outside element for moving purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, its hardware configuration signal for realization one optional mobile terminal of each embodiment of the invention
Figure, the mobile terminal 1 00 can include:RF (Radio Frequency, radio frequency) unit 101, Wi-Fi module 102, audio are defeated
Go out unit 103, A/V (audio/video) input block 104, sensor 105, display unit 106, user input unit 107, connect
The parts such as mouth unit 108, memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that in Fig. 1
The mobile terminal structure shown does not constitute the restriction to mobile terminal, and mobile terminal can include more more or less than illustrating
Part, either combines some parts or different parts arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, the reception and transmission of signal, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, up data are sent into base station.Generally, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated by radio communication with network and other equipment.Above-mentioned radio communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, WCDMA), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, FDD Long Term Evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex Long Term Evolution) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102
Email, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 1
Wi-Fi module 102 is shown, but it is understood that, it is simultaneously not belonging to must be configured into for mobile terminal, completely can basis
Need to omit in the essential scope for do not change invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 1 00
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, it is that radio frequency unit 101 or Wi-Fi module 102 are received or
The voice data that person stores in memory 109 is converted into audio signal and is output as sound.Moreover, audio output unit
103 can also provide performed to mobile terminal 1 00 the related audio output of specific function (for example, call signal reception sound,
Message sink sound etc.).Audio output unit 103 can include loudspeaker, buzzer etc..
A/V input blocks 104 are used to receive audio or video signal.A/V input blocks 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042,1041 pairs of graphics processor is in video acquisition mode
Or the view data progress of the static images or video obtained in image capture mode by image capture apparatus (such as camera)
Reason.Picture frame after processing may be displayed on display unit 106.Picture frame after being handled through graphics processor 1041 can be deposited
Storage is transmitted in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio (voice) data after processing can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises and eliminate (or suppression) algorithm to eliminate (or suppression) in reception and send sound
The noise produced during frequency signal or interference.
Mobile terminal 1 00 also includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity transducer can close when mobile terminal 1 00 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axles) size of acceleration, size and the direction of gravity are can detect that when static, the application available for identification mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, will not be repeated here.
Display unit 106 is used for the information for showing the information inputted by user or being supplied to user.Display unit 106 can be wrapped
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configures display panel 1061.
User input unit 107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal
The key signals input that family is set and function control is relevant.Specifically, user input unit 107 may include contact panel 1071 with
And other input equipments 1072.Contact panel 1071, also referred to as touch-screen, collect touch operation of the user on or near it
(such as user is using any suitable objects such as finger, stylus or annex on contact panel 1071 or in contact panel 1071
Neighbouring operation), and corresponding attachment means are driven according to formula set in advance.Contact panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and the order sent of reception processing device 110 and can be performed.In addition, can
To realize contact panel 1071 using polytypes such as resistance-type, condenser type, infrared ray and surface acoustic waves.Except contact panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can be wrapped
Include but be not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more, do not limit herein specifically.
Further, contact panel 1071 can cover display panel 1061, detect thereon when contact panel 1071 or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, with preprocessor 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, contact panel 1071 and display panel
1061 be input and the output function that mobile terminal is realized as two independent parts, but in certain embodiments, can
By contact panel 1071 and the input that is integrated and realizing mobile terminal of display panel 1061 and output function, not do specifically herein
Limit.
Interface unit 108 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 1 00 or can be with
For transmitting data between mobile terminal 1 00 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, application program (the such as sound that storing program area can be needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data field can be stored uses created data (such as according to mobile phone
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, it can also include non-easy
The property lost memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection
Individual part, by operation or performs and is stored in software program and/or module in memory 109, and calls and be stored in storage
Data in device 109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;It is preferred that, processor 110 can integrated application processor and modulatedemodulate mediate
Device is managed, wherein, application processor mainly handles operating system, user interface and application program etc., and modem processor is main
Handle radio communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Near-field communication (NearFieldCommunication, hereinafter referred to as NFC) is a kind of radio of short distance high frequency
Technology, it is allowed to contactless Point-to-Point Data Transmission is carried out between electronic equipment and exchanges data, is recognized by non-contact radio-frequency
(RFID) develop.NFC working frequencies are 13.56Hz, and effective range is that its transmission speed has 106Kbit/ within 20cm
Second, 212Kbit/ seconds or three kinds of 424Kbit/ seconds.NFC has 3 kinds of mode of operations:Card reader pattern, ad hoc mode, snap gauge are intended
Pattern.In card reader pattern, NFC device produces radiofrequency field and reads and writes data from the outside NFC label using identical standard.
In ad hoc mode, NFC can communicate with other NFC devices, carry out point-to-point data transfer.In snap gauge simulation models, read
Card device is active devices, produces radiofrequency field;NFC device is passive equipment, and simulation one meets the non-contact card of NFC standard
Interacted with card reader.Mobile terminal 1 00 realizes NFC function by NFC controller 111, such as realizes that NFC is paid.
Mobile terminal 1 00 can also include the power supply 112 (such as battery) powered to all parts, it is preferred that power supply 112
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The function such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 1 00 can also will not be repeated here including bluetooth module etc..
For the ease of understanding the embodiment of the present invention, the communications network system that the mobile terminal of the present invention is based on is entered below
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
Unite as the LTE system of universal mobile communications technology, UE (User Equipment, use of the LTE system including communicating connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned mobile terminal 1 00, and here is omitted.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connected with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide UE201 to EPC203 access.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
There is provided carrying and connection management for the control node of signaling between EPC203.HSS2032 is all to manage for providing some registers
Such as function of attaching position register (not shown) etc, and some are preserved about the use such as service features, data rate
The special information in family.All customer data can be transmitted by SGW2034, and PGW2035 can provide UE 201 IP
Address is distributed and other functions, and PCRF2036 is strategy and the charging control strategic decision-making of business data flow and IP bearing resources
Point, it selects and provided available strategy and charging control decision-making with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., do not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each implementation of mobile terminal of the present invention is proposed
Example.
Fig. 1 is refer to, in the first embodiment of mobile terminal of the present invention, the mobile terminal includes:
The memory 109 of the call chain that is stored with data collection agent program;
Processor device 110, be configured to perform in memory 109 the call chain data collection agent program that stores with realize with
Lower operation:
The performance data of host's terminal is gathered, and the reporting performance data of collection is adopted to the collector connected by this
Aforementioned properties data forwarding to real-time calculating platform, and is generated and carries what real-time calculating platform was returned by storage, matches foregoing property
The adjust instruction of the sampling collection ratio of energy data;
Receive the adjust instruction that collector is returned based on aforementioned properties data;
When receiving adjust instruction, the sampling for gathering the business service call chain data that are monitored in host's terminal is gathered
Ratio is updated to the sampling collection ratio of adjust instruction carrying.
Further, it is also real when processor 110 performs the call chain data collection agent program stored in memory 109
It is now following to operate:
According to the call chain data of the monitored business service of sampling collection ratio collection after renewal;
The call chain data of collection are reported to the collector connected, by the collector by the call chain data storage
Into default distributed storage data warehouse.
Further, it is also real when processor 110 performs the call chain data collection agent program stored in memory 109
It is now following to operate:
When reporting call chain data failure, it is determined that in collector cluster where the collector that has connected it is attachable other
Collector, is used as the target collector for reporting call chain data;
Set up and be connected with the target collector of determination, and call chain data are reported into target collector, gathered for target
Device is by call chain data storage into default distributed storage data warehouse.
Further, it is also real when processor 110 performs the call chain data collection agent program stored in memory 109
It is now following to operate:
After host's terminal starts monitored business service, collector is whether there is in the network segment where identification host's terminal
Collector in cluster;
When the collector in collector cluster is recognized in the foregoing network segment, set up and be connected with the collector recognized.
Further, it is also real when processor 110 performs the call chain data collection agent program stored in memory 109
It is now following to operate:
When the collector in collector cluster is not recognized in the foregoing network segment, the acquiescence link information based on storage, with
Give tacit consent to the corresponding collector of link information and set up connection.
Further, it is also real when processor 110 performs the call chain data collection agent program stored in memory 109
It is now following to operate:
Default UDP multicast messages are sent to the foregoing network segment, are returned if receiving any collector and being based on default UDP multicast messages
The response message returned, it is determined that there is the collector in collector cluster in the foregoing network segment.
Further, it is also real when processor 110 performs the call chain data collection agent program stored in memory 109
It is now following to operate:
Send link information and obtain request to the collector connected, so that the collector is obtained and returns to collector cluster
In other each collectors link information;
Receive and store the link information for other each collectors that the collector connected is returned.
Further, it is also real when processor 110 performs the call chain data collection agent program stored in memory 109
It is now following to operate:
Based on the link information of other each collectors, other each collectors are carried out with the time-consuming test of routing addressing, and really
Whether other fixed each collectors can connect, wherein, collector can not be connected when the machine of delaying or load exceed default load;
By the collector optimal with transmission link in other attachable collectors, the target for reporting call chain data is used as
Collector.
Further, the present invention also provides a kind of call chain collecting method, applied to call chain data collection agent,
Reference picture 3, in the first embodiment of call chain collecting method of the present invention, the call chain collecting method includes:
Step S10, gathers the performance data of host's terminal, and by the reporting performance data of collection to the collection connected
Device, by the collector by aforementioned properties data forwarding to real-time calculating platform, and generates what the real-time calculating platform of carrying was returned,
The adjust instruction of sampling collection ratio with aforementioned properties data;
Step S20, receives the adjust instruction that collector is returned based on aforementioned properties data;
Step S30, when receiving adjust instruction, will gather the business service call chain data that are monitored in host's terminal
Sampling collection ratio is updated to the sampling collection ratio of adjust instruction carrying.
Zookeeper is distributed, open source code a distributed application program coordination service, is Google
The realization that Chubby mono- increases income, is Hadoop and Hbase significant components, is frequently encountered for solving distributed application program
Some data management problems, such as:Uniform Name service, state synchronized service, cluster service, distribution are for configuration parameter
Management etc..
In the present embodiment, to ensure that the object of the invention is realized, Fig. 4 is refer to, it is necessary to dispose Zookeeper clusters in advance
Service, the distributed storage data warehouse based on Hadoop, Kafka message-oriented middlewares and MySQL database, and based on deployment
Zookeeper clusters, build collector cluster, background management system and real-time calculating platform, wherein, collector cluster correspondence
A persistence node under Zookeeper clusters.
In the specific implementation, each collector can open two ports, and corresponding to TCP (transmitting) and UDP respectively (can not
By transmission) reception of datagram, wherein, TCP port be mainly responsible for call chain data collection agent host's terminal performance data,
The data transfers, udp port such as the request command of life cycle state, important call chain data and call chain data collection agent
Mainly it is responsible for the transmission of common call chain data.Collector after the data that call chain data collection agent is reported are received,
The data storage of reception is handled in the task queue of a fixed length, if the overabundance of data received and more than task queue
Length, then collector oneself can be labeled as high load condition, refuse the connection of new call chain data collection agent, simultaneously
The call chain data collection agent that appropriate breaking part has been connected, to ensure that it will not be washed away by huge data volume.
Zookeeper clusters be mainly responsible for all collectors link information (including IP address, TCP port information and
Udp port information) it is shared in collector cluster.Each collector in collector cluster it is determined that when, all can be in collection
A unique transient node is built under the corresponding persistence node of device cluster, in the specific implementation, the transient node can basis
The link information of collector is named, for example, Fig. 5 is refer to, as shown in figure 5, in the specific implementation, collector cluster correspondence
Each collector correspondence in a persistence node " collector " under Zookeeper clusters, collector group
A unique transient node under " collector ", the transient node is with the IP address of collector and two port sets of TCP/UDP
The encrypted characters closed concatenate into temporary name.Furthermore, it is necessary to explanation, when collector is closed, including normal switching-off
Closed with abnormal, the corresponding transient node of the collector can be all automatically deleted on Zookeeper clusters, so as to whole
Collector cluster is perceived.
In the present embodiment, call chain data collection agent starts together with the business service that it is monitored, i.e., whole in host
When monitored business service on end starts, call chain data collection agent will start therewith;When monitored business service stops
When, call chain data collection agent is out of service therewith.Wherein, call chain data collection agent can be by the important call chain of collection
Data and life state data, give the collector connected, common call chain number by TCP transmission agreement real-time report
Local according to being buffered in, timing (such as every five seconds for example is reported once) reports to the collector connected by UDP host-host protocols.Need
It is bright, on important call chain data and common call chain data, can according to actual needs it be carried out by those skilled in the art
Definition, the present invention is not limited, and the related call chain data such as the embodiment of the present invention is using internal memory, CPU and JVM are as important
Call chain data.
In the specific implementation, call chain data collection agent after start-up, is existed by corresponding collector
The information such as its agent identification, monitored business service name are registered in Zookeeper clusters, for example, Fig. 6 is refer to, agent identification
For " API_8001 " call chain data collection agent after registration with the entitled "@9200 " of 10.206.11.23@9100 collection
Device is associated, and that is to say that the call chain data collection agent is connected with the collector.Afterwards, according to default sampling collection ratio to posting
The call chain data for the business service that is monitored on master terminal are acquired, and the call chain data collected are reported to connected
Collector, by the collector by the call chain data storage of reception into distributed storage data warehouse.Wherein, for default
The setting for collection ratio of sampling, the embodiment of the present invention is not specifically limited, can according to actual needs entered by those skilled in the art
Row is set, for example, settable default sampling collection ratio is 20%.
On the other hand, after call chain data collection agent is completed to start and registered, webmaster personnel can be in back-stage management system
The relevant information of call chain data collection agent is viewed in system, and can be set according to actual needs for its configuration sampling collection ratio
Rule is put, wherein, sampling collection ratio setting rule at least includes the mapping relations of performance data and sampling collection ratio, performance
Data include but is not limited to CPU usage, memory usage and active threads number.Fig. 7 is refer to, a kind of sampling is illustrated and adopts
Collect the mapping relations of the lower performance data of ratio setting rule and sampling collection ratio, under sampling collection ratio setting rule,
If the CPU usage of host's terminal be less than 30% and memory usage be less than 50% when, matching sampling collection ratio be 50%.
Background management system is gathered in the sampling for receiving user configuring after ratio setting rule, and the sampling is gathered and compared
Example sets rule storage into MySQL database.
Call chain data collection agent is while collection reports call chain data, and also the performance data to host's terminal is entered
Row collection, wherein, the performance data of collection includes but is not limited to CPU usage, memory usage and active threads number etc..Adjust
With chain data collection agent after the performance data of host's terminal is collected, it is connected by its TCP between collector, will
The reporting performance data collected is to the collector connected.
Collector, will according to default storage rule after the performance data that call chain data collection agent is reported is received
The performance data of reception is stored into distributed storage data warehouse after carrying out processing, meanwhile, these performance datas are led to
Cross Kafka message-oriented middlewares and be forwarded to real-time calculating platform.Wherein, how to be set for default storage rule, the present invention is implemented
Example is not particularly limited, and can be needed to be configured according to actual storage by those skilled in the art.
Real-time calculating platform is extracted pair after the performance data of collector forwarding is received from MySQL database
Answer the sampling of call chain data collection agent to gather ratio setting rule, and gather what ratio setting rule included according to the sampling
The mapping relations of performance data and sampling collection ratio, it is determined that the sampling collection ratio for the performance data that correspondence collector is reported.
And it is determined that after the sampling collection ratio of performance data that correspondence collector is reported, by the sampling of determination gather ratio via
Zookeeper clusters are back to source collector.For example, the performance data that calculating platform receives that collector reports in real time is " living
Jump thread 815, CPU usage 81%, memory usage 82% ", afterwards, according to performance data shown in Fig. 7 and sampling collection ratio
The mapping relations of example, determine that the corresponding sampling collection ratio of aforementioned properties data is 10%, then by sampling collection ratio " 10% "
It is back to collector.
Collector is after the sampling collection ratio that real-time calculating platform is returned is received, and generation carries sampling collection ratio
The adjust instruction of example, for indicating that call chain data collection agent will gather the sampling of the call chain data of monitored business service
Collection ratio is updated to the sampling collection ratio of adjust instruction carrying, that is to say the sampling that the performance data of host's terminal is matched
Collection ratio.
Call chain data collection agent extracts adjust instruction and taken after the adjust instruction of collector transmission is received
The sampling collection ratio of band, and the sampling for gathering the business service call chain data that are monitored in host's terminal is gathered into ratio by it
The sampling collection ratio of adjust instruction carrying is updated to, so that the sampling collection ratio of collection call chain data is and host
What the performance of terminal was adapted to, being capable of collection call chain number as much as possible on the premise of ensureing that host's terminal capabilities is stable
According to.
The call chain collecting method that the embodiment of the present invention is proposed, is adopted by the performance data to host's terminal
Collection, and by the reporting performance data collected to the collector connected, performance data is forwarded to real-time meter by the collector
Platform is calculated, the sampling for matching aforementioned properties data for the return of real-time calculating platform gathers ratio, afterwards, send adjust instruction to tune
Chain data collection agent is used, to indicate that call chain data collection agent will gather the sampling of monitored business service call chain data
The sampling collection ratio that the performance data that collection ratio is updated to host's terminal is matched, so that sampling collection ratio is suitable
Assigned in host's terminal real-time performance, on the premise of ensureing that host's terminal capabilities is stable, it as much as possible can gather and call
Chain data.
Further, based on first embodiment, the second embodiment of call chain collecting method of the present invention is proposed, at this
In embodiment, after step S30, in addition to:
According to the call chain data of the monitored business service of sampling collection ratio collection after renewal;
The call chain data of collection are reported to the collector connected, by the collector by the call chain data storage
Into default distributed storage data warehouse.
It is easily understood that the purpose of the present invention program is on the premise of ensureing that host's terminal capabilities is stable, as far as possible
The call chain data for the business service that is monitored in many collection host's terminals.Therefore, in the present embodiment, call chain data acquisition
Act on behalf of after the renewal of sampling collection ratio is completed, gather and be monitored in host's terminal according to the sampling collection ratio after renewal
The call chain data of business service, and the call chain data collected are reported to the collector connected, will by the collector
The call chain data storage received is into distributed storage data warehouse.
Now consider following scene, the collector connected in call chain data collection agent is delayed machine or in high capacity shape
During state, the collector will be unable to handle the call chain data that call chain data collection agent is reported.Now, call chain number
The call chain data for the monitored business service that will be unable to be gathered according to Collection agent report to the collector connected.
To realize that the correct of collection call chain data reports, in the present embodiment, in the foregoing call chain data by collection
Report to after the step of the collector connected, in addition to:
When reporting call chain data failure, it is determined that in collector cluster where the collector that has connected it is attachable other
Collector, is used as the target collector for reporting call chain data;
Set up and be connected with the target collector of determination, and call chain data are reported into target collector, gathered for target
Device is by call chain data storage into default distributed storage data warehouse.
In the specific implementation, if reporting the call chain data failure of collection, call chain data collection agent can be by collector
Other attachable any collectors are as the target collector for reporting call chain data in cluster, wherein, collector is in the machine of delaying
Or load can not be connected more than when presetting load, load, which exceedes to preset, loads what is received, and untreated overabundance of data
And more than the length of its task queue.
It is determined that after target collector, call chain data collection agent is set up with the target collector determined and is connected, and has
Body, call chain data collection agent with the foundation of the target collector of determination when being connected, the TCP opened based on target collector
Port, sets up TCP length with target collector and is connected.
After foundation and the connection of target collector, call chain data collection agent can be by the call chain gathered before
Data report to target collector, so that the target collector is receiving the call chain number that call chain data collection agent is reported
After, you can the call chain data storage received is into default Distributed Data Warehouse.
For example, refer to Fig. 4, call chain data collection agent 1 is set up with collector 1 has TCP length to be connected, in call chain number
Before the call chain data that monitored business service is newly collected according to Collection agent 1, collector 1 causes the machine of delaying because of emergency case,
Obvious, the call chain data that now call chain data collection agent 1 will be unable to be gathered report to collector 1.To ensure
Call chain to the business service that is monitored is followed the trail of, and call chain data collection agent 1 determines collector 2 to report call chain data
Target collector, and set up with collector 2 after TCP length is connected, the call chain data gathered before are reported into collector
2, by collector 2 by call chain data storage into distributed storage data warehouse.
Further, based on first embodiment, the 3rd embodiment of call chain collecting method of the present invention is proposed, at this
In embodiment, before step S10, in addition to:
After host's terminal starts monitored business service, collector is whether there is in the network segment where identification host's terminal
Collector in cluster;
When the collector in collector cluster is recognized in the foregoing network segment, set up and be connected with the collector recognized.
It should be noted that the present embodiment is on the basis of aforementioned first embodiment, call chain data acquisition generation is added
The operation being connected before reported data with collector foundation is managed, is only explained below, it is real that other can refer to foregoing first
Example is applied, here is omitted.
In embodiments of the present invention, call chain data collection agent is after host's terminal starts monitored business service, with
Startup, and the collector that whether there is in the network segment where host's terminal in collector cluster is recognized, specifically, call chain number
When whether there is the collector in collector cluster in the network segment where identification host's terminal according to Collection agent, to host's terminal
The place network segment sends default UDP multicast messages, if receiving the response that any collector is returned based on the default UDP multicast messages
Message, it is determined that there is the collector in collector cluster in the network segment where host's terminal.Wherein, on presetting UDP multicast reports
The message format of text can be according to actual needs defined by those skilled in the art, and the embodiment of the present invention is not particularly limited.
When the collector in collector cluster is recognized in the network segment where host's terminal, initiated to the collector recognized
TCP connection requests, the connection of TCP length is set up with the collector asked and recognized., wherein it is desired to explanation, if whole in host
When recognizing the collector in multiple collector clusters in the network segment where end, then call chain data collection agent can arbitrarily select one
The individual collector recognized initiates TCP connection requests.
Further, in the present embodiment, it whether there is collector cluster in the network segment where aforementioned identification host terminal
In collector the step of after, it is further comprising the steps of:
When the collector in collector cluster is not recognized in the network segment where host's terminal, the acquiescence connection based on storage
Information, collector corresponding with acquiescence link information, which is set up, to be connected.
It should be noted that in the present embodiment, to avoid being actively discovered collector failure, also providing another connection and adopting
The scheme of storage is for selection.
Specifically, the embodiment of the present invention is distributed for each call chain data collection agent in advance when disposing collector cluster
There is acquiescence collector, and the link information (including IP address, TCP port number and UDP port number) of the acquiescence collector is made
Host's terminal of call chain data collection agent is stored in for acquiescence link information.
After call chain data collection agent is sending foregoing default UDP messages to the network segment where its host's terminal, if
The response message that any collector is returned is not received, it is determined that be not present in the network segment where its host's terminal in collector cluster
Collector, now, call chain data collection agent gets the acquiescence link information of host's terminal storage, and based on the acquiescence
Link information, to the corresponding collector (the acquiescence collector for distributing to the call chain data collection agent) of acquiescence link information
TCP connection requests are initiated, the connection of TCP length is set up in request.Wherein, do not responded in the TCP connection requests of initiation, illustrate that acquiescence is adopted
Storage can not be currently connected, it is necessary to reconfigure acquiescence link information for call chain data collection agent, now exported and be again
The prompt message of call chain data collection agent allocating default link information, to point out related personnel to complete to give tacit consent to link information
Reconfigure.
For example, when not recognizing the collector in collector cluster in the network segment where host's terminal, call chain data
Collection agent gets the acquiescence link information " IP address of host's terminal storage:10.206.11.25, TCP port:9100, UDP
Port:9200 ", then call chain data collection agent please for the collector initiation TCP connections of " 10.206.11.25 " to IP address
Ask, be connected with setting up TCP length with it by 9100 ports.
Further, in the present embodiment, it is further comprising the steps of after being connected with the foundation of any collector:
Send link information and obtain request to the collector connected, so that the collector is obtained and returns to collector cluster
In other each collectors link information;
Receive and store the link information for other each collectors that the collector connected is returned.
It should be noted that in the present embodiment, call chain data collection agent is also to each collector in collector cluster
Link information safeguarded.
Specifically, in the present embodiment, call chain data collection agent is that the collector in any collector cluster is built
After vertical connection, send link information and obtain request to the collector connected, ask each in collector cluster to the collector
The link information of other collectors.
The collector is obtained in the link information for receiving the transmission of call chain data collection agent after request, from
The link information of whole all collectors of collector cluster is got on Zookeeper clusters, then by other each collectors
Link information is back to call chain data collection agent.
Accordingly, call chain data collection agent receives the company for other each collectors that its collector connected is returned
Information is connect, because now call chain data collection agent is got for the first time, in collector cluster in addition to the collector connected
Other collectors link information, the link information for now getting other each collectors is designated as link information and deposited
Storage.In storage, the link information of other each collectors can be stored into the memory 109 of host's terminal, also can will be respectively
The link information of other collectors is cached into the internal memory of host's terminal.
Further, it is the report speed of raising gathered data, in the present embodiment, in the company of other each collectors of storage
It is further comprising the steps of after connecing information:
Disconnect with the TCP connections for the collector being connected, based on the respectively link information of other collectors, adopting of connecting before
The link information of storage, the time-consuming test of routing addressing is carried out to each collector in collector cluster, and determine collector cluster
In each collector is no connects, wherein, collector can not be connected when the machine of delaying or load exceed default load;
Set up and be connected with the optimal collector of transmission link in attachable collector.
For example, Fig. 8 is refer to, as shown in figure 8, call chain data collection agent is optimal to the transmission link of collector 2
Link.
Further, in the present embodiment, it is foregoing to receive and store other each collections that the collector connected is returned
After the step of link information of device, in addition to:
When reaching for the first default update cycle, send the second link information and obtain request to the collector connected;
When receiving the collector connected and returning to the second link information of other each collectors, connect based on each second
Connect information and operation is updated to each link information of storage.
In embodiments of the present invention, first be updated to link information default update cycle, this hair are provided with
Bright embodiment is not particularly limited for the setting of the first default update cycle, can be by those skilled in the art according to actual need
It is configured, for example, the first default update cycle was set to 5 minutes by the present embodiment.
In the specific implementation, if reaching for the first default update cycle, call chain data collection agent is based on Transmission Control Protocol,
Initiate to obtain the real time connection information (being designated as the second link information) of each collector in collector cluster to the collector connected,
And when receiving the second link information of other each collectors that the collector connected is returned, based on each second connection
Information is updated operation to each link information of storage, and specifically the link information to other each collectors carries out difference update,
With ensure safeguard other each collectors link information it is ageing.
Further, based on 3rd embodiment, the fourth embodiment of call chain collecting method of the present invention is proposed, at this
In embodiment, step S20 includes:
Based on the link information of other each collectors, other each collectors are carried out with the time-consuming test of routing addressing, and really
Whether other fixed each collectors can connect, wherein, collector can not be connected when the machine of delaying or load exceed default load;
By the collector optimal with transmission link in other attachable collectors, the target for reporting call chain data is used as
Collector.
It should be noted that the present embodiment adds the specific of pair determination target collector on the basis of previous embodiment
Description, other can refer to the associated description of previous embodiment, and here is omitted.
It is easily understood that optimal mean of transmission link can be reported to the call chain data of collection with most fast speed
Collector.Therefore, in the present embodiment, when it is determined that reporting the target collector of call chain data, it is specifically based on each other and adopts
Other each collectors are carried out the time-consuming test of routing addressing by the link information of storage, it is then determined that whether other each collectors may be used
Connection (wherein, collector can not be connected when the machine of delaying or load exceed default load), abandon the collector of the machine of having delayed with
The collector of high capacity, finally by the collector optimal with transmission link in other attachable collectors, is called as reporting
The target collector of chain data.
For example, refer to Fig. 8, call chain data collection agent is initially set up with collector n and is connected, because collector n is high
The call chain data that load causes call chain data collection agent to gather can not report to collector n, now trigger route and seek
The time-consuming test in location, as shown in figure 8, call chain data collection agent to collector 2 transmission link because it is to the biography of collector 1
Transmission link, is optimal transmission link, it is clear that, call chain data collection agent is using collector 2 as reporting call chain data
Target collector.
Further, it is in the present embodiment, further comprising the steps of to ensure efficiently reporting for call chain data:
When reaching for the second default update cycle, the time-consuming survey of routing addressing is carried out to each collector in collector cluster
Examination, and according to test result judge whether currently attached collector is the collector cluster, transmission link is optimal
Collector;
When judged result is no, sets up and be connected with the optimal collector of present transmission link in the collector cluster.
It should be noted that in the present embodiment, being also previously provided with triggering carries out the time-consuming test of routing addressing second
Default update cycle, the embodiment of the present invention is not particularly limited for the setting of the second default update cycle, can be by this area
Technical staff is configured according to actual needs, for example, the second default update cycle was set to one hour by the present embodiment.
In the specific implementation, if reaching for the second default update cycle, call chain data collection agent based on storage it is each its
The link information of the link information of his collector and the collector currently connected, is carried out to each collector in collector cluster
The time-consuming test of routing addressing, and according to test result judge whether currently attached collector is collector cluster, currently
The optimal collector of transmission link.Wherein, transmission link is optimal in currently attached collector is collector cluster adopts
During storage, call chain data collection agent maintains the connection with currently attached collector;In currently attached collector
When not being the optimal collector of transmission link in collector cluster, call chain data collection agent port with it is currently attached
The connection of collector, and set up and be connected with the optimal collector of present transmission link in collector cluster.
In addition, the present invention also proposes a kind of computer-readable recording medium, it is stored with the computer-readable recording medium
Call chain data collection agent program, realizes following operation when the call chain data collection agent program is performed by processor 110:
The performance data of host's terminal is gathered, and the reporting performance data of collection is adopted to the collector connected by this
Aforementioned properties data forwarding to real-time calculating platform, and is generated and carries what real-time calculating platform was returned by storage, matches foregoing property
The adjust instruction of the sampling collection ratio of energy data;
Receive the adjust instruction that collector is returned based on aforementioned properties data;
When receiving adjust instruction, the sampling for gathering the business service call chain data that are monitored in host's terminal is gathered
Ratio is updated to the sampling collection ratio of adjust instruction carrying.
Further, following operation is also realized when foregoing call chain data collection agent program is performed by processor 110:
According to the call chain data of the monitored business service of sampling collection ratio collection after renewal;
The call chain data of collection are reported to the collector connected, by the collector by the call chain data storage
Into default distributed storage data warehouse.
Further, following operation is also realized when foregoing call chain data collection agent program is performed by processor 110:
When reporting call chain data failure, it is determined that in collector cluster where the collector that has connected it is attachable other
Collector, is used as the target collector for reporting call chain data;
Set up and be connected with the target collector of determination, and call chain data are reported into target collector, gathered for target
Device is by call chain data storage into default distributed storage data warehouse.
Further, following operation is also realized when foregoing call chain data collection agent program is performed by processor 110:
After host's terminal starts monitored business service, collector is whether there is in the network segment where identification host's terminal
Collector in cluster;
When the collector in collector cluster is recognized in the foregoing network segment, set up and be connected with the collector recognized.
Further, following operation is also realized when foregoing call chain data collection agent program is performed by processor 110:
When the collector in collector cluster is not recognized in the foregoing network segment, the acquiescence link information based on storage, with
Give tacit consent to the corresponding collector of link information and set up connection.
Further, following operation is also realized when foregoing call chain data collection agent program is performed by processor 110:
Default UDP multicast messages are sent to the foregoing network segment, are returned if receiving any collector and being based on default UDP multicast messages
The response message returned, it is determined that there is the collector in collector cluster in the foregoing network segment.
Further, following operation is also realized when foregoing call chain data collection agent program is performed by processor 110:
Send link information and obtain request to the collector connected, so that the collector is obtained and returns to collector cluster
In other each collectors link information;
Receive and store the link information for other each collectors that the collector connected is returned.
Further, following operation is also realized when foregoing call chain data collection agent program is performed by processor 110:
Based on the link information of other each collectors, other each collectors are carried out with the time-consuming test of routing addressing, and really
Whether other fixed each collectors can connect, wherein, collector can not be connected when the machine of delaying or load exceed default load;
By the collector optimal with transmission link in other attachable collectors, the target for reporting call chain data is used as
Collector.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a mobile terminal performs the present invention each
Method described in individual embodiment.
Embodiments of the invention are described above in conjunction with accompanying drawing, but the invention is not limited in above-mentioned specific
Embodiment, above-mentioned embodiment is only schematical, rather than restricted, one of ordinary skill in the art
Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make a lot
Form, these are belonged within the protection of the present invention.
Claims (10)
1. a kind of call chain collecting method, applied to call chain data collection agent, it is characterised in that the call chain number
Include according to acquisition method:
The performance data of host's terminal is gathered, and by the reporting performance data of collection to the collector connected, by described
The performance data is forwarded to real-time calculating platform by collector, and generates what the carrying real-time calculating platform was returned, matching
The adjust instruction of the sampling collection ratio of the performance data;
Receive the adjust instruction that the collector is returned based on the performance data;
When receiving the adjust instruction, the sampling for the business service call chain data that are monitored in host's terminal will be gathered
Collection ratio is updated to the sampling collection ratio that the adjust instruction is carried.
2. call chain collecting method according to claim 1, it is characterised in that described to refer to receiving the adjustment
When making, the sampling collection ratio for gathering the business service call chain data that are monitored in host's terminal is updated to the adjust instruction
After the step of sampling collection ratio of carrying, in addition to:
The call chain data of the monitored business service are gathered according to the sampling collection ratio after renewal;
The call chain data of collection are reported into the collector, by the collector by the call chain data storage extremely
In default distributed storage data warehouse.
3. call chain collecting method according to claim 2, it is characterised in that the call chain by collection
After the step of data report to the collector, in addition to:
When reporting the call chain data failure, other attachable collections in collector cluster where determining the collector
Device, is used as the target collector for reporting the call chain data;
Set up and be connected with the target collector of determination, and the call chain data are reported into the target collector, supply
The target collector is by the call chain data storage into the default distributed storage data warehouse.
4. call chain collecting method according to claim 3, it is characterised in that the performance of the collection host terminal
Data, and by before the step of the reporting performance data of collection to the collector connected, in addition to:
After host's terminal starts the monitored business service, whether deposited in the network segment where identification host's terminal
Collector in the collector cluster;
When the collector in the collector cluster is recognized in the network segment, set up and be connected with the collector recognized.
5. call chain collecting method according to claim 4, it is characterised in that identification host's terminal institute
The network segment in whether there is the collector cluster in collector the step of after, in addition to:
When the collector in the collector cluster is not recognized in the network segment, the acquiescence link information based on storage, with
It is described to give tacit consent to the corresponding collector foundation connection of link information.
6. the call chain collecting method according to claim 4 or 5, it is characterised in that the identification host is whole
The step of whether there is the collector in the collector cluster in the network segment where end includes:
Default UDP multicast messages are sent to the network segment, are returned if receiving any collector based on the default UDP multicast messages
The response message returned, it is determined that there is the collector in the collector cluster in the network segment.
7. the call chain collecting method according to claim 4 or 5, it is characterised in that set up with any collector
After connection, in addition to:
Send link information and obtain request to the collector connected, so that the collector is obtained and returns to the collector cluster
In other each collectors link information;
Receive and store the link information for other each collectors that the collector connected is returned.
8. call chain collecting method according to claim 7, it is characterised in that where the determination collector
Other attachable collectors in collector cluster, include the step of as the target collector for reporting the call chain data:
Based on the link information of other each collectors, other each collectors are carried out with the time-consuming test of routing addressing, and determine each
Whether other collectors can connect, wherein, collector can not be connected when the machine of delaying or load exceed default load;
By the collector optimal with transmission link in other attachable collectors, the target for reporting the call chain data is used as
Collector.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes:
The memory of the call chain that is stored with data collection agent program;
Processor, is configured to perform the call chain data collection agent program to realize any one of claim 1 to 8
Call chain collecting method the step of.
10. a kind of computer-readable recording medium, it is characterised in that be stored with call chain on the computer-readable recording medium
Data collection agent program, is realized when the call chain data collection agent program is executed by processor as in claim 1 to 8
The step of call chain collecting method described in any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710511094.2A CN107135128B (en) | 2017-06-28 | 2017-06-28 | Call chain data acquisition method, mobile terminal and computer-readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710511094.2A CN107135128B (en) | 2017-06-28 | 2017-06-28 | Call chain data acquisition method, mobile terminal and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107135128A true CN107135128A (en) | 2017-09-05 |
CN107135128B CN107135128B (en) | 2021-07-23 |
Family
ID=59735793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710511094.2A Active CN107135128B (en) | 2017-06-28 | 2017-06-28 | Call chain data acquisition method, mobile terminal and computer-readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107135128B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286608A (en) * | 2018-08-20 | 2019-01-29 | 中国平安人寿保险股份有限公司 | Call chain processing method, device and storage equipment, computer equipment |
CN110380936A (en) * | 2019-07-23 | 2019-10-25 | 中国工商银行股份有限公司 | Test method and device |
CN110806931A (en) * | 2019-10-31 | 2020-02-18 | 上海依图网络科技有限公司 | Method and device for realizing call link tracking of distributed service and electronic equipment |
CN110995839A (en) * | 2019-12-03 | 2020-04-10 | 北京搜狐新媒体信息技术有限公司 | Method and device for analyzing performance of advertisement system and computer storage medium |
CN111740871A (en) * | 2019-03-25 | 2020-10-02 | 华为技术有限公司 | Data acquisition method and device |
CN113138906A (en) * | 2021-05-13 | 2021-07-20 | 北京优特捷信息技术有限公司 | Call chain data acquisition method, device, equipment and storage medium |
CN115550214A (en) * | 2022-08-17 | 2022-12-30 | 青岛海尔科技有限公司 | Task monitoring method and device, storage medium and electronic device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1354274A2 (en) * | 2001-01-16 | 2003-10-22 | International Business Machines Corporation | Serial link architecture |
US20040121495A1 (en) * | 2002-12-18 | 2004-06-24 | Sonderman Thomas J. | Dynamic adaptive sampling rate for model prediction |
US20080253293A1 (en) * | 2007-04-16 | 2008-10-16 | Finisar Corporation | Optimization of serdes sampling parameters |
EP2097981A1 (en) * | 2006-12-13 | 2009-09-09 | Motorola, Inc. | Method and apparatus for detecting the presence of a signal in a frequency band using non-uniform sampling |
CN102739755A (en) * | 2011-11-07 | 2012-10-17 | 李宗诚 | Computation technology foundation of intelligent integrated network computer |
CN103188119A (en) * | 2011-12-27 | 2013-07-03 | 特克特朗尼克公司 | Confidence intervals for key performance indicators in communication networks |
CN103972884A (en) * | 2014-04-24 | 2014-08-06 | 西南交通大学 | Electric system state estimation method |
CN104702680A (en) * | 2015-02-13 | 2015-06-10 | 安科智慧城市技术(中国)有限公司 | Resource monitoring method and system |
CN105242873A (en) * | 2014-06-27 | 2016-01-13 | 阿里巴巴集团控股有限公司 | Method and apparatus for acquiring and storing performance data of cloud computing system |
CN105491615A (en) * | 2015-11-19 | 2016-04-13 | 杨明霞 | Sensor self-adaptive sampling method based on time sequence |
CN106227671A (en) * | 2016-08-05 | 2016-12-14 | 网易(杭州)网络有限公司 | Program analysis of running performance method and device |
CN106326017A (en) * | 2016-08-17 | 2017-01-11 | 广东亿迅科技有限公司 | Realization system for call chain based on Annotation application |
WO2017039892A1 (en) * | 2015-09-01 | 2017-03-09 | Intel Corporation | Estimation of application performance variation without a priori knowledge of the application |
-
2017
- 2017-06-28 CN CN201710511094.2A patent/CN107135128B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP1354274A2 (en) * | 2001-01-16 | 2003-10-22 | International Business Machines Corporation | Serial link architecture |
US20040121495A1 (en) * | 2002-12-18 | 2004-06-24 | Sonderman Thomas J. | Dynamic adaptive sampling rate for model prediction |
EP2097981A1 (en) * | 2006-12-13 | 2009-09-09 | Motorola, Inc. | Method and apparatus for detecting the presence of a signal in a frequency band using non-uniform sampling |
US20080253293A1 (en) * | 2007-04-16 | 2008-10-16 | Finisar Corporation | Optimization of serdes sampling parameters |
CN102739755A (en) * | 2011-11-07 | 2012-10-17 | 李宗诚 | Computation technology foundation of intelligent integrated network computer |
CN103188119A (en) * | 2011-12-27 | 2013-07-03 | 特克特朗尼克公司 | Confidence intervals for key performance indicators in communication networks |
CN103972884A (en) * | 2014-04-24 | 2014-08-06 | 西南交通大学 | Electric system state estimation method |
CN105242873A (en) * | 2014-06-27 | 2016-01-13 | 阿里巴巴集团控股有限公司 | Method and apparatus for acquiring and storing performance data of cloud computing system |
CN104702680A (en) * | 2015-02-13 | 2015-06-10 | 安科智慧城市技术(中国)有限公司 | Resource monitoring method and system |
WO2017039892A1 (en) * | 2015-09-01 | 2017-03-09 | Intel Corporation | Estimation of application performance variation without a priori knowledge of the application |
CN105491615A (en) * | 2015-11-19 | 2016-04-13 | 杨明霞 | Sensor self-adaptive sampling method based on time sequence |
CN106227671A (en) * | 2016-08-05 | 2016-12-14 | 网易(杭州)网络有限公司 | Program analysis of running performance method and device |
CN106326017A (en) * | 2016-08-17 | 2017-01-11 | 广东亿迅科技有限公司 | Realization system for call chain based on Annotation application |
Non-Patent Citations (2)
Title |
---|
E FIORELLI,ETC.: ""Multi-AUV Control and Adaptive Sampling in Monterey Bay"", 《IEEE JOURNAL OF OCEANIC ENGINEERING》 * |
左进,陈泽茂等: ""兼顾网络负载与公平的数据流抽样算法"", 《计算机工程与设计》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286608A (en) * | 2018-08-20 | 2019-01-29 | 中国平安人寿保险股份有限公司 | Call chain processing method, device and storage equipment, computer equipment |
CN109286608B (en) * | 2018-08-20 | 2022-08-12 | 中国平安人寿保险股份有限公司 | Call chain processing method and device, storage device and computer device |
CN111740871A (en) * | 2019-03-25 | 2020-10-02 | 华为技术有限公司 | Data acquisition method and device |
CN110380936A (en) * | 2019-07-23 | 2019-10-25 | 中国工商银行股份有限公司 | Test method and device |
CN110806931A (en) * | 2019-10-31 | 2020-02-18 | 上海依图网络科技有限公司 | Method and device for realizing call link tracking of distributed service and electronic equipment |
CN110995839A (en) * | 2019-12-03 | 2020-04-10 | 北京搜狐新媒体信息技术有限公司 | Method and device for analyzing performance of advertisement system and computer storage medium |
CN110995839B (en) * | 2019-12-03 | 2022-09-20 | 北京搜狐新媒体信息技术有限公司 | Method and device for analyzing performance of advertisement system and computer storage medium |
CN113138906A (en) * | 2021-05-13 | 2021-07-20 | 北京优特捷信息技术有限公司 | Call chain data acquisition method, device, equipment and storage medium |
CN115550214A (en) * | 2022-08-17 | 2022-12-30 | 青岛海尔科技有限公司 | Task monitoring method and device, storage medium and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN107135128B (en) | 2021-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107135128A (en) | Call chain collecting method, mobile terminal and computer-readable recording medium | |
CN107463602A (en) | A kind of log processing method and server, client | |
CN107135156A (en) | Call chain collecting method, mobile terminal and computer-readable recording medium | |
CN107967322A (en) | Document classification display methods, mobile terminal and computer-readable recording medium | |
CN107861688A (en) | A kind of data-erasure method, terminal and readable storage medium storing program for executing | |
CN107038245A (en) | Page switching method, mobile terminal and storage medium | |
CN107707450A (en) | A kind of method, apparatus and computer-readable recording medium for transmitting file | |
CN107832163A (en) | A kind of buffering updating method, server and computer-readable recording medium | |
CN110177177A (en) | Message back method, mobile terminal and computer readable storage medium | |
CN107220132A (en) | A kind of monitor method, equipment and the storage medium of document creation information | |
CN109379735A (en) | ESIM card operating method, mobile terminal and eSIM card apparatus | |
CN107580336A (en) | A kind of method for connecting network, terminal and computer-readable recording medium | |
CN108011937A (en) | Information push method, server, intelligent terminal and computer-readable recording medium | |
CN109299039A (en) | A kind of file management method, equipment and computer readable storage medium | |
CN107426304A (en) | Method, system and the proxy server of interactive media resource | |
CN107135086A (en) | One kind broadcast method for pushing and equipment, computer-readable recording medium | |
CN109783370A (en) | A kind of log grasping means, terminal and computer readable storage medium | |
CN107708224A (en) | Wi Fi control methods, mobile terminal and computer-readable recording medium | |
CN107766088A (en) | Interface optimization method, system and computer-readable recording medium | |
CN107340949A (en) | Aligning method, mobile terminal and the computer-readable recording medium of application icon | |
CN109445945A (en) | Memory allocation method, mobile terminal, server and the storage medium of application program | |
CN108449736A (en) | A kind of data transmission method, terminal and computer readable storage medium | |
CN108040116A (en) | Information push method, router and computer-readable recording medium | |
CN107708190A (en) | Wi Fi control methods, mobile terminal and computer-readable recording medium | |
CN107241394A (en) | A kind of log transmission method, device and computer-readable recording 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 |