CN104092556A - Monitoring method, device and system based on distributed system - Google Patents

Monitoring method, device and system based on distributed system Download PDF

Info

Publication number
CN104092556A
CN104092556A CN201310689969.XA CN201310689969A CN104092556A CN 104092556 A CN104092556 A CN 104092556A CN 201310689969 A CN201310689969 A CN 201310689969A CN 104092556 A CN104092556 A CN 104092556A
Authority
CN
China
Prior art keywords
record
statistics
time
event
report
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310689969.XA
Other languages
Chinese (zh)
Inventor
程章敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Cyber Tianjin Co Ltd
Original Assignee
Tencent Cyber Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Cyber Tianjin Co Ltd filed Critical Tencent Cyber Tianjin Co Ltd
Priority to CN201310689969.XA priority Critical patent/CN104092556A/en
Publication of CN104092556A publication Critical patent/CN104092556A/en
Priority to PCT/CN2015/072372 priority patent/WO2015085963A1/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0686Additional information in the notification, e.g. enhancement of specific meta-data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Abstract

The invention discloses a monitoring method, device and system based on a distributed system, which belongs to the technical field of computers. The method comprises the steps that a report record sent by at least one business terminal is received, wherein the report record is used for describing an event, which occurs on a predetermined statistics interface, of the business terminal, and the report record comprises the identifier of the statistics interface, the occurrence time of the event and at least one dimension which is used for describing the event; the report record which conforms to a configuration rule is selected, wherein the configuration rule comprises the identifier of the specified statistics interface and the specified dimension in the report record; and according to the occurrence time of the event described by the selected report record, statistics is carried out on the number of the report record during a specified period of time. According to the invention, the report record sent by at least one business terminal is received in real time; statistics is carried out on the specified event according to the report record; the problem that the operation condition of the system cannot be acquired in real time in the prior art is solved; and the operation condition of the system can be fast monitored in real time.

Description

Method for supervising based on distributed system, Apparatus and system
Technical field
The present invention relates to distributed system monitoring technique field, particularly a kind of method for supervising, Apparatus and system based on distributed system.
Background technology
In distributed system, because traffic carrying capacity is larger, need to build a lot of platform service terminals ability supporting businesses, in the situation that the quantity of service terminal is many, the ruuning situation of monitoring this distributed system will become very complicated.
The monitoring flow process of traditional distributed system comprises: the process in every service terminal (is service terminal event on statistics interface by the ruuning situation of oneself, event comprises and the interface related a plurality of dimensions of statistics) in the regular daily record that outputs to local service terminal, the script of service terminal can be by the data upload in daily record to unified statistics node, this statistics node can according to the data analysis in each the self-corresponding daily record of every service terminal, each adds up the statistics of interface, each dimension, and then obtains the ruuning situation of system.For the ease of the understanding to this monitoring flow process, cite a plain example below above-mentioned flow process is described, for example: the process in service terminal can will output in daily record the log-in events occurring on business login interface, this log-in events comprises login place, login time, login object and login user etc. dimension, while being " 14:30 logins application space in Shanghai in afternoon September 23 " such as a log-in events, " 14:30 in afternoon September 23 " is wherein the time dimension of this log-in events, " Shanghai " is the place dimension of this log-in events.These daily records finally can be unified to statistics node, and the statistics that statistics node can be correlated with according to these log-in events, such as adding up the quantity of the log-in events of logining in certain place.
In realizing process of the present invention; inventor finds that above-mentioned technology at least exists following problem: owing to being subject to the restriction of the performance of script performance and service terminal; every service terminal is in periodically inputing to daily record by ruuning situation time; it is long that this cycle can arrange conventionally, and the real-time of ruuning situation that therefore gets system is poor.
Summary of the invention
In order to solve the poor problem of real-time of the ruuning situation that gets system in prior art, the embodiment of the present invention provides a kind of method for supervising, Apparatus and system based on distributed system.Described technical scheme is as follows:
First aspect, provides a kind of method for supervising based on distributed system, and described method comprises:
Receive the record that reports of at least one service terminal transmission in real time, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Choose the record that reports that meets configuration rule, described in meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
According to reporting described in choosing the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
Second aspect, provides a kind of method for supervising based on distributed system, is applied in service terminal, and described method comprises:
When predetermined statistics interface is called, be captured in event on described statistics interface;
According to the described event collecting, generate and report record, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Real-time reports record described in the transmission of statistics node, so that described statistics node reports record to choose the record that reports that meets configuration rule described in receiving, described in meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to reporting described in choosing the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
The third aspect, provides a kind of supervising device based on distributed system, and described device comprises:
Receiver module, for receiving the record that reports of at least one service terminal transmission in real time, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Choose module, for choosing the record that reports that meets configuration rule, described in meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
Statistical module, for reporting described in choosing described in basis that module chooses the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
Fourth aspect, provides a kind of supervising device based on distributed system, is applied in service terminal, and described device comprises:
Acquisition module, when called for the statistics interface predetermined, is captured in event on described statistics interface;
Generation module, for the described event collecting according to described acquisition module, generate and report record, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Sending module, for real-time sending and report record to statistics node, so that described statistics node reports record to choose the record that reports that meets configuration rule described in receiving, described in meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to reporting described in choosing the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
The 5th aspect, provides a kind of supervisory control system, and described supervisory control system comprises statistics node and at least one service terminal;
Described statistics node comprises the supervising device based on distributed system as described in the third aspect;
Described service terminal comprises the supervising device based on distributed system as described in fourth aspect.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By receiving the record that reports of at least one service terminal transmission; Choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to time of origin statistics, at the appointed time report the quantity of record in section; Solved the poor problem of real-time of the ruuning situation that gets system in prior art; Because statistics node reports record when allocate event is added up according to service terminal real-time report, can set arbitrarily the length of the fixed time section of statistics, therefore monitoring can be positioned to a second rank, thereby reach the effect of the ruuning situation of supervisory control system that can be real-time.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic diagram of the related implementation environment of the method for supervising based on distributed system that provides in part embodiment of the present invention;
Fig. 2 is the method flow diagram of the method for supervising based on distributed system that provides in one embodiment of the invention;
Fig. 3 is the method flow diagram of the method for supervising based on distributed system that provides in another embodiment of the present invention;
Fig. 4 is the method flow diagram of the method for supervising based on distributed system that provides in another embodiment of the present invention;
Fig. 5 is the schematic diagram of the internal structure relation of the statistics node that provides in part embodiment of the present invention;
Fig. 6 is the schematic diagram of the supervisory control system that provides in one embodiment of the invention;
Fig. 7 is the schematic diagram of the supervisory control system that provides in another embodiment of the present invention;
Fig. 8 is the structural representation of the service terminal that provides in part embodiment of the present invention;
Fig. 9 is the structural representation of the statistics node that provides in part embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail." at least one " of saying in literary composition comprise one, two or more.
Shown in Figure 1, schematic diagram of the related implementation environment of the method for supervising based on distributed system that provides in part embodiment of the present invention is provided for it.This implementation environment can comprise statistics node 120 and at least one service terminal 140, and statistics node 120 can be connected with service terminal 140 by cable network mode or wireless network mode.
The service operation data that statistics node 120 can Real-time Obtaining service terminal reports, and carry out ASSOCIATE STATISTICS according to these data.Statistics node 120 can be a station server, or the server cluster being comprised of some station servers, or a cloud computing service center.
On service terminal 140, operation has business, and the ruuning situation of business can be reported to statistics node 120.Here " service terminal " said can include but not limited to: smart mobile phone, panel computer, PDA(Personal Digital Assistant, palmtop PC), electronic reader, multimedia television and MP4(Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 4) etc.
Shown in Figure 2, method flow diagram of the method for supervising based on distributed system providing in one embodiment of the invention is provided for it, and method for supervising that should be based on distributed system is mainly illustrated in the statistics node 120 in implementation environment shown in Fig. 1 being applied to.Should can comprise by the method for supervising based on distributed system:
201, receive the record that reports of at least one service terminal transmission in real time, report and be recorded as for describing service terminal event on predetermined statistics interface, report record to comprise and add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Here the event said is generally user's business conduct; Statistics interface is generally the interface that can be called by business process for being added up in business, and when these interfaces are called, service terminal can be learnt and call the event of these interfaces time institute; Dimension can be the attribute information relevant to event, such as attributes such as positional information, access way, attaching informations.
202, choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
In actual applications, statistics node is added up the event (hereinafter referred to as allocate event) of which statistics sign of interface and the description of the dimension of appointment in can specifying flexibly when statistics and reporting record.Because each event all can be described by statistics interface and dimension, therefore, when server has been specified statistics interface and dimension when adding up, also add up the allocate event of being described by statistics interface and the dimension of appointment.
203, the time of origin statistics that records described event according to reporting of choosing at the appointed time reports the quantity of record in section.
The time of origin statistics that statistics node records described event according to reporting of choosing at the appointed time reports the quantity of record in section.
The time period that fixed time section arranges according to the stability of monitoring object and business for statistics node, such as when statistics node needs the ruuning situation of real-time monitoring distributed system, can this fixed time section be set to less value, as 1 second; Also such as when statistics node needs the ruuning situation of Distribution Statistics formula system every day, can fixed time section be set to 1 day etc.
In sum, the method for supervising based on distributed system providing in the embodiment of the present invention, by receiving the record that reports of at least one service terminal transmission; Choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to time of origin statistics, at the appointed time report the quantity of record in section; Solved the poor problem of real-time of the ruuning situation that gets system in prior art; Because statistics node reports record when allocate event is added up according to service terminal real-time report, can set arbitrarily the length of the fixed time section of statistics, therefore monitoring can be positioned to a second rank, thereby reach the effect of the ruuning situation of supervisory control system that can be real-time.
Shown in Figure 3, method flow diagram of the method for supervising based on distributed system providing in another embodiment is provided for it, and method for supervising that should be based on distributed system is mainly illustrated in the service terminal in implementation environment 140 shown in Fig. 1 being applied to.Should can comprise by the method for supervising based on distributed system:
301, when predetermined statistics interface is called, be captured in event on statistics interface;
Here the event said is generally user's business conduct, and statistics interface is generally the interface that can be called by business process for being added up in business, and when these interfaces are called, service terminal can be learnt and call the event of these interfaces time institute.
302, according to the event collecting, generate and report record, report and be recorded as for describing service terminal event on predetermined statistics interface, report record to comprise and add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Dimension can be the attribute information relevant to event, such as attributes such as positional information, access way, attaching informations.
303, real-time to statistics node, send this and report record.
Service terminal, after generating according to the event that collects and reporting record, real-time send this to statistics node and reports record.
In sum, the method for supervising based on distributed system providing in the embodiment of the present invention, by receiving the record that reports of at least one service terminal transmission, report be recorded as that service terminal sends in real time for describing service terminal event on predetermined statistics interface, report record to comprise to add up the sign of interface, the time of origin of event and for describing the dimension of event; Choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to time of origin statistics, at the appointed time report the quantity of record in section; Solved the poor problem of real-time of the ruuning situation that gets system in prior art; Because statistics node reports record when allocate event is added up according to service terminal real-time report, can set arbitrarily the length of the fixed time section of statistics, therefore monitoring can be positioned to a second rank, thereby reach the effect of the ruuning situation of supervisory control system that can be real-time.
Shown in Figure 4, method flow diagram of the method for supervising based on distributed system providing in another embodiment is provided for it, and method for supervising that should be based on distributed system is mainly illustrated in implementation environment shown in Fig. 1 being applied to.Should can comprise by the method for supervising based on distributed system:
401, service terminal, when predetermined statistics interface is called, is captured in event on statistics interface;
Here the event said is generally user's business conduct; Statistics interface is generally the interface that can be called by business process for being added up in business, when these interfaces are called, service terminal can be learnt and call the event of these interfaces time institute, by way of example, the interface of business can comprise the login interface of business, the access interface of business etc., when business is logined, need to call login interface, when business conducts interviews, need to call access interface.
402, service terminal generates and reports record according to the event collecting, report and be recorded as for describing service terminal event on predetermined statistics interface, report record to comprise and add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Here reporting of saying is recorded as for describing service terminal event on predetermined statistics interface, reports record to comprise and adds up the sign of interface, the time of origin of event and for describing at least one dimension of event; Dimension can be the attribute information relevant to event, such as attributes such as positional information, access way, attaching informations.
Report and in record, conventionally comprise following several field: the IP address of service terminal, port numbers, interface identifier and the timestamp of service terminal, other field is added as required according to the concrete condition of each interface, form is generally key=value, be that field is certain data message, different dimensions can separate by &, by way of example, one reports the form of record can be as follows:
buID=XX&sysID=XX&intfID=XX&set=XX&module=XX&city=XX&dstIpPort=XX&retType=XX&errCode=XX&timeStamp=XX&&TableName=XX&holdErrCode=XX&latency=XX
Obviously, in actual applications, reporting record can also be other form, but the form that reports record that service terminal sends must consult with statistics node, like this statistics node receive that service terminal sends report record after, just can parse the information that reports record to carry.
Event is normally described by a plurality of dimensions, situation when event is carried out some business for describing service terminal, such as for " on July 15th, 2013 8 a.m. in Shenzhen, by wireless network mode, logined the chat application of appointment " this event, " 8 a.m. on July 15th, 2013 " is the time dimension of this event, " Shenzhen " is the address dimension of this event, " wireless network mode " is the access way dimension of this event, the login here can regard as the definite business conduct of a statistics interface of chat application, the record that reports corresponding to this event can be expressed as the sign of < login, on July 15th, 2013 8 a.m., Shenzhen, wireless network mode >.
In actual applications, statistics node can preset the monitored interface of what a service needed (adding up interface), generally, a business can comprise several and carry out invoked interface in business, when service terminal, determining these statistics interfaces when moving is called, be business know these statistics interfaces carried out some event, now, service terminal sends to statistics node the record that reports that calls these statistics interface institute events for describing this service terminal, corresponding, statistics node can receive these and report record.
In a kind of possible implementation, report in record and can also preserve other information, such as the sign of this service terminal, be specifically as follows the IP address of this service terminal or port numbers etc.
403, what service terminal was real-time sends this and reports record to statistics node;
Also, as long as service terminal has generated and reports record, will will report immediately record to send to statistics node, like this, statistics node be understood and real-time monitored this and report the corresponding event that records.
404, statistics node receives the record that reports of at least one service terminal transmission in real time;
Known according to the characteristic of distributed system, when traffic carrying capacity is larger or when many, the quantity of the service terminal in distributed system also can be many, therefore add up node and can receive the record that reports that a lot of service terminals send.Obviously, in actual applications, if only needing the situation of the business to moving on some service terminals monitors, can only receive the record that reports of this service terminal, or can reject the record that reports that other service terminals except this service terminal send, or the record that reports only this service terminal being sent is added up in statistics.
405, statistics node selection meets the record that reports of configuration rule, meets reporting of configuration rule and is recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
Statistics node selection meets the record that reports of configuration rule.
In actual applications, statistics node to which statistics sign of interface and the dimension of appointment is added up in can specifying flexibly when statistics and reporting record.Because event can be described by statistics interface and dimension, therefore when server has been specified statistics interface and dimension during in statistics, also add up the allocate event corresponding with the statistics interface of appointment and dimension.
By way of example, existence reports record 1, report record 2 and report record 3, reporting record 1 interface comprising is logging program interface, the time dimension comprising is the field that " November 12 " and address dimension are " U.S. ", reporting record 2 interfaces that comprise is addressing space interface, the time dimension comprising is that " November 13 " and address dimension are " China ", reporting record 3 interfaces that comprise is logging program interface, the time dimension comprising is that " November 16 " and address dimension are " U.S. ", the concrete field information that record comprises that reports can see table 1:
? Business interface Time of origin There is address
Report record 1 Logging program interface November 12 The U.S.
Report record 2 Addressing space interface November 13 China
Report record 3 Logging program interface November 16 The U.S.
Table 1
Such as, if the configuration rule of appointment can be that logging program interface, address dimension are " U.S. " for interface, also choose the allocate event of " at U.S.'s logging program ", select report record be report record 1 and report record 3.Also such as, if the configuration rule of appointment is: interface is that addressing space interface, address dimension are " China ", also chooses the allocate event of " at Chinese addressing space ", select report record be report record 2.
For example, the statistics interface existing when a business comprises statistics interface 1, statistics interface 2 and statistics interface 3, when dimension comprises time dimension and address dimension, can designated statistics interface be statistics interface 2, fixed time dimension is certain time, and assigned address dimension is for specifying certain address.
406, the time of origin that comprises of statistics node determination at the appointed time reports record in section;
The time period that fixed time section arranges according to the stability of monitoring object and business for statistics node, such as when statistics node needs the ruuning situation of real-time monitoring distributed system, can this fixed time section be set to smaller value, as 1 second; Also such as when statistics node needs the ruuning situation of Distribution Statistics formula system every day, can fixed time section be set to 1 day etc.
Therefore owing to reporting the time of origin that conventionally includes described event in record, add up node and can determine comprised time of origin and at the appointed time report record in section.
By way of example, 6 of existence report record to be respectively: report record 1, report record 2, report record 3, report record 4, report record 5 and report record 6, these report the field information that record comprises can see table 2:
? Service terminal sign Business interface Time of origin Scene
Report record 1 Service terminal 1 Logging program interface November 12 Shenzhen
Report record 2 Service terminal 2 Addressing space interface October 21 Guangzhou
Report record 3 Service terminal 1 Addressing space interface November 25 Shenzhen
Report record 4 Service terminal 3 Logging program interface September 15 Beijing
Report record 5 Service terminal 2 Addressing space interface October 21 Guangzhou
Report record 6 Service terminal 4 Addressing space interface November 12 Guangzhou
Table 2
If fixed time section be October 1 to November 15, add up reporting that node determines according to the data in above-mentioned table 2 and be recorded as: report record 1, report record 2, report record 5 and report record 6.
407, statistics node is added up the quantity that reports record of determining, and quantity is defined as meeting in fixed time section to the quantity that reports record of configuration rule;
That is to say, the quantity that reports record that statistics node statistics is determined, can be defined as this quantity the quantity of allocate event in fixed time section, and this allocate event is by configuration rule definite event.
Still ginseng is shown in Table 2, the configuration rule arranging is: business interface is that " addressing space interface ", generation address are " Guangzhou ", the definite allocate event of this configuration rule is " at Guangzhou addressing space interface ", when fixed time section is that October 1 was to November 15, add up that node selection goes out report to be recorded as reports record 2 and reports record 6, October 1 to November 15, the quantity of the allocate event of statistics is 2.
408, statistics node, according to the indicated time of fixed time section, continues to be presented at the quantity that reports record counting in each continuous fixed time section successively;
In actual applications, for the quantity that observes the allocate event counting in different time sections that can be real-time, statistics node can be chosen each continuous fixed time section, each fixed time Duan Jun is carried out to the statistics of said process, then indicated time of section at the appointed time, continue to show the corresponding statistics of this fixed time section.
By way of example, can fixed time section be set to 1 second, now, can be the quantity (being an every 1 second corresponding statistics) of every 1 second statistics allocate event in continuous n 1 second, and the statistics per second counting is continued to show 1 second.Also, show the quantity of allocate event in the 1st second that counts within the time period of the 1st second, show the quantity of the allocate event in the 2nd second that counts within the time period of the 2nd second, the rest may be inferred.By way of example, the statistics of continuous 4 seconds that statistics node counts is respectively N1, N2, N3 and N4, if start timing from 8:00:00, at 8:00:00 in 8:00:01, statistics node continue to show N1, at 8:00:01 in 8:00:02, statistics node continues to show N1, at 8:00:02, in 8:00:03, adds up node and continues to show N1, at 8:00:03, in 8:00:04, statistics node continues to show N4.
Here it should be noted that, in actual applications, the statistics that current demonstration counts is normally to showing what the statistics that reports record to carry out before the moment got current, therefore, on stricti jurise, say, the statistics that the moment of demonstration obtains relatively lags behind.
In actual applications, fixed time section can be arranged to different values, such as being set to 1 second, 5 groupings, 5 hours, 1 day, 1 week or 1 month etc., fixed time section for every kind of length, all can add up, to the work of the statistics of the time period of different length, can walk abreast in other words, also be, statistics process in node is the statistical work of 1 second for adding up fixed time section, another process is the statistical work of 5 minutes for adding up fixed time section, another process is the statistical work of 5 hours for adding up fixed time section, the statistical work of three processes does not interfere with each other.
409, whether the quantity that reports record that statistics node detection statistics goes out meets warning conditions, warning conditions for reporting the absolute value of the difference between the quantity of record to be greater than predetermined threshold within two adjacent time periods, and each time period comprises at least one continuous fixed time section;
In actual applications, statistics node can also be monitored the statistics counting, and whether monitoring statistics meets warning conditions, when statistics meets warning conditions, warns prompting.
A kind of possible in the situation that, warning conditions can be defined as reporting the absolute value of the difference between the quantity of record to be greater than predetermined threshold within two adjacent time periods, when also the statistics difference of two even adjacent time periods is larger, conventionally show to occur extremely, now can carry out alarm., also by way of example, the quantity that reports record counting within two adjacent time periods is respectively 500 and 512, and predetermined threshold is 200, | and 500-512|=12, this absolute value much smaller than 200, is therefore thought and is not occurred extremely, do not need alarm; Again by way of example, the quantity that reports record counting within two adjacent time periods is respectively 500 and 853, and predetermined threshold is 200, | and 500-853|=353, this absolute value is greater than 200, therefore thinks and exists extremely, needs alarm.
410, if being the quantity that reports record counting, testing result meets warning conditions, statistics node shows information warning.
In actual applications, can on the display end of statistics node, show information warning, or send information warning in administrative staff's communication equipment or signal procedure.
Hence one can see that, owing to can continuous fixed time section being added up and event is monitored by the corresponding record that reports, therefore can real-time monitored to the ruuning situation of whole system, what especially at the appointed time section arranged is very little, during such as 1 second, can, so that the time delay of monitoring alarm shortens to 1 second, greatly improve monitoring performance.
In sum, the method for supervising based on distributed system providing in the embodiment of the present invention, by receiving the record that reports of at least one service terminal transmission, report be recorded as that service terminal sends in real time for describing service terminal event on predetermined statistics interface, report record to comprise to add up the sign of interface, the time of origin of event and for describing the dimension of event; Choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to time of origin statistics, at the appointed time report the quantity of record in section; Solved the poor problem of real-time of the ruuning situation that gets system in prior art; Because statistics node reports record when allocate event is added up according to service terminal real-time report, can set arbitrarily the length of the fixed time section of statistics, therefore monitoring can be positioned to a second rank, thereby reach the effect of the ruuning situation of supervisory control system that can be real-time.
It should be noted that, above-mentioned steps 401 can realize separately to step 403 method for supervising based on distributed system that becomes service terminal side, and above-mentioned steps 404 to step 410 can realize separately the method for supervising based on distributed system that becomes statistics node side.
In a kind of possible implementation, shown in Figure 5, schematic diagram of the internal structure relation of the statistics node providing in part embodiment of the present invention is provided for it, in distributed type assemblies, comprise at least one service terminal 140, statistics node 120 can comprise: record collector unit 52, statistic unit 54, stored data base 56, Alarm Unit 58 and display unit 510.
Record collector unit 52 for collecting the record that reports of service terminal 140 transmissions; Statistic unit 54 can be added up recording the record that reports of collecting in collector unit 52 according to the configuration rule of setting and statistical condition, obtains statistics, and statistics is stored in stored data base 56; Alarm Unit 58 can be monitored the statistics in stored data base 56, when monitoring statistics and meet warning conditions, notifies display unit 510 to show information warnings.
Here it should be noted that, because statistics node can be a station server or the service cluster being combined by multiple servers, therefore above-mentionedly record collector unit 52, statistic unit 54, stored data base 56, Alarm Unit 58 and display unit 510 and can concentrate in a station server, also can be distributed in multiple servers.
Also it should be added that, due in distributed system, in the larger situation of traffic carrying capacity, need to build more service terminal, the record that reports that statistics node receives so also can increase, therefore add up statistics and the monitoring performance of node and support linear expansion,, along with the increase of distributed system scale, can add up node to reach the object that improves statistics and monitoring performance by increase.
Be below device embodiment of the present invention, for the details of detailed description not wherein, can be with reference to the embodiment of the method for above-mentioned correspondence.
Shown in Figure 6, schematic diagram of the supervisory control system providing in one embodiment of the invention is provided for it, and this supervisory control system is mainly illustrated in implementation environment shown in Fig. 1 being applied to.This supervisory control system can comprise statistics node 620 at least one service terminal 640.
Service terminal 640 comprises the supervising device based on distributed system, should can comprise by the supervising device based on distributed system: acquisition module 642, generation module 644 and sending module 646.
Acquisition module 642, in the time of can being called for the statistics interface predetermined, is captured in event on statistics interface;
Generation module 644, can generate and report record for the event collecting according to acquisition module 642, report and be recorded as for describing service terminal event on predetermined statistics interface, report record to comprise and add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Sending module 646, can be for real-time sending and report record to statistics node, so that statistics node chooses according to the record that reports receiving the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; The time of origin statistics that records described event according to reporting of choosing at the appointed time reports the quantity of record in section.
Statistics node 620 can comprise the supervising device based on distributed system, should can comprise receiver module 622, choose module 624 and statistical module 626 by the supervising device based on distributed system.
Receiver module 622, can be for receiving the record that reports that the sending module 646 of at least one service terminal 640 sends in real time, report and be recorded as for describing service terminal event on predetermined statistics interface, report record to comprise and add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Choose module 624, can be for choosing the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
Statistical module 626, can at the appointed time report the quantity of record in section for the time of origin statistics that records described event according to reporting of choosing that module 624 chooses.
In sum, the supervisory control system providing in the embodiment of the present invention, by receiving the record that reports of at least one service terminal transmission, report be recorded as that service terminal sends in real time for describing service terminal event on predetermined statistics interface, report record to comprise to add up the sign of interface, the time of origin of event and for describing the dimension of event; Choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to time of origin statistics, at the appointed time report the quantity of record in section; Solved the poor problem of real-time of the ruuning situation that gets system in prior art; Because statistics node reports record when allocate event is added up according to service terminal real-time report, can set arbitrarily the length of the fixed time section of statistics, therefore monitoring can be positioned to a second rank, thereby reach the effect of the ruuning situation of supervisory control system that can be real-time.
Shown in Figure 7, schematic diagram of the supervisory control system providing in another embodiment of the present invention is provided for it, and this supervisory control system is mainly illustrated in implementation environment shown in Fig. 1 being applied to.This supervisory control system can comprise statistics node 720 at least one service terminal 740.
This supervisory control system can comprise statistics node 720 and at least one service terminal 740.
Service terminal 740 comprises the supervising device based on distributed system, should can comprise by the supervising device based on distributed system: acquisition module 742, generation module 744 and sending module 746.
Acquisition module 742, in the time of can being called for the statistics interface predetermined, is captured in event on statistics interface;
Generation module 744, can generate and report record for the event collecting according to acquisition module 742, report and be recorded as for describing service terminal event on predetermined statistics interface, report record to comprise and add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Sending module 746, can be for real-time sending and report record to statistics node 720, so that statistics node chooses according to the record that reports receiving the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; The time of origin statistics that records described event according to reporting of choosing at the appointed time reports the quantity of record in section.
Statistics node 720 can comprise the supervising device based on distributed system, should can comprise receiver module 721, choose module 722 and statistical module 723 by the supervising device based on distributed system.
Receiver module 721, can be for receiving the record that reports that the sending module 746 of at least one service terminal 740 sends in real time, report and be recorded as for describing service terminal 740 event on predetermined statistics interface, report record to comprise and add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Choose module 722, can be for choosing the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
Statistical module 723, can at the appointed time report the quantity of record in section for the time of origin statistics that records described event according to reporting of choosing that module 722 chooses.
In the possible implementation of the first in the present embodiment, statistical module 723 can comprise: determine submodule 723a and statistics submodule 723b.
Determine submodule 723a, for determining that the time of origin comprise at the appointed time reports record in section;
Statistics submodule 723b, for adding up the quantity that reports record of determining that submodule 723a determines, is defined as quantity to meet in fixed time section the quantity that reports record of configuration rule.
In the possible implementation of the second in the present embodiment, the supervising device based on distributed system that is arranged in statistics node 720 can also comprise: the first display module 724.
The first display module 724, for according to the indicated time of fixed time section, continues to be presented at the quantity that reports record counting in each continuous fixed time section successively.
In the third possible implementation in the present embodiment, the supervising device based on distributed system that is arranged in statistics node 720 can also comprise: detection module 725 and the second display module 726.
Detection module 725, for detection of the quantity that reports record counting, whether meet warning conditions, warning conditions for reporting the absolute value of the difference between the quantity of record to be greater than predetermined threshold within two adjacent time periods, and each time period comprises at least one continuous fixed time section;
The second display module 726, is the quantity that reports record that counts while meeting warning conditions for the testing result at detection module 725, shows information warning.
In sum, the supervisory control system providing in the embodiment of the present invention, by receiving the record that reports of at least one service terminal transmission, report be recorded as that service terminal sends in real time for describing service terminal event on predetermined statistics interface, report record to comprise to add up the sign of interface, the time of origin of event and for describing the dimension of event; Choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to time of origin statistics, at the appointed time report the quantity of record in section; Solved the poor problem of real-time of the ruuning situation that gets system in prior art; Because statistics node reports record when allocate event is added up according to service terminal real-time report, can set arbitrarily the length of the fixed time section of statistics, therefore monitoring can be positioned to a second rank, thereby reach the effect of the ruuning situation of supervisory control system that can be real-time.
It should be noted that: the supervising device based on distributed system providing in above-described embodiment is when monitoring the business of distributed system, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to add up node and service terminal is divided into different functional modules, to complete all or part of function described above.In addition, the supervising device based on distributed system that above-described embodiment provides belongs to same design with the method for supervising embodiment based on distributed system, and its specific implementation process refers to embodiment of the method, repeats no more here.
Shown in Figure 8, block diagram of the service terminal providing in part embodiment of the present invention is provided for it.The method for supervising based on distributed system that this service terminal 800 provides for implementing above-described embodiment.Service terminal 800 in the present invention can comprise one or more following parts: for computer program instruction to complete the processor of various flow processs and method, for information and the random incoming memory of stored program instruction (RAM) and read-only memory (ROM), for storing the memory of data and information, I/O equipment, interface, antenna etc.Specifically:
Service terminal 800 can comprise RF(Radio Frequency, radio frequency) parts such as circuit 810, memory 820, input unit 830, display unit 840, transducer 850, voicefrequency circuit 860, WiFi (wireless fidelity, Wireless Fidelity) module 870, processor 880, power supply 882, camera 890.It will be understood by those skilled in the art that the service terminal structure shown in Fig. 8 does not form the restriction to service terminal, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.
Below in conjunction with Fig. 8, each component parts of service terminal 800 is carried out to concrete introduction:
RF circuit 810 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, especially, after the downlink information of base station is received, process to processor 880; In addition, the up data of design are sent to base station.Conventionally, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupler, LNA(Low Noise Amplifier, low noise amplifier), duplexer etc.In addition, RF circuit 810 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Memory 820 can be used for storing software program and module, and processor 880 is stored in software program and the module of memory 820 by operation, thereby carries out various function application and the data processing of service terminal 800.Memory 820 can mainly comprise storage program district and storage data field, wherein, and the application program (such as sound-playing function, image player function etc.) that storage program district can storage operation system, at least one function is required etc.; The data (such as voice data, phone directory etc.) that create according to the use of service terminal 800 etc. can be stored in storage data field.In addition, memory 820 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.
Input unit 830 can be used for receiving numeral or the character information of input, and generation arranges with the user of service terminal 800 and function is controlled relevant key signals input.Particularly, input unit 830 can comprise contact panel 831 and other input equipments 832.Contact panel 831, also referred to as touch-screen, can collect user or near touch operation (using any applicable object or near the operations of annex on contact panel 831 or contact panel 831 such as finger, stylus such as user) thereon, and drive corresponding jockey according to predefined formula.Optionally, contact panel 831 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 880, and the order that energy receiving processor 880 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize contact panel 831.Except contact panel 831, input unit 830 can also comprise other input equipments 832.Particularly, other input equipments 832 can include but not limited to one or more in physical keyboard, function key (controlling button, switch key etc. such as volume), trace ball, mouse, action bars etc.
Display unit 840 can be used for showing the information inputted by user or the various menus of the information that offers user and service terminal 800.Display unit 840 can comprise display floater 841, optionally, can adopt the forms such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to configure display floater 841.Further, contact panel 831 can cover display floater 841, when contact panel 831 detect thereon or near touch operation after, send processor 880 to determine the type of touch event, corresponding vision output is provided according to the type of touch event with preprocessor 880 on display floater 841.Although in Fig. 8, contact panel 831 and display floater 841 be as two independently parts realize input and the input function of service terminal 800, but in certain embodiments, can contact panel 831 and display floater 841 is integrated and realize the input and output function of service terminal 800.
Service terminal 800 also can comprise at least one transducer 850, such as gyro sensor, magnetic induction sensor, optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can regulate according to the light and shade of ambient light the brightness of display floater 841, proximity transducer can, when service terminal 800 moves in one's ear, cut out display floater 841 and/or backlight.A kind of as motion sensor; acceleration transducer can detect the size of the acceleration that (is generally three axles) in all directions; when static, can detect size and the direction of gravity, can be used for application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, knock) of identification services terminal attitude etc.; As for service terminal 800 other transducers such as configurable barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 860, loud speaker 861, microphone 862 can provide the audio interface between user and service terminal 800.Voicefrequency circuit 860 can be transferred to loud speaker 861 by the signal of telecommunication after the voice data conversion receiving, and is converted to voice signal exports by loud speaker 861; On the other hand, microphone 862 is converted to the signal of telecommunication by the voice signal of collection, after being received by voicefrequency circuit 860, be converted to voice data, after again voice data output processor 880 being processed, through RF circuit 810, to send to such as another terminal, or export voice data to memory 820 to further process.
WiFi belongs to short range wireless transmission technology, service terminal 800 by WiFi module 870 can help that user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 8 shows WiFi module 870, be understandable that, it does not belong to must forming of service terminal 800, completely can be as required in the scope that does not change disclosed essence and omit.
Processor 880 is control centres of service terminal 800, utilize the various piece of various interface and the whole service terminal of connection, by moving or carry out software program and/or the module being stored in memory 820, and call the data that are stored in memory 820, carry out various functions and the deal with data of service terminal 800, thereby service terminal is carried out to integral monitoring.Optionally, processor 880 can comprise one or more processing units; Preferably, processor 880 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 880.
Service terminal 800 also comprises that the power supply 882(powering to all parts is such as battery), preferably, power supply can be connected with processor 882 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Camera 890 is generally comprised of camera lens, imageing sensor, interface, digital signal processor, CPU, display screen etc.Wherein, camera lens is fixed on the top of imageing sensor, can change focusing by manual adjustments camera lens; Imageing sensor is equivalent to traditional camera " film ", is the heart of camera collection image; Interface, for utilizing winding displacement, board to board connector, spring connected mode to be connected with service terminal mainboard camera, sends to memory 820 by the image of collection; Digital signal processor is processed the image gathering by mathematical operation, and the analog image of collection is converted to digital picture and sends to memory 820 by interface.
Although not shown, service terminal 800 can also comprise bluetooth module etc., does not repeat them here.
Service terminal 800, except comprising one or more processor 880, also includes memory, and one or more program, and one or more program is stored in memory, and is configured to be carried out by one or more processor.Above-mentioned one or more program has following function:
When predetermined statistics interface is called, be captured in event on statistics interface;
According to the event that collects, generate and report record, report and be recorded as for describing service terminal event on predetermined statistics interface, report record to comprise to add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Real-time sends and reports record to statistics node, so that statistics node chooses according to the record that reports receiving the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; The time of origin statistics that records described event according to reporting of choosing at the appointed time reports the quantity of record in section.
Shown in Figure 9, block diagram of the statistics node providing in part embodiment of the present invention is provided for it.The method for supervising based on distributed system that this statistics node 900 provides for implementing above-described embodiment.Statistics node 900 comprises CPU (CPU) 901, comprises the system storage 904 of random-access memory (ram) 902 and read-only memory (ROM) 903, and the system bus 905 of connected system memory 904 and CPU 901.Statistics node 900 also comprises the basic input/output (I/O system) 906 of transmission information between each device helping in computer, and for the mass-memory unit 907 of storage operation system 913, application program 914 and other program modules 915.
Basic input/output 906 includes for showing the display 908 of information and for the input equipment such as mouse, keyboard 909 of user's input information.Wherein display 908 and input equipment 909 are all connected to CPU 901 by being connected to the i/o controller 910 of system bus 905.Basic input/output 906 can also comprise that IOC 910 is for receiving and process the input from a plurality of other equipment such as keyboard, mouse or electronic touch pens.Similarly, IOC 910 also provides the output equipment that outputs to display screen, printer or other types.
Mass-memory unit 907 is connected to CPU 901 by being connected to the bulk memory controller (not shown) of system bus 905.Mass-memory unit 907 and the computer-readable medium being associated thereof provide non-volatile memories for adding up node 900.That is to say, mass-memory unit 907 can comprise the computer-readable medium (not shown) such as hard disk or CD-ROM drive.
Without loss of generality, computer-readable medium can comprise computer-readable storage medium and communication media.Computer-readable storage medium comprises volatibility and non-volatile, the removable and irremovable medium for any method of information such as computer-readable instruction, data structure, program module or other data of storage or technology realization.Computer-readable storage medium comprises RAM, ROM, EPROM, EEPROM, flash memory or its technology of other solid-state storage, CD-ROM, DVD or other optical storage, cassette, tape, disk storage or other magnetic storage apparatus.Certainly, the known computer-readable storage medium of those skilled in the art is not limited to above-mentioned several.Above-mentioned system storage 904 and mass-memory unit 907 can be referred to as memory.
According to various embodiments of the present invention, statistics node 900 can also move by the remote computer being connected on network such as networks such as internets.Also add up node 900 and can be connected to network 912 by the network interface unit 911 being connected on system bus 905, in other words, also can be connected to by network interface unit 911 network or the remote computer system (not shown) of other types.
Memory also comprises one or more than one program, and more than one or one program is stored in memory, and is configured to by one or above CPU 901 execution.Above-mentioned one or more CPU 901 has following function:
Receive the record that reports of at least one service terminal transmission, report be recorded as that service terminal sends in real time for describing service terminal event on predetermined statistics interface, report record to comprise to add up the sign of interface, the time of origin of event and for describing at least one dimension of event;
Choose the record that reports that meets configuration rule, meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
The time of origin statistics that records described event according to reporting of choosing at the appointed time reports the quantity of record in section.
In the possible implementation of the first in the present embodiment, above-mentioned one or more CPU 901, when the time of origin statistics that records described event according to reporting of choosing at the appointed time reports the quantity of record in section, comprising:
Determine that the time of origin comprise at the appointed time reports record in section;
Add up the quantity that reports record of determining, quantity is defined as meeting in fixed time section to the quantity that reports record of configuration rule.
In the possible implementation of the second in the present embodiment, above-mentioned one or more CPU 901 also has following function:
According to the indicated time of fixed time section, continue to be successively presented at the quantity that reports record counting in each continuous fixed time section.
In the third possible implementation in the present embodiment, above-mentioned one or more CPU 901 also has following function:
Whether the quantity that reports record that detection statistics goes out meets warning conditions, and warning conditions for reporting the absolute value of the difference between the quantity of record to be greater than predetermined threshold within two adjacent time periods, and each time period comprises at least one continuous fixed time section;
If testing result is the quantity that reports record counting, meet warning conditions, show information warning.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (11)

1. the method for supervising based on distributed system, is characterized in that, described method comprises:
Receive the record that reports of at least one service terminal transmission in real time, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Choose the record that reports that meets configuration rule, described in meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment;
According to reporting described in choosing the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
2. method according to claim 1, is characterized in that, described basis choose described in report the time of origin statistics that records described event to report the quantity of record described at the appointed time in section, comprising:
Determine the described time of origin comprise in described fixed time section described in report record;
Statistics determine described in report the quantity of record, by described quantity be defined as meeting in described fixed time section described configuration rule described in report the quantity of record.
3. method according to claim 1, is characterized in that, reports after the time of origin statistics that records described event reports the quantity of record described at the appointed time in section described in described basis, also comprises:
According to the described indicated time of fixed time section, continue to be successively presented in each continuous fixed time section, count described in report the quantity of record.
4. according to arbitrary described method in claims 1 to 3, it is characterized in that, described in described basis, report after the time of origin statistics that records described event reports the quantity of record described at the appointed time in section, also comprise:
Detection statistics go out described in report the quantity of record whether to meet warning conditions, described warning conditions is for reporting described within two adjacent time periods the absolute value of the difference between the quantity of record to be greater than predetermined threshold, and each time period comprises fixed time section described in continuous at least one;
If testing result be count described in report the quantity of record to meet described warning conditions, show information warning.
5. the method for supervising based on distributed system, is applied to, in service terminal, it is characterized in that, described method comprises:
When predetermined statistics interface is called, be captured in event on described statistics interface;
According to the described event collecting, generate and report record, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Real-time reports record described in the transmission of statistics node, so that described statistics node reports record to choose the record that reports that meets configuration rule described in receiving, described in meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to reporting described in choosing the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
6. the supervising device based on distributed system, is characterized in that, described device comprises:
Receiver module, for receiving the record that reports of at least one service terminal transmission in real time, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Choose module, for choosing the record that reports that meets configuration rule, described in meet reporting of configuration rule and be recorded as the sign of statistics interface and the dimension of appointment that include appointment and report record;
Statistical module, for reporting described in choosing described in basis that module chooses the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
7. device according to claim 6, is characterized in that, described statistical module, comprising:
Determine submodule, for determine the described time of origin comprise in described fixed time section described in report record;
Statistics submodule, for reporting the quantity of record described in adding up that described definite submodule determines, by described quantity be defined as meeting in described fixed time section described configuration rule described in report the quantity of record.
8. device according to claim 6, is characterized in that, described device also comprises:
The first display module, for according to the described indicated time of fixed time section, continue to be successively presented in each continuous fixed time section, count described in report the quantity of record.
9. according to arbitrary described device in claim 6 to 8, it is characterized in that, described device also comprises:
Detection module, described in counting, report the quantity of record whether to meet warning conditions, described warning conditions is for reporting described within two adjacent time periods the absolute value of the difference between the quantity of record to be greater than predetermined threshold, and each time period comprises fixed time section described in continuous at least one;
The second display module, for the testing result at described detection module be count described in while reporting the quantity of record to meet described warning conditions, show information warning.
10. the supervising device based on distributed system, is applied to, in service terminal, it is characterized in that, described device comprises:
Acquisition module, when called for the statistics interface predetermined, is captured in event on described statistics interface;
Generation module, for the described event collecting according to described acquisition module, generate and report record, described reporting is recorded as for describing the event on predetermined statistics interface of described service terminal, described in report record to comprise the sign of described statistics interface, the time of origin of described event and for describing at least one dimension of described event;
Sending module, for real-time sending and report record to statistics node, so that described statistics node reports record to choose the record that reports that meets configuration rule described in receiving, described in meet reporting of configuration rule and be recorded as the record that reports that includes the sign of statistics interface of appointment and the dimension of appointment; According to reporting described in choosing the time of origin statistics that records described event to report the quantity of record described at the appointed time in section.
11. 1 kinds of supervisory control systems, is characterized in that, described supervisory control system comprises statistics node and at least one service terminal;
Described statistics node comprises as the supervising device based on distributed system as described in arbitrary in claim 6 to 9;
Described service terminal comprises the supervising device based on distributed system as claimed in claim 10.
CN201310689969.XA 2013-12-13 2013-12-13 Monitoring method, device and system based on distributed system Pending CN104092556A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310689969.XA CN104092556A (en) 2013-12-13 2013-12-13 Monitoring method, device and system based on distributed system
PCT/CN2015/072372 WO2015085963A1 (en) 2013-12-13 2015-02-06 Distributed system-based monitoring method, device, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310689969.XA CN104092556A (en) 2013-12-13 2013-12-13 Monitoring method, device and system based on distributed system

Publications (1)

Publication Number Publication Date
CN104092556A true CN104092556A (en) 2014-10-08

Family

ID=51640238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310689969.XA Pending CN104092556A (en) 2013-12-13 2013-12-13 Monitoring method, device and system based on distributed system

Country Status (2)

Country Link
CN (1) CN104092556A (en)
WO (1) WO2015085963A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085963A1 (en) * 2013-12-13 2015-06-18 腾讯科技(深圳)有限公司 Distributed system-based monitoring method, device, and system
CN106411547A (en) * 2015-07-28 2017-02-15 北京京东尚科信息技术有限公司 Redis call monitoring method and device
CN107025624A (en) * 2017-02-28 2017-08-08 广州地理研究所 Public transport barcode scanning payment data processing method, device and system
CN107277146A (en) * 2017-06-26 2017-10-20 郑州云海信息技术有限公司 A kind of distributed storage service traffics model generating method and system
CN107920360A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 The method, apparatus and system of a kind of addressing network problems
CN110189039A (en) * 2019-06-04 2019-08-30 湖南智慧畅行交通科技有限公司 Based on distributed charging pile Event processing engine
CN114493378A (en) * 2022-04-06 2022-05-13 树根互联股份有限公司 Index acquisition method and device of industrial equipment and computer equipment

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112436979A (en) * 2020-11-04 2021-03-02 深圳供电局有限公司 Cloud network traffic acquisition method and system
CN113760641A (en) * 2021-01-08 2021-12-07 北京沃东天骏信息技术有限公司 Service monitoring method, device, computer system and computer readable storage medium
CN113590434B (en) * 2021-06-20 2023-12-22 济南浪潮数据技术有限公司 Cluster alarm method, system, equipment and medium
CN113609181B (en) * 2021-07-05 2023-11-17 广州中大中鸣科技有限公司 Intelligent garbage station monitoring method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080168044A1 (en) * 2007-01-09 2008-07-10 Morgan Stanley System and method for providing performance statistics for application components
CN102395103A (en) * 2011-10-27 2012-03-28 深圳市赛格导航科技股份有限公司 Interactive definite-time and directional message publishing system and method
CN102880676A (en) * 2012-09-10 2013-01-16 新浪网技术(中国)有限公司 Statistical method for user behavior data and user behavior data statistical system
CN103297477A (en) * 2012-03-02 2013-09-11 腾讯科技(深圳)有限公司 Data collecting and reporting system, data processing method and proxy server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092556A (en) * 2013-12-13 2014-10-08 腾讯数码(天津)有限公司 Monitoring method, device and system based on distributed system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080168044A1 (en) * 2007-01-09 2008-07-10 Morgan Stanley System and method for providing performance statistics for application components
CN102395103A (en) * 2011-10-27 2012-03-28 深圳市赛格导航科技股份有限公司 Interactive definite-time and directional message publishing system and method
CN103297477A (en) * 2012-03-02 2013-09-11 腾讯科技(深圳)有限公司 Data collecting and reporting system, data processing method and proxy server
CN102880676A (en) * 2012-09-10 2013-01-16 新浪网技术(中国)有限公司 Statistical method for user behavior data and user behavior data statistical system

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085963A1 (en) * 2013-12-13 2015-06-18 腾讯科技(深圳)有限公司 Distributed system-based monitoring method, device, and system
CN106411547A (en) * 2015-07-28 2017-02-15 北京京东尚科信息技术有限公司 Redis call monitoring method and device
CN106411547B (en) * 2015-07-28 2019-11-05 北京京东尚科信息技术有限公司 A kind of redis calls monitoring method and device
CN107920360A (en) * 2016-10-08 2018-04-17 中兴通讯股份有限公司 The method, apparatus and system of a kind of addressing network problems
CN107025624A (en) * 2017-02-28 2017-08-08 广州地理研究所 Public transport barcode scanning payment data processing method, device and system
CN107025624B (en) * 2017-02-28 2021-02-02 广州地理研究所 Public transport code scanning payment data processing method, device and system
CN107277146A (en) * 2017-06-26 2017-10-20 郑州云海信息技术有限公司 A kind of distributed storage service traffics model generating method and system
CN110189039A (en) * 2019-06-04 2019-08-30 湖南智慧畅行交通科技有限公司 Based on distributed charging pile Event processing engine
CN114493378A (en) * 2022-04-06 2022-05-13 树根互联股份有限公司 Index acquisition method and device of industrial equipment and computer equipment

Also Published As

Publication number Publication date
WO2015085963A1 (en) 2015-06-18

Similar Documents

Publication Publication Date Title
CN104092556A (en) Monitoring method, device and system based on distributed system
CN104135667B (en) Video remote explanation synchronization method, terminal equipment and system
CN104967679A (en) Information recommendation system, method and device
CN104159136B (en) The acquisition methods of interactive information, terminal, server and system
CN104066009B (en) program identification method, device, terminal, server and system
CN104918124A (en) Live interaction system, information transmission method, information receiving method and device
CN104142862A (en) Overload protection method and device for server
CN104735671A (en) Malicious call recognition method and device
CN105554522A (en) Method for playing audio in group, server and terminal
CN104834529A (en) Method and device for optimizing performance of application
CN103458305A (en) Video playing method and device, terminal device and server
CN105025314A (en) Multimedia live broadcast method and device
CN103594103A (en) Audio processing method and related device
CN104967902A (en) Video sharing method, apparatus and system
CN104822090A (en) Video playing method, device and system
CN103546766A (en) Video processing method, related equipment and communication system
CN104618222A (en) Method and device for matching expression image
CN104992342A (en) Method for determining the effectiveness of popularizing information release, monitoring server, and terminal
CN103402190A (en) Method and device for selecting network as well as terminal
CN103313139A (en) History display method and device and electronic device
CN104836783A (en) Data transmission method, device and system
CN104144312A (en) Video processing method and related device
CN104935955A (en) Live video stream transmission method, device and system
CN103338145B (en) Method, device and system for controlling voice data transmission
CN103177217B (en) A kind of file scanning method, system and client and server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141008