CN106980572A - The on-line debugging method and system of distributed system - Google Patents
The on-line debugging method and system of distributed system Download PDFInfo
- Publication number
- CN106980572A CN106980572A CN201610035223.0A CN201610035223A CN106980572A CN 106980572 A CN106980572 A CN 106980572A CN 201610035223 A CN201610035223 A CN 201610035223A CN 106980572 A CN106980572 A CN 106980572A
- Authority
- CN
- China
- Prior art keywords
- debugging
- debugging message
- distributed
- message
- instruction
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
- G06F11/3644—Software debugging by instrumenting at runtime
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application proposes a kind of on-line debugging method and system of distributed system, wherein, this method comprises the following steps:I-th distributed node receives Debugging message and collects instruction, wherein, Debugging message, which collects instruction, to be included collecting mark, wherein, i is positive integer;I-th distributed node collects instruction according to Debugging message and enters on-line debugging pattern, and collects Debugging message;I-th distributed node sends Debugging message to server, wherein, Debugging message has numbering corresponding with Debugging message collection instruction;Debugging message is collected instruction and sent to i+1 distributed node by the i-th distributed node.The on-line debugging method of the distributed system of the application, reduces debugging log and collects difficulty, improve log collection efficiency, consequently facilitating commissioning staff carries out global analysis to Debugging message, it is possible to increase debugging efficiency.
Description
Technical field
The application is related to on-line debugging technical field, the on-line debugging method and system of more particularly to a kind of distributed system.
Background technology
In traditional distributed system, mainly write by the local file system of each distributed node it is Journaled, it is this
There is problems with for analyzing and solving the problem of distributed system is present in mode:
1st, due to traditional log system, daily record is stored in each distributed node the machine, and it is strict in distributed system
Jurisdictions mandate under, not all people has permission the daily record for being able to access that and being stored in each distributed node, accordingly, there exist
The problem of log access is difficult.
2nd, due to distributed system, in the response process once applied, it may undergo and much be deployed in different distributions formula node
Module, and each module is to independently generate and store the daily record of oneself module, therefore each undergoes in a response process
The daily record of module is independent storage, therefore, in debugging, it is necessary to which commissioning staff searches daily record respectively from different modules,
It is very inconvenient.Further, since the context dependence of the daily record in the parallel feature of distributed system, different modules is not obvious,
This also brings great difficulty for debugging.
3rd, each module in distributed system is externally serviced in the form of independent cluster, and cluster internal is by hundreds and thousands of
Machine is constituted.Due to the reason of load balancing, the machine per a certain request of secondary response all may be different, and this results in debugging people
It is very difficult, poorly efficient that member collects the related daily record of certain request.
4th, distributed system needs to handle hundreds of request each second, and request all can be defeated internal system running status every time
Go out in daily record, cause log content to expand quickly, therefore, it is difficult to differentiate the daily record of certain request.And in traditional daily record
Multiple processes can write this journal file simultaneously, this also result in be flooded with daily record other processes write-in with the secondary response
Unrelated daily record, is more not easy to the lookup of the daily record of this request, result in analysis efficiency relatively low.
The content of the invention
The application is intended at least solve above-mentioned technical problem to a certain extent.
Therefore, first purpose of the application is a kind of on-line debugging method for proposing distributed system, debugging log is reduced
Difficulty is collected, log collection efficiency is improved.
Second purpose of the application is the on-line debugging system for proposing a kind of distributed system.
For up to above-mentioned purpose, a kind of on-line debugging method of distributed system is proposed according to the application first aspect embodiment, bag
Include following steps:I-th distributed node receives Debugging message and collects instruction, wherein, the Debugging message, which collects instruction, to be included receiving
Set identifier, wherein, i is positive integer;I-th distributed node collects instruction according to the Debugging message and enters on-line debugging
Pattern, and collect Debugging message;I-th distributed node sends the Debugging message to server, wherein, it is described to adjust
Trying information has numbering corresponding with Debugging message collection instruction;I-th distributed node collects the Debugging message
Instruction is sent to i+1 distributed node.
The on-line debugging method of the distributed system of the embodiment of the present application, distributed node that can be in distributed system includes in reception
The Debugging message for collecting mark collects instruction, into on-line debugging pattern, and collects Debugging message, sends to server, passes through
Collect the mark action of mark targetedly can be collected to Debugging message, so as to avoid Debugging message and other running logs
Information is mutually obscured, and can substantially reduce the degree of daily record expansion.In addition, Debugging message has collects instruction pair with Debugging message
The numbering answered, distinguishes so as to which different Debugging message are collected with instruction correspondence Debugging message according to numbering, is easy to Debugging message
Collection, search and associate.Therefore, the embodiment of the present application reduces debugging log and collects difficulty, improves log collection efficiency,
And it is easy to commissioning staff to carry out global analysis to Debugging message, it is possible to increase debugging efficiency.
The application second aspect embodiment provides a kind of on-line debugging system of distributed system, including:Multiple distributed nodes
And server, wherein, distributed node is used to receive Debugging message collection instruction, wherein, the Debugging message collects instruction bag
Collection mark is included, and instruction is collected according to the Debugging message and enters on-line debugging pattern, and collects Debugging message, and by institute
Debugging message is stated to send to the server, wherein, the Debugging message has compile corresponding with Debugging message collection instruction
Number, and the Debugging message is collected into instruction transmission to next distributed node;The server is used to receive the distributed section
The Debugging message that point is sent.
The on-line debugging system of the distributed system of the embodiment of the present application, distributed node that can be in distributed system includes in reception
The Debugging message for collecting mark collects instruction, into on-line debugging pattern, and collects Debugging message, sends to server, passes through
Collect the mark action of mark targetedly can be collected to Debugging message, so as to avoid Debugging message and other running logs
Information is mutually obscured, and can substantially reduce the degree of daily record expansion.In addition, Debugging message has collects instruction pair with Debugging message
The numbering answered, distinguishes so as to which different Debugging message are collected with instruction correspondence Debugging message according to numbering, is easy to Debugging message
Collection, search and associate.Therefore, the embodiment of the present application reduces debugging log and collects difficulty, improves log collection efficiency,
And it is easy to commissioning staff to carry out global analysis to Debugging message, it is possible to increase debugging efficiency.
The additional aspect and advantage of the application will be set forth in part in the description, and partly will become bright from the following description
It is aobvious, or recognized by the practice of the application.
Brief description of the drawings
The above-mentioned and/or additional aspect and advantage of the application will be apparent from description of the accompanying drawings below to embodiment is combined and
It is readily appreciated that, wherein:
Fig. 1 is the flow chart of the on-line debugging method of the distributed system according to the application one embodiment;
Fig. 2 is the flow chart of the on-line debugging method of the distributed system according to the application another embodiment;
Fig. 3 is the on-line debugging schematic diagram of the distributed system according to the application another embodiment;
Fig. 4 is the structural representation of the on-line debugging system of the distributed system according to the application one embodiment.
Embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein it is identical from beginning to end or
Similar label represents same or similar element or the element with same or like function.Described below with reference to accompanying drawing
Embodiment is exemplary, is only used for explaining the application, and it is not intended that limitation to the application.
Below with reference to the accompanying drawings on-line debugging method and system according to the distributed system of the embodiment of the present application is described.
Fig. 1 is the flow chart of the on-line debugging method of the distributed system according to the application one embodiment.
As shown in figure 1, according to the on-line debugging method of the distributed system of the embodiment of the present application, including:
S101, the i-th distributed node receives Debugging message and collects instruction, wherein, Debugging message, which collects instruction, to be included collecting mark,
Wherein, i is positive integer.
Distributed system is made up of multiple distributed nodes.Each distributed node can be used for the request that processing server is sent.Visitor
Family end subscriber can send service request or on-line debugging request of application program etc. according to process demand to server.For example, for
For service request, it can distribute corresponding node to handle the service request according to the idle degree of each distributed node.And for
On-line debugging request for, can according to client request to need collect Debugging message node send Debugging message collect instruct.
The request that server can be sent according to client corresponding distributed node into distributed system sends corresponding instruction, with
The request to client is handled by each distributed node.Wherein, on-line debugging request is different from service request, clothes
Service request of the device for client of being engaged in sends corresponding business processing instruction to distributed system;For the on-line debugging of client
Ask to send corresponding Debugging message collection instruction to distributed system.
In embodiments herein, in order to which the service request for distinguishing application program is asked with on-line debugging, server is sending debugging
When information is instructed, instruction setting can be collected for Debugging message and collects mark.So as to which each distributed node can be according to receiving
Request whether include the collection and identify whether judge to receive be that Debugging message collects instruction, can subsequently believe only for debugging
Breath is collected the corresponding daily record of instruction and is collected, and more facilitates, and improves the efficiency of information.
In one embodiment of the application, server can into distributed system, corresponding distribution be saved according to the request of client
Point sends Debugging message and collects instruction, to be debugged, and each distributed node, can in debugging process or when debugging is completed
Debugging message is collected into instruction to send to next distributed node, to debug next distributed node.Therefore, i-th point
The Debugging message that cloth node is received collects instruction and can be sent or be sent by the i-th -1 distributed node by server.
S102, the i-th distributed node collects instruction according to Debugging message and enters on-line debugging pattern, and collects Debugging message.
After the i-th distributed node, which receives Debugging message, collects instruction, on-line debugging pattern can be entered, i.e., according to present instruction
The operation of progress is on-line debugging, then current processing procedure can be recorded, obtain Debugging message.
Specifically, in embodiments herein, Trace API (Trace Application are provided with each distributed node
Programming Interface track application programming interfaces), distributed node can collect Debugging message by Trace API.
S103, the i-th distributed node sends Debugging message to server, wherein, Debugging message has to be collected with Debugging message
The corresponding numbering of instruction.
I-th distributed node can send the Debugging message being collected into server, with by server after Debugging message is collected
The same Debugging message received according to other distributed nodes, which is collected, instructs corresponding Debugging message.
Wherein, the numbering can be the character string of preset length.For example, the numbering can be the numeric string of 64.Often
On-line debugging of individual numbering correspondence, for the abnormal Debugging message of unique mark.That is, no matter in which distributed node
In Debugging message, as long as with the Debugging message of on-line debugging, all with being identically numbered.So as to be believed according to debugging
Same Debugging message on different distributions formula node is collected instruction correspondence Debugging message and is associated by the numbering of breath, is easy to debug people
Member carries out global analysis to Debugging message.
Debugging message is collected instruction and sent to i+1 distributed node by S104, the i-th distributed node.
I-th distributed node can send to its next distributed node (i.e. i+1 distributed node) and adjust after debugging is completed
Information instruction is tried, to control i+1 distributed node to collect Debugging message.
The on-line debugging method of the distributed system of the embodiment of the present application, distributed node that can be in distributed system includes in reception
The Debugging message for collecting mark collects instruction, into on-line debugging pattern, and collects Debugging message, sends to server, passes through
Collect the mark action of mark targetedly can be collected to Debugging message, so as to avoid Debugging message and other running logs
Information is mutually obscured, and can substantially reduce the degree of daily record expansion.In addition, Debugging message has collects instruction pair with Debugging message
The numbering answered, distinguishes so as to which different Debugging message are collected with instruction correspondence Debugging message according to numbering, is easy to Debugging message
Collection, search and associate.Therefore, the embodiment of the present application reduces debugging log and collects difficulty, improves log collection efficiency,
And it is easy to commissioning staff to carry out global analysis to Debugging message, it is possible to increase debugging efficiency.
Further, Fig. 2 is the flow chart of the on-line debugging method of the distributed system according to the application another embodiment.
As shown in Fig. 2 according to the on-line debugging method of the distributed system of the application, including step S201-S204, step
S201-S204 is identical with step S101-S104 in Fig. 1, further, may also include with step S205-S209.
S205, i+1 distributed node receives Debugging message and collects instruction, wherein, Debugging message, which collects instruction, to be included collecting mark
Know.
S206, i+1 distributed node collects instruction according to Debugging message and enters on-line debugging pattern, and collects Debugging message.
S207, i+1 distributed node sends Debugging message to server, wherein, Debugging message has to be received with Debugging message
The corresponding numbering of collection instruction.
Debugging message is collected instruction and sent to the i-th+2 distributed node by S208, the i-th distributed node.
S209, server receives the Debugging message that distributed node is sent, and numbering in Debugging message is collected with life
Into debugging log.
It is each to need to collect the distributed node of Debugging message after Debugging message is collected, the Debugging message being collected into can be sent to
Server.Server can receive the Debugging message of each distributed node transmission, and numbering in Debugging message is believed debugging
Breath is collected.Specifically, the Debugging message of identical numbering can be merged, generates the corresponding debugging log of the numbering.
In embodiments herein, server can have access interface, and client can be transferred in server by the access interface
Debugging log.Specifically, client can receive the corresponding numbering of Debugging message collection instruction of user's input, and according to the numbering
Transfer corresponding debugging log in server.
In one embodiment of the application, debugging log extends Language XML form for that can mark.So as to, be easy to client from
Server, which is read, carries out structuring displaying after debugging log, be easy to analysis, further improve debugging efficiency.
The on-line debugging method of the distributed system of the present embodiment is illustrated below by following application scenarios.Such as Fig. 3 institutes
Show, the distributed system of service end by FE (Front End, front end), Merger (service logic node), QR (Query Rewrite,
Query word rewrites node), DN (Data Node, back end), SN (Search Node, retrieve node) and ORS (Online
Ranking System, online scoring system) this six node compositions.Need to collect Debugging message each node (ORS,
Tri- nodes of SN, Merger), Debugging message can be collected by Trace API, and after debugging is completed, will by network
The Debugging message being collected into is sent to server Trace Server (tracking server).
Specifically, Merger nodes can determine whether whether include collecting mark in the instruction, if bag when receiving an instruction
Include, then into on-line debugging pattern, and collect Debugging message (Merger Trace information), send to Trace Server.Its
In, Merger nodes are after judging that including collection identifies, or after Debugging message completion is collected, can be sent out to SN nodes
Send instruction.SN nodes can determine whether whether include collecting mark in the instruction, if including, into on-line debugging pattern, and
Debugging message (SN Trace information) is collected, is sent to Trace Server.SN nodes are included in judgement after collection mark,
Or after Debugging message completion is collected, can send and instruct to ORS nodes.ORS nodes can determine whether whether wrapped in the instruction
Collection mark is included, if including into on-line debugging pattern, and collecting Debugging message (ORS Trace information), sending extremely
Trace Server。
Trace Server can merge the Debugging message of tri- nodes of ORS, SN, Merger, generate a debugging request
Corresponding complete debugging log is stored.Client can be inputted by UI (User Interface, user interface) according to user
Numbering reading service device in the corresponding debugging log that stores, and parsed, and structuring is shown after parsing.
In embodiments herein, collect Debugging message node can respective Debugging message collection after the completion of, each respectively to
Server sends Debugging message, so as to avoid the possibility blocked, and the result asked with other processing and not together
Return, therefore, do not influence the response time of the result of processing request, will not also invade the result of other processing requests,
Sensitive information in server is difficult leakage, improves the security of data.
Different Debugging message can be collected instruction correspondence by the on-line debugging method of the distributed system of the embodiment of the present application according to numbering
Debugging message is distinguished, and each distributed node can send the Debugging message of collection to server, so as to server according to
The numbering of Debugging message is collected to generate debugging log to Debugging message, is reduced debugging log and is collected difficulty, improves day
Will collection efficiency, and it is easy to commissioning staff to carry out global analysis to Debugging message, it is possible to increase debugging efficiency.
On-line debugging method with the distributed system that above-described embodiment is provided is corresponding, and the application also proposes a kind of distributed system
On-line debugging system.
Fig. 4 is the structural representation of the on-line debugging system of the distributed system according to the application one embodiment.
As shown in figure 4, according to the on-line debugging system of the distributed system of the embodiment of the present application, including:Multiple distributed nodes
10 and server 20.
Specifically, distributed node 10 is used to receive Debugging message collection instruction, wherein, Debugging message, which collects instruction, to be included receiving
Set identifier, and on-line debugging pattern is entered according to Debugging message collection instruction, and Debugging message is collected, and Debugging message is sent out
Server 20 is delivered to, wherein, Debugging message has numbering corresponding with Debugging message collection instruction, and Debugging message is collected
Instruction is sent to next distributed node.
Server 20 is used for the Debugging message for receiving distributed node transmission.
Wherein, multiple distributed nodes 10 belong to same distributed system.Each distributed node 10 can be used for processing server
The request of transmission.Client user can send the service request or on-line debugging of application program according to process demand to server 20
Request etc..For example, for service request, can distribute corresponding node to handle according to the idle degree of each distributed node
The service request.And for on-line debugging request for, can according to client request to need collect Debugging message node send
Debugging message collects instruction.
Wherein, the numbering can be the character string of preset length.For example, the numbering can be the numeric string of 64.Often
On-line debugging of individual numbering correspondence, for the abnormal Debugging message of unique mark.That is, no matter in which distributed node
In Debugging message, as long as with the Debugging message of on-line debugging, all with being identically numbered.So as to be believed according to debugging
Same Debugging message on different distributions formula node is collected instruction correspondence Debugging message and is associated by the numbering of breath, is easy to debug people
Member carries out global analysis to Debugging message.
The request that server 20 can be sent according to client corresponding distributed node 10 into distributed system sends corresponding finger
Order, to be handled by each 10 pairs of request to client of distributed node.Wherein, on-line debugging request please with business
Ask different, server 20 sends corresponding business processing to distributed system for the service request of client and instructed;For visitor
The on-line debugging at family end asks to send corresponding Debugging message collection instruction to distributed system.
In embodiments herein, in order to which the service request for distinguishing application program is asked with on-line debugging, server 20 is being sent
When Debugging message collects instruction, it can collect to instruct to set for Debugging message and collect mark.So as to which each distributed node 10 can root
Identify whether judge to receive be that Debugging message collects instruction according to whether the request received includes the collection, subsequently can only pin
Instruct corresponding daily record to be collected debugging information, more facilitate, improve the efficiency of information.
In one embodiment of the application, server 20 can accordingly be distributed according to the request of client into distributed system
Formula node 10 sends Debugging message and collects instruction, and to be debugged, each distributed node 10 is in debugging process or debugs
During completion, Debugging message can be collected instruction and sent to next distributed node, to be debugged to next distributed node.
Therefore, the Debugging message that the i-th distributed node is received is collected instruction and can sent by server or by the i-th -1 distributed node
Send.After the i-th distributed node, which receives Debugging message, collects instruction, on-line debugging pattern can be entered, i.e., according to currently finger
The operation that order is carried out is on-line debugging, then current processing procedure can be recorded, obtain Debugging message.I-th distributed section
Point collect Debugging message after, the Debugging message being collected into can be sent to server 20, with by server 20 according to other points
The same Debugging message that cloth node is received collects the corresponding Debugging message of instruction.
I-th distributed node can send to its next distributed node (i.e. i+1 distributed node) and adjust after debugging is completed
Information instruction is tried, to control i+1 distributed node to collect Debugging message.Thus, can control successively it is each need collect
The distributed node of Debugging message collects Debugging message.And each distributed node for needing to collect Debugging message is by the tune of collection
Examination information is sent to server 20.Server 20 can receive the Debugging message of each distributed node transmission, and be believed according to debugging
Numbering in breath collects to Debugging message.Specifically, server 20 can merge the Debugging message of identical numbering,
Generate the corresponding debugging log of the numbering.
In embodiments herein, server 20 can have access interface, and client can transfer server by the access interface
In debugging log.Specifically, client can receive the corresponding numbering of Debugging message collection instruction of user's input, and according to this
Numbering transfers corresponding debugging log in server.
In one embodiment of the application, debugging log extends Language XML form for that can mark.So as to, be easy to client from
Server reads 20 and takes progress structuring displaying after debugging log, is easy to analysis, further improves debugging efficiency.
The on-line debugging method of the distributed system of the present embodiment is illustrated below by following application scenarios.Such as Fig. 3 institutes
Show, the distributed system of service end by FE (Front End, front end), Merger (service logic node), QR (Query Rewrite,
Query word rewrites node), DN (Data Node, back end), SN (Search Node, retrieve node) and ORS (Online
Ranking System, online scoring system) this six node compositions.Need to collect Debugging message each node (ORS,
Tri- nodes of SN, Merger), Debugging message can be collected by Trace API, and after debugging is completed, will by network
The Debugging message being collected into is sent to server Trace Server (tracking server).
Specifically, Merger nodes can determine whether whether include collecting mark in the instruction, if bag when receiving an instruction
Include, then into on-line debugging pattern, and collect Debugging message, send to Trace Server.Wherein, Merger nodes are being sentenced
It is disconnected include collecting mark after, or collecting after Debugging message completes, instruction can be sent to SN nodes.SN nodes can
Judge whether include collecting mark in the instruction, if including into on-line debugging pattern, and collecting Debugging message, sending
To Trace Server.SN nodes are after judging to include to collect mark, or after Debugging message completion is collected, can be to
ORS nodes send instruction.ORS nodes can determine whether in the instruction whether to include collecting mark, if including into online
Debugging mode, and Debugging message is collected, send to Trace Server.
Trace Server can merge the Debugging message of tri- nodes of ORS, SN, Merger, generate a debugging request
Corresponding complete debugging log is stored.Client can be inputted by UI (User Interface, user interface) according to user
Numbering reading service device in the corresponding debugging log that stores, and parsed, and structuring is shown after parsing.
In embodiments herein, collect Debugging message node can respective Debugging message collection after the completion of, each respectively to
Server sends Debugging message, so as to avoid the possibility blocked, and the result asked with other processing and not together
Return, therefore, do not influence the response time of the result of processing request, will not also invade the result of other processing requests,
Sensitive information in server is difficult leakage, improves the security of data.
The on-line debugging system of the distributed system of the embodiment of the present application, distributed node that can be in distributed system includes in reception
The Debugging message for collecting mark collects instruction, into on-line debugging pattern, and collects Debugging message, sends to server, passes through
Collect the mark action of mark targetedly can be collected to Debugging message, so as to avoid Debugging message and other running logs
Information is mutually obscured, and can substantially reduce the degree of daily record expansion.In addition, Debugging message has collects instruction pair with Debugging message
The numbering answered, distinguishes so as to which different Debugging message are collected with instruction correspondence Debugging message according to numbering, is easy to Debugging message
Collection, search and associate.Therefore, the embodiment of the present application reduces debugging log and collects difficulty, improves log collection efficiency,
And it is easy to commissioning staff to carry out global analysis to Debugging message, it is possible to increase debugging efficiency.
In flow chart or herein any process described otherwise above or method description be construed as, expression include one or
Module, fragment or the part of the code of the executable instruction for the step of more are used to realize specific logical function or process, and
The scope of the preferred embodiment of the application includes other realization, wherein can not be by order that is shown or discussing, including root
According to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be by embodiments herein institute
Category those skilled in the art are understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered for real
The order list of the executable instruction of existing logic function, may be embodied in any computer-readable medium, so that instruction is held
Row system, device or equipment (such as computer based system including the system of processor or other can from instruction execution system,
The system of device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or equipment and use.
For the purpose of this specification, " computer-readable medium " can be it is any can include, store, communicating, propagating or transmission procedure with
For instruction execution system, device or equipment or the device for combining these instruction execution systems, device or equipment and using.Computer
The more specifically example (non-exhaustive list) of computer-readable recording medium includes following:Electrical connection section (electricity with one or more wirings
Sub-device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM),
Erasable edit read-only storage (EPROM or flash memory), fiber device, and the read-only storage of portable optic disk
Device (CDROM).In addition, can even is that can be in the paper of printing described program thereon or other are suitable for computer-readable medium
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.In above-mentioned implementation
In mode, software or firmware that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
To realize.If for example, being realized with hardware, with another embodiment, following technology well known in the art can be used
Any one of or their combination realize:Discrete with the logic gates for realizing logic function to data-signal is patrolled
Collect circuit, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), field-programmable
Gate array (FPGA) etc..
Those skilled in the art be appreciated that to realize all or part of step that above-described embodiment method is carried is can
To instruct the hardware of correlation to complete by program, described program can be stored in a kind of computer-readable recording medium, should
Program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in the application each embodiment can be integrated in a processing module or each
Unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both can be with
Realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.If the integrated module is with software work(
The form of energy module is realized and is situated between as independent production marketing or in use, an embodied on computer readable storage can also be stored in
In matter.
Storage medium mentioned above can be read-only storage, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specific example ",
Or the description of " some examples " etc. means to combine specific features, structure, material or feature that the embodiment or example describe and included
In at least one embodiment or example of the application.In this manual, the schematic representation of above-mentioned term is not necessarily referred to
It is identical embodiment or example.Moreover, specific features, structure, material or the feature of description can in any one or
Combined in an appropriate manner in multiple embodiments or example.
While there has been shown and described that embodiments herein, it will be understood by those skilled in the art that:This is not being departed from
In the case of the principle and objective of application a variety of change, modification, replacement and modification can be carried out to these embodiments, the application's
Scope is by claim and its equivalent limits.
Claims (11)
1. a kind of on-line debugging method of distributed system, it is characterised in that comprise the following steps:
I-th distributed node receives Debugging message and collects instruction, wherein, the Debugging message, which collects instruction, to be included collecting mark,
Wherein, i is positive integer;
I-th distributed node collects instruction according to the Debugging message and enters on-line debugging pattern, and collects Debugging message;
I-th distributed node sends the Debugging message to server, wherein, the Debugging message has to be adjusted with described
Try information and instruct corresponding numbering;
The Debugging message is collected instruction and sent to i+1 distributed node by i-th distributed node.
2. the on-line debugging method of distributed system as claimed in claim 1, it is characterised in that also include:
The i+1 distributed node receives Debugging message and collects instruction, wherein, the Debugging message, which collects instruction, to be included collecting
Mark;
The i+1 distributed node collects instruction according to the Debugging message and enters on-line debugging pattern, and collects Debugging message;
The i+1 distributed node sends the Debugging message to server, wherein, the Debugging message have with it is described
Debugging message collects the corresponding numbering of instruction;
The Debugging message is collected instruction and sent to the i-th+2 distributed node by i-th distributed node.
3. the on-line debugging method of distributed system as claimed in claim 1, it is characterised in that also include:
The server receives the Debugging message that distributed node is sent, and the numbering in the Debugging message collected with
Generate debugging log.
4. the on-line debugging method of distributed system as claimed in claim 1, it is characterised in that the described i-th distributed section
The Debugging message that point is received collects instruction and is sent by the server or sent by the i-th -1 distributed node.
5. the on-line debugging method of distributed system as claimed in claim 3, it is characterised in that wherein, the server
With access interface, for transferring the debugging log by the access interface.
6. the on-line debugging method of distributed system as claimed in claim 3, it is characterised in that the debugging log is can
Mark extension Language XML form.
7. a kind of on-line debugging system of distributed system, it is characterised in that including:Multiple distributed nodes and server,
Wherein,
Distributed node is used to receive Debugging message collection instruction, wherein, the Debugging message is collected to instruct to include collecting and identified,
And on-line debugging pattern is entered according to Debugging message collection instruction, and Debugging message is collected, and the Debugging message is sent out
The server is delivered to, wherein, the Debugging message has numbering corresponding with Debugging message collection instruction, and will be described
Debugging message is collected instruction and sent to next distributed node;
The server is used to receive the Debugging message that the distributed node is sent.
8. the on-line debugging system of distributed system as claimed in claim 7, it is characterised in that
The numbering that the server is additionally operable in the Debugging message is collected to generate debugging log.
9. the on-line debugging system of distributed system as claimed in claim 7, it is characterised in that the distributed node connects
The Debugging message received collects instruction and is sent by the server or sent by a upper distributed node for the distributed node.
10. the on-line debugging system of distributed system as claimed in claim 8, it is characterised in that wherein, the server
With access interface, for transferring the debugging log by the access interface.
11. the on-line debugging system of distributed system as claimed in claim 8, it is characterised in that the debugging log is can
Mark extension Language XML form.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610035223.0A CN106980572B (en) | 2016-01-19 | 2016-01-19 | Online debugging method and system for distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610035223.0A CN106980572B (en) | 2016-01-19 | 2016-01-19 | Online debugging method and system for distributed system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106980572A true CN106980572A (en) | 2017-07-25 |
CN106980572B CN106980572B (en) | 2021-03-02 |
Family
ID=59339857
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610035223.0A Active CN106980572B (en) | 2016-01-19 | 2016-01-19 | Online debugging method and system for distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106980572B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108365982A (en) * | 2018-02-06 | 2018-08-03 | 北京小米移动软件有限公司 | Unit exception adjustment method, device, equipment and storage medium |
CN109408310A (en) * | 2018-10-19 | 2019-03-01 | 网易(杭州)网络有限公司 | Adjustment method, server and the readable storage medium storing program for executing of server |
CN110018956A (en) * | 2019-01-28 | 2019-07-16 | 阿里巴巴集团控股有限公司 | Using adjustment method and relevant apparatus |
CN112328491A (en) * | 2020-11-18 | 2021-02-05 | Oppo广东移动通信有限公司 | Output method of trace message, electronic device and storage medium |
US20210089419A1 (en) * | 2019-09-25 | 2021-03-25 | Alibaba Group Holding Limited | Debugging unit and processor |
CN114741313A (en) * | 2022-04-28 | 2022-07-12 | 重庆长安汽车股份有限公司 | Service gateway-based SOA service system online debugging method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1703870A (en) * | 2002-10-10 | 2005-11-30 | 思科技术公司 | System and method for distributed diagnostics in a communication system. |
CN101043375A (en) * | 2007-03-15 | 2007-09-26 | 华为技术有限公司 | Distributed system journal collecting method and system |
US20090327458A1 (en) * | 2008-06-27 | 2009-12-31 | Microsoft Corporation | Online predicate checking for distributed systems |
CN103036961A (en) * | 2012-12-07 | 2013-04-10 | 蓝盾信息安全技术股份有限公司 | Distributed collection and storage method of journal |
CN105119752A (en) * | 2015-09-08 | 2015-12-02 | 北京京东尚科信息技术有限公司 | Distributed log acquisition method, device and system |
-
2016
- 2016-01-19 CN CN201610035223.0A patent/CN106980572B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1703870A (en) * | 2002-10-10 | 2005-11-30 | 思科技术公司 | System and method for distributed diagnostics in a communication system. |
CN101043375A (en) * | 2007-03-15 | 2007-09-26 | 华为技术有限公司 | Distributed system journal collecting method and system |
US20090327458A1 (en) * | 2008-06-27 | 2009-12-31 | Microsoft Corporation | Online predicate checking for distributed systems |
CN103036961A (en) * | 2012-12-07 | 2013-04-10 | 蓝盾信息安全技术股份有限公司 | Distributed collection and storage method of journal |
CN105119752A (en) * | 2015-09-08 | 2015-12-02 | 北京京东尚科信息技术有限公司 | Distributed log acquisition method, device and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108365982A (en) * | 2018-02-06 | 2018-08-03 | 北京小米移动软件有限公司 | Unit exception adjustment method, device, equipment and storage medium |
CN109408310A (en) * | 2018-10-19 | 2019-03-01 | 网易(杭州)网络有限公司 | Adjustment method, server and the readable storage medium storing program for executing of server |
CN109408310B (en) * | 2018-10-19 | 2022-02-18 | 网易(杭州)网络有限公司 | Debugging method of server, server and readable storage medium |
CN110018956A (en) * | 2019-01-28 | 2019-07-16 | 阿里巴巴集团控股有限公司 | Using adjustment method and relevant apparatus |
US20210089419A1 (en) * | 2019-09-25 | 2021-03-25 | Alibaba Group Holding Limited | Debugging unit and processor |
US11755441B2 (en) * | 2019-09-25 | 2023-09-12 | Alibaba Group Holding Limited | Debugging unit and processor |
CN112328491A (en) * | 2020-11-18 | 2021-02-05 | Oppo广东移动通信有限公司 | Output method of trace message, electronic device and storage medium |
CN114741313A (en) * | 2022-04-28 | 2022-07-12 | 重庆长安汽车股份有限公司 | Service gateway-based SOA service system online debugging method |
Also Published As
Publication number | Publication date |
---|---|
CN106980572B (en) | 2021-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106980572A (en) | The on-line debugging method and system of distributed system | |
TWI741505B (en) | Topology processing method, device and system | |
CN108763076A (en) | A kind of Software Automatic Testing Method, device, equipment and medium | |
CN107886238A (en) | A kind of business process management system and method based on mass data analysis | |
US20150169288A1 (en) | System operation tracing method on distributed system | |
CN108399114A (en) | A kind of system performance testing method, apparatus and storage medium | |
CN103678110A (en) | Method and device for providing modification related information | |
CN107577545A (en) | A kind of failed disk detection and restorative procedure and device | |
CN112433944A (en) | Service testing method, device, computer equipment and storage medium | |
CN110175165A (en) | Transaction account checking method, device, computer equipment and storage medium | |
CN107193730A (en) | A kind of interface test method of automation | |
CN106850316A (en) | A kind of optical fiber into end graphically managing method and system | |
CN103810094B (en) | Execution method, device and the testing tool of a kind of test cases | |
CN109213919A (en) | A kind of information technology consultative service system Internet-based | |
CN109063433A (en) | Recognition methods, device and the readable storage medium storing program for executing of fictitious users | |
CN104899134A (en) | Automatic domain name registration server testing system and method | |
CN112182233B (en) | Knowledge base for storing equipment fault records, and method and system for assisting in positioning equipment faults by using knowledge base | |
CN109617755A (en) | The acceptance method and device of access system | |
CN113641742A (en) | Data extraction method, device, equipment and storage medium | |
CN108416698A (en) | A method of promoting smart machine data collection rate | |
CN110825609B (en) | Service testing method, device and system | |
CN104678292B (en) | A kind of complex programmable logic device (CPLD) test method and device | |
JP2006059108A (en) | Support system for development test of information system | |
CN104268680A (en) | Case detection process real-time synchronizing system | |
CN103902590A (en) | Method and device for automated testing of terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211116 Address after: Room 507, floor 5, building 3, No. 969, Wenyi West Road, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province Patentee after: Zhejiang tmall Technology Co., Ltd Address before: P.O. Box 847, 4th floor, Grand Cayman capital building, British Cayman Islands Patentee before: Alibaba Group Holdings Limited |
|
TR01 | Transfer of patent right |