Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only the part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other reality that those of ordinary skill in the art obtain under the premise of creative work is not made
Example is applied, belongs to the scope of protection of the invention.
As shown in figure 1, be the structure chart of monitoring processing system embodiment one provided by the invention, including:
The access processing module 11 and monitoring management module 10 of interconnection;
Processing module 11, including at least two access nodes are accessed, each access node is used to access monitored device;
It should be noted that access node here can be multiple on a server or a server
One of them in node.
Monitoring management module 10, for when it is determined that the first access node at least two access nodes breaks down,
Select the second access node in the access node not broken down from least two access nodes, and by the second access node
IP address and port numbers are sent to the monitored device being connected with the first access node, so that monitored device is according to the second access
The IP address and port numbers of node are linked into the second access node.
Here, monitoring management module 10 can be realized with a server, can also use more.Specifically, monitor
Management module 10 after determining some access node being connected with monitored device i.e. the first access node there occurs failure,
Select another access node i.e. the second access node in the access node then never to break down, and by the second access node
IP address and port numbers are sent to the monitored device being connected with the first access node, then monitored device saves according to the second access
The IP address and port numbers of point are initiated to connect to the second access node, so as to be linked into the second access node.
It should be noted that monitored device and monitoring management module 10, monitored device and access in above-described embodiment
Connection between 11 each node of processing module and access 11 each node of processing module and monitoring management module 10 connects for TCP/IP
Connect.
The present embodiment sets multiple access nodes by the access processing module in monitoring system, when in monitoring system
When monitoring management module determines that some access node for being connected with by access terminal breaks down, then from access processing module its
A new access node is selected in the access node that he does not break down, and the IP address of new access node and port numbers are sent
The monitored device of malfunctioning node connection is given, then monitored device is linked into according to the IP address and port numbers of new access node
New access node.By above-mentioned processing procedure, when some nodes break down, system can be distributed by access terminal automatically
New node, so as to ensure the normal operation of whole system.Moreover, the present embodiment is more by being separately provided in access processing module
Individual node, each processing module that accesses can be realized using one or more servers, reduce concentration using a service
Device when monitored device increases, can increase module server number so as to increase accessible section come the complexity realized
The number of point, so as to mitigate the burden of each server in module, without server because of the phenomenon that over-burden and collapses.
Therefore, the present invention also has scalability, the advantages of can flexibly controlling.
As shown in Fig. 2 for the structure chart of monitoring processing system embodiment two provided by the invention, the present embodiment and embodiment
One difference is that the present embodiment is in addition to the monitoring management module 10 in including embodiment one and access processing module 11, also
Including:
The data processing module 12 being connected with monitoring management module;
Data processing module 12, including at least two processing nodes, each processing node are used to receive at least two accesses
The data of node transmission simultaneously carry out data processing;
It should be noted that processing node here can be multiple on a server or a server
One of them in node.Here, monitoring management module 10, it is additionally operable to it is determined that first at least two processing nodes is handled
During nodes break down, second processing node is selected in the processing node not broken down from least two processing nodes, and
The IP address of second processing node and port numbers are sent to the access node being connected with the first processing node, so that access node
Second processing node is linked into according to the IP address of second processing node and port numbers.
Specifically, monitoring management module 10 is determining and the number that is connected of some access node in access processing module
According to processing node be the first processing node there occurs failure after, selected in the processing node never to break down another processing section
Point is second processing node, and the IP address of second processing node and port numbers are sent to and connect with what the first processing node was connected
Ingress, then access node initiate to connect to second processing node according to the IP address of second processing node and port numbers, so as to
It is linked into second processing node.
It should be noted that in above-described embodiment at 12 each node of data processing module and monitoring management module 10, data
Manage 12 each node of module and access 11 each node of processing module and access 11 each node of processing module and monitoring management module 10
Between connection be TCP/IP connections.The present embodiment sets multiple processing to save by the data processing module in monitoring system
Point, when the monitoring management module in monitoring system determines some the processing nodes break down being connected with some access node,
A new processing node is then selected from other processing nodes not broken down of data processing module, and will newly handle node
IP address and port numbers be sent to that access node being connected with malfunctioning node, then that access node saves according to new processing
The IP address and port numbers of point are linked into new processing node.Pass through above-mentioned processing procedure, when some nodes break down, system
New node can be distributed automatically, so as to ensure the normal operation of whole system.Moreover, the present embodiment is born in data processing module
When carrying on a shoulder pole heavier, data processing module server number can be increased so as to increase and can access the number for handling node, so as to subtract
The burden of each server in light module, without server because of the phenomenon that over-burden and collapses.Therefore, the present embodiment is also
With scalability, the advantages of can flexibly controlling.Moreover, access processing module and data processing module all may be used in the present embodiment
So that a server is respectively adopted to realize, reduces and concentrate using a server the complexity realized.
As shown in figure 3, for the structure chart of monitoring processing system embodiment three provided by the invention, the present embodiment three is with implementing
The difference of example two is that the present embodiment is except including the monitoring management module 10 in embodiment two, the access sum of processing module 11
Outside according to processing module 12, in addition to:
The schedule process module 13 being connected with monitoring management module;
Schedule process module 13, including at least two scheduling nodes, each scheduling node are used for from least two processing sections
Point scheduling data, by the data-pushing of scheduling to user;
It should be noted that scheduling node here can be multiple on a server or a server
One of them in node.
Here, monitoring management module 10, it is additionally operable to it is determined that the first scheduling node at least two scheduling nodes occurs
During failure, the second scheduling node is selected in the scheduling node not broken down from least two scheduling nodes, and second is adjusted
The IP address and port numbers for spending node are sent to the processing node being connected with the first scheduling node, so that processing node is according to second
The IP address and port numbers of scheduling node are linked into the second scheduling node.
Specifically, monitoring management module 10 is determining and some tune for being connected of processing node in data processing module
Degree processing node be the first scheduling node there occurs failure, then selected in the scheduling node never to break down another scheduling section
Point is the second scheduling node, and the IP address of the second scheduling node and port numbers are sent to the place being connected with the first scheduling node
Node is managed, then handles node and initiates to connect to the second scheduling node according to the IP address and port numbers of the second scheduling node, so as to
It is linked into the second scheduling node.
It should be noted that in above-described embodiment at 12 each node of schedule process module and monitoring management module 10, data
Manage 12 each node of module and 11 each node of schedule process module and 11 each node of data processing module and monitoring management module 10
Between connection be TCP/IP connections.
The present embodiment sets multiple processing nodes by the schedule process module in monitoring system, when in monitoring system
When monitoring management module determines to break down with handling some scheduling node for being connected of node, then from schedule process module other
A new scheduling node is selected in the scheduling node not broken down, and the IP address of new scheduling node and port numbers are sent to
The processing node being connected with malfunctioning node, then handle node and new scheduling is linked into according to the IP address and port numbers of new scheduling node
Node.By above-mentioned processing procedure, when some nodes break down, system can distribute new node automatically, so as to ensure
The normal operation of whole system.Moreover, the present embodiment can increase schedule process module in schedule process module heavy load
Server number is so as to increase the number of accessible scheduling node, so as to mitigate the burden of each server in module, without
There is server because of the phenomenon that over-burden and collapses.Therefore, the present embodiment also has scalability, and what can flexibly be controlled is excellent
Point.Moreover, each node of processing module, data processing module and schedule process module is accessed in the present embodiment can use not
With server realize, reduce and concentrate using server the complexity realized.
As shown in figure 4, for the flow chart of monitor processing method embodiment one provided by the invention, comprise the following steps:
S401, monitoring management module determine the first access section at least two access nodes that access processing module includes
Point breaks down;
It should be noted that monitoring management module can be realized using two-node cluster hot backup, to solve monitoring management module clothes
Single Point of Faliure problem existing for business.
Specifically, sent again when monitoring management module receives the monitored device that is connected with the first access node
During connection request, or when detecting the heartbeat signal chain rupture between the first access node, it is determined that the first access node
There occurs failure.
Selection second connects in the access node that S402, monitoring management module do not break down from least two access nodes
Ingress, and the IP address of the second access node and port numbers are sent to the monitored device being connected with the first access node,
So that monitored device is linked into the second access node according to the IP address and port numbers of the second access node.
Specifically, monitoring management module it is determined that the first access node there occurs failure after, that never breaks down connects
The second access node is selected using load-balancing algorithm in ingress, and the IP address of the second access node and port numbers are sent
The monitored device of the first access node connection is given, then monitored device is according to the IP address and port numbers of the second access node
Initiate to connect to the second access node, so as to be linked into the second access node.
It should be noted that in above-described embodiment at monitored device and monitoring management module, monitored device and access
The connection managed between each node of module and each node of access processing module and monitoring management module is TCP/IP connections.
The present embodiment not only can be distributed new node by access terminal automatically, and can be realized by load balancing
To the access node in access processing module using optimizing, the stabilization of monitoring system, reliable fortune farthest ensure that
OK.
A specific embodiment is used below, and above-mentioned technical proposal is described in detail.
As shown in figure 5, for the flow chart of monitor processing method embodiment two provided by the invention, comprise the following steps:
S501, send connection request message;
Monitored device is initialized as IP address and the port of monitoring management module server, and based on it is stored respectively
IP address and port and secondary ip address and port.If monitored device needs to access the access section of access processing module
Point, then monitored device primary ip address and port send connection request message to monitoring management module, carried in connection request
The device identification of monitored device, it can also be multiple that monitored device here, which can be one, and multiple monitored set
It is standby to initiate connection request simultaneously.
S502, send access node message;
After monitoring management module receives the connection request message of monitored device transmission, taken according in connection request message
The monitored device device identification of band uses load-balancing algorithm to distribute an access node for monitored device.Specifically,
It can be realized using uniformity HASH algorithms, each access node in processing module is accessed has the mark being randomly assigned
Number, it is false here by the access node total number of the energy normal work in the device identification of monitored device and access processing module
N is set to, as the parameter of uniformity HASH algorithms, calculates a HASH value, by this HASH value and access node identification number
Compare, be optimal access node with the immediate access node of HASH values, optimal access node is assumed to be in this embodiment
Access node 3.After monitoring management module finds optimal access node 3, the IP address of optimal access node 3 and port numbers are made
Monitored device is sent to for access node message.
S503, send connection request message;
After monitored device receives the access node message of monitoring management module transmission, access node message is extracted
The IP address and port numbers of the optimal access node 3 of middle carrying, the position of primary ip address and port is stored it in, to substitute original
The primary ip address come and port.Then, monitored device is asked with the IP address and port numbers of optimal access node 3 to connection is initiated
Seek message.Monitored device and optimal access node 3 is caused to connect and disconnect if abnormal, then monitored device is again to optimal
Access node 3 initiates connection request message, does not all succeed three times if initiating connection request message and exceeding, it is determined that most preferably connect
Ingress 3 breaks down.
S504, send heartbeat message;
After monitored device and optimal access node 3 are successfully established connection, optimal access node 3 is in a manner of heartbeat to prison
Control management module report is in normal communication state.
The heartbeat message that optimal access node is sent is confiscated after monitoring management module exceedes preset time period, it is determined that
Optimal access node 3 sends failure.
S505, connection request message is sent again;
It is determined that after the optimal transmission of access node 3 failure, monitored device can use secondary ip address and port numbers to prison
Keyholed back plate reason module server sends connection request message again.The content and connection procedure of request message are referring specifically to step
S501, it is described again here.
S506, send access node message;
Referring specifically to step S502, it is described again here.It should be noted that it is determined that event occurs for optimal access node 3
After barrier, it is removed from access processing module, i.e., can recalculate the access section of the energy normal operation in access processing module
Point number, then will subtract 1 again on the basis of above access node number when HASH values are calculated here.This implementation
The optimal access node for assuming to recalculate in example is 6.
S507, send connection request message;
Referring specifically to step S503, it is described again here.
S508, send heartbeat message;
Referring specifically to step S504, it is described again here.
It should be noted that the connection used in the present embodiment is TCP connection.
As shown in fig. 6, being the flow chart of monitor processing method embodiment three provided by the invention, the present embodiment is real in method
On the basis of applying example one, the fault handling method for handling data processing module node can also be included, comprised the following steps:
S601, monitoring management module determine the first processing node at least two processing nodes in data processing module
Break down
It should be noted that monitoring management module can be realized using two-node cluster hot backup, to solve monitoring management module clothes
Single Point of Faliure problem existing for business.
Specifically, when monitoring management module detects the heartbeat signal chain rupture between the first processing node, then really
There occurs failure for fixed first processing node.
Selected in the processing node that S602, monitoring management module do not break down from least two processing nodes at second
Node is managed, and the IP address of second processing node and port numbers are sent to the access node being connected with the first processing node, with
Access node is set to be linked into second processing node according to the IP address and port numbers of the second processing node.
Specifically, monitoring management module never breaks down after determining the first processing node there occurs failure
Processing node in select the second processing node of most lightly loaded, and the IP address of second processing node and port numbers are sent to
With the first access node for being connected of processing node, then access node according to the IP address of second processing node and port numbers to second
Handle node and initiate connection, so as to be linked into second processing node.
It should be noted that each node of data processing module and monitoring management module, data processing mould in above-described embodiment
Each node of block and each node of access processing module and the connection accessed between each node of processing module and monitoring management module are
TCP/IP connections.
The present embodiment can not only distribute new processing node automatically, and can be realized according to loading condition to data
The utilizing for processing node managed in module optimizes, and farthest ensure that stabilization, the reliability service of monitoring system.Moreover,
Processing module and data processing module are accessed in the present embodiment can be respectively adopted a server to realize, reduce concentration
Using a server come the complexity realized.
As shown in fig. 7, being the flow chart of monitor processing method example IV provided by the invention, the present embodiment is real in method
The fault handling method for handling schedule process module node can also be included on the basis of example three by applying, and be comprised the following steps:
S701, monitoring management module determine the first scheduling node at least two scheduling nodes in dispatching management module
Break down;
It should be noted that monitoring management module can be realized using two-node cluster hot backup, to solve monitoring management module clothes
Single Point of Faliure problem existing for business.
Specifically, monitoring management module detects the heartbeat signal chain rupture between the first scheduling node, it is determined that the
There occurs failure for one scheduling node.
Selection second is adjusted in the scheduling node that S702, monitoring management module do not break down from least two scheduling nodes
Node is spent, and the IP address of the second scheduling node and port numbers are sent to the processing node being connected with the first scheduling node, with
Processing node is set to be linked into the second scheduling node according to the IP address and port numbers of the second scheduling node.
Specifically, monitoring management module it is determined that the first scheduling node there occurs failure after, then never break down
Scheduling node in the second scheduling node selected using load-balancing algorithm, and by the IP address and port numbers of the second scheduling node
The processing node being connected with the first scheduling node is sent to, then handles IP address and port numbers of the node according to the second scheduling node
Initiate to connect to the second scheduling node, so as to be linked into the second scheduling node.
It should be noted that each node of data processing module and monitoring management module, data processing mould in above-described embodiment
Each node of block and each node of access processing module and the connection accessed between each node of processing module and monitoring management module are
TCP/IP connections.
The present embodiment can not only distribute new scheduling node automatically, and can be realized according to loading condition to scheduling office
Manage utilizing for the scheduling node in module to optimize, farthest ensure that stabilization, the reliability service of monitoring system.Moreover,
Processing module and data processing module are accessed in the present embodiment can be respectively adopted a server to realize, reduce concentration
Using a server come the complexity realized.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to
The related hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey
Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or
Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:Various embodiments above is merely illustrative of the technical solution of the present invention, rather than its limitations;To the greatest extent
The present invention is described in detail with reference to foregoing embodiments for pipe, it will be understood by those within the art that:Its according to
The technical scheme described in foregoing embodiments can so be modified, either which part or all technical characteristic are entered
Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology
The scope of scheme.