CN110376877A - A kind of comprehensively monitoring redundancy management method - Google Patents
A kind of comprehensively monitoring redundancy management method Download PDFInfo
- Publication number
- CN110376877A CN110376877A CN201910694110.5A CN201910694110A CN110376877A CN 110376877 A CN110376877 A CN 110376877A CN 201910694110 A CN201910694110 A CN 201910694110A CN 110376877 A CN110376877 A CN 110376877A
- Authority
- CN
- China
- Prior art keywords
- primary server
- server
- management method
- comprehensively monitoring
- redundancy management
- 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
Links
- 238000007726 management method Methods 0.000 title claims abstract description 26
- 238000012544 monitoring process Methods 0.000 title claims abstract description 20
- 238000000034 method Methods 0.000 claims description 31
- 238000004590 computer program Methods 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000005303 weighing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B9/00—Safety arrangements
- G05B9/02—Safety arrangements electric
- G05B9/03—Safety arrangements electric with multiple-channel loop, i.e. redundant control systems
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention discloses a kind of comprehensively monitoring redundancy management method, 1) broadcast native login information is comprised the following steps that;2) judge unique primary server;3) judge whether primary server is offline;If so, standby server switchs to primary server, terminate;If it is not, then repeating this step.The problem of distributed system redundancy switching mechanism that the present invention solves existing internet industry is more complex, cannot fully meet the requirement of real-time of field of track traffic;When realizing primary server failure, standby server is switched into primary server automatically, has a primary server working in guarantee system always.
Description
Technical field
The invention belongs to technical field of data security, refer specifically to for a kind of comprehensively monitoring redundancy management method.
Background technique
Urban track traffic comprehensive monitoring system is with the present computer technology, network technology, automatic technology and information
Based on technology, it is integrated with the subsystem of multiple metro automatic professions, and to subway modules under integrated platform support
Unified monitoring is carried out, realizes the linkage control function between the information sharing and system of each professional system, improves efficiency of operation,
Basis for IT application is provided to realize that urban track traffic modernizes operation management.
Real-time data sharing is not only needed to be also required to store historical data however, each system monitors simultaneously,
It is higher to the performance requirement of server, it is more demanding particularly with Information Security.Therefore we need to back up data,
Back-up processing is carried out to server, does not influence the normal work of whole system after a server damages.However, in numerous clothes
We only need a server to service in business device, need the method for a kind of switching primary server and standby server, avoid
It vies each other between server.
Summary of the invention
Above-mentioned the deficiencies in the prior art are directed to, the purpose of the present invention is to provide a kind of comprehensively monitoring Redundancy Management sides
Method, it is more complex with the distributed system redundancy switching mechanism for solving internet industry in the prior art, track cannot be fully met
The problem of requirement of real-time of field of traffic;When the present invention realizes that primary server breaks down, automatically standby server is switched to lead
Server has always a primary server working in guarantee system.
In order to achieve the above objectives, The technical solution adopted by the invention is as follows:
A kind of comprehensively monitoring redundancy management method of the invention, comprises the following steps that
1) native login information is broadcasted;
2) judge unique primary server;
3) judge whether primary server is offline;If so, standby server switchs to primary server, terminate;If it is not, then repeating this step
Suddenly.
Further, the step 1) specifically includes: after native broadcast log-on message, judging whether there is the master of other nodes
Server response;The machine switchs to standby server if having response;This step 1) is repeated if not having response.
Further, the step 1) is specific further include: after broadcast n times the machine logon information, does not there is other nodes yet
Primary server response, then the machine switchs to primary server;N is the natural number greater than zero.
Further, the step 2 specifically includes: the primary server of each node broadcasts safety message, when receiving it
When the safety message of the primary server broadcast of his node, then each primary server carries out timestamp comparation, the clothes for selecting timestamp small
Device be engaged in as primary server.
Further, the step 3) specifically includes: the standby server of each node receives the safety report of primary server broadcast
Text, and the safety message of broadcast is counted;The safety message that primary server is broadcasted is not detected when number is more than M times, then
Standby server switchs to primary server;M is the natural number greater than zero.
Further, described count is specially that each time T broadcasts a safety message.
Further, described to broadcast as udp protocol broadcast, it is stateless transport protocol, improves the transmission speed of data.
Further, the timestamp is millisecond rank, avoids the conflict of time of occurrence stamp.
Further, the method also includes step 4): the result data of primary server is transferred to by function interface
Each process on each server carries out active and standby management to the process of Servers-all.
A kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor
Such as above-mentioned method is realized when row.
Beneficial effects of the present invention:
The distributed system redundancy switching mechanism that the present invention solves existing internet industry is more complex, cannot fully meet rail
The problem of requirement of real-time of road field of traffic;Traditional Dual-Computer Hot-Standby System redundancy switching mechanism is more single, is not able to satisfy peace
Full property and reliability requirement.The redundancy management method that the present invention is proposed for field of track traffic comprehensively monitoring technical requirements is opposite
Existing distributed system realization mechanism is simpler, and uses the stateless transport protocol of UDP, and timestamp is millisecond rank,
The transmission speed and real-time of data are more preferable, once primary server breaks down, standby server can switch within grade time second
Primary server guarantees the normal operation of system;The present invention is applicable not only to dual systems, is equally applicable to multi-computer system, supports
It is higher that multi-computer back-up, Information Security and reliability compare traditional Dual-Computer Hot-Standby System;In addition result data is connect by function
The upper each process of the oral instructions service of being defeated by, realizes the management of proceeding graininess, and management granularity is thinner.
Detailed description of the invention
Fig. 1 is the flow chart of the method for the present invention;
Fig. 2 is the flow diagram in the method for the present invention example.
Specific embodiment
For the ease of the understanding of those skilled in the art, the present invention is made further below with reference to embodiment and attached drawing
Bright, the content that embodiment refers to not is limitation of the invention.
Shown in referring to Fig.1, a kind of comprehensively monitoring redundancy management method of the invention is comprised the following steps that
S101: broadcast native login information.
S102: judge unique primary server.
S103: judge whether primary server is offline;If so, standby server switchs to primary server, terminate;If it is not, then weighing
Duplicate step.
S104: being transferred to each process on each server by function interface for the result data of primary server, to all
The process of server carries out active and standby management, and primary server can switch in time between standby server.
In example, referring to shown in Fig. 2, method and step of the invention is as follows:
Step 1: broadcast native login information;
Step 2: judging whether there is the primary server response of other nodes;8 are entered step if having response;If not having response into
Enter step 3;
Step 3: retrying broadcast and be greater than n times the machine logon information, if the primary server response for not having other nodes is thrown away, if then
Enter step 4;If otherwise return step 1;(N is the natural number greater than zero)
Step 4: the machine switchs to primary server;
Step 5: the primary server in each node broadcasts safety message every time t2;
Step 6: judging whether to receive the safety message of the primary server broadcast of other nodes;If then entering step 7;If not
Then return step 4;
Step 7: judging whether the timestamp of the machine is greater than the timestamp of primary server in other nodes;If then entering step 8;
If otherwise return step 4;
Step 8: the machine is used as standby server;
Step 9: the standby server in each node broadcasts safety message every time t1;
Step 10: standby server judges whether to receive primary server safety message every time t2;If then return step 8;
If otherwise entering step 11;
Step 11: according to primary server safety message number is not received, judge whether primary server is offline in system:
It is less than or equal to M if counting, is allowing to retry in range, continue waiting for the safety message of primary server, turns to step 9;
Be greater than M if counting, judge that primary server has been off in system, the machine switchs to primary server, turn to step 5, M be greater than
Zero natural number.
Comprehensively monitoring redundancy management method of the invention, further includes management of process, on the basis of exemplary, by primary server
Result data function interface be transferred on server each process (function interface provides usually in the form of dynamic base,
Process calls function interface after starting on the server in a manner of loading dynamic base), pipe is carried out to the process of Servers-all
Reason, primary server can switch in time between standby server.
Function interface includes:
1. process registers interface (RegisterProc)
All programs must register the result data that can just get primary server, just will receive management of process.
2. whether the machine is the primary server interface (IsOnDuty) for specifying process
Judge whether the machine is the primary server for specifying process
3. obtaining currently running process name interface (GetActiveProc) in the machine
Function interface is for obtaining currently running process name in the machine
4. the server info interface (RequestService) of the process of acquisition
Obtain the corresponding host information of certain process or standby host information
5. the machine specify process whether runnable interface (isProcRun)
Judge that the machine specifies whether process is running: if the process stops or not by registering into vehicle registration interface, return is no,
Otherwise returning is.
There are many concrete application approach of the present invention, the above is only a preferred embodiment of the present invention, it is noted that for
For those skilled in the art, without departing from the principle of the present invention, it can also make several improvements, this
A little improve also should be regarded as protection scope of the present invention.
Claims (10)
1. a kind of comprehensively monitoring redundancy management method, which is characterized in that comprise the following steps that
1) native login information is broadcasted;
2) judge unique primary server;
3) judge whether primary server is offline;If so, standby server switchs to primary server, terminate;If it is not, then repeating this step
Suddenly.
2. comprehensively monitoring redundancy management method according to claim 1, which is characterized in that the step 1) specifically includes:
After native broadcast log-on message, the primary server response of other nodes is judged whether there is;The machine switchs to standby service if having response
Device;This step 1) is repeated if not having response.
3. comprehensively monitoring redundancy management method according to claim 2, which is characterized in that the step 1) is specifically also wrapped
It includes: after broadcast n times the machine logon information, not having the primary server response of other nodes yet, then the machine switchs to primary server;N is
Natural number greater than zero.
4. comprehensively monitoring redundancy management method according to claim 1, which is characterized in that the step 2 specifically includes:
The primary server of each node broadcasts safety message, when the safety message that the primary server for receiving other nodes is broadcasted, then
Each primary server carries out timestamp comparation, and the server for selecting timestamp small is as primary server.
5. comprehensively monitoring redundancy management method according to claim 1, which is characterized in that the step 3) specifically includes:
The standby server of each node receives the safety message of primary server broadcast, and counts to the safety message of broadcast;Work as number
The safety message of primary server broadcast is not detected more than M times, then switchs to primary server for server;M is the nature greater than zero
Number.
6. comprehensively monitoring redundancy management method according to claim 5, which is characterized in that when the counting is specially each
Between T broadcast a safety message.
7. comprehensively monitoring redundancy management method according to claim 1, which is characterized in that described to broadcast as udp protocol wide
It broadcasts, is stateless transport protocol.
8. comprehensively monitoring redundancy management method according to claim 1, which is characterized in that the timestamp is Millisecond
Not.
9. comprehensively monitoring redundancy management method according to claim 1, which is characterized in that the method also includes steps
4): the result data of primary server is transferred to each process on each server by function interface, to Servers-all into
The active and standby management of Cheng Jinhang.
10. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the program is held by processor
The method as described in any in claim 1-9 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910694110.5A CN110376877A (en) | 2019-07-30 | 2019-07-30 | A kind of comprehensively monitoring redundancy management method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910694110.5A CN110376877A (en) | 2019-07-30 | 2019-07-30 | A kind of comprehensively monitoring redundancy management method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110376877A true CN110376877A (en) | 2019-10-25 |
Family
ID=68257051
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910694110.5A Pending CN110376877A (en) | 2019-07-30 | 2019-07-30 | A kind of comprehensively monitoring redundancy management method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110376877A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6415418B1 (en) * | 1999-08-27 | 2002-07-02 | Honeywell Inc. | System and method for disseminating functional blocks to an on-line redundant controller |
JP2008181240A (en) * | 2007-01-23 | 2008-08-07 | Toshiba Corp | Redundant distributing control system |
WO2010078795A1 (en) * | 2008-12-29 | 2010-07-15 | 华为技术有限公司 | Method, device and system for improving data transmission quality |
CN108196441A (en) * | 2017-11-17 | 2018-06-22 | 国电南瑞科技股份有限公司 | A kind of implementation method of the hot backup redundancy of system-oriented application |
CN109597723A (en) * | 2018-11-26 | 2019-04-09 | 南京轨道交通系统工程有限公司 | Two-node cluster hot backup redundancy for subway comprehensive monitoring system realizes system and method |
-
2019
- 2019-07-30 CN CN201910694110.5A patent/CN110376877A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6415418B1 (en) * | 1999-08-27 | 2002-07-02 | Honeywell Inc. | System and method for disseminating functional blocks to an on-line redundant controller |
JP2008181240A (en) * | 2007-01-23 | 2008-08-07 | Toshiba Corp | Redundant distributing control system |
WO2010078795A1 (en) * | 2008-12-29 | 2010-07-15 | 华为技术有限公司 | Method, device and system for improving data transmission quality |
CN108196441A (en) * | 2017-11-17 | 2018-06-22 | 国电南瑞科技股份有限公司 | A kind of implementation method of the hot backup redundancy of system-oriented application |
CN109597723A (en) * | 2018-11-26 | 2019-04-09 | 南京轨道交通系统工程有限公司 | Two-node cluster hot backup redundancy for subway comprehensive monitoring system realizes system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103237045B (en) | Parallel processing system and parallel processing method for large-scale real-time traffic data | |
US10812314B2 (en) | Methods and apparatuses for pushing a message | |
CN103873279B (en) | Server management method and server management device | |
CN109597723B (en) | Dual-machine hot standby redundancy implementation system and method for subway integrated monitoring system | |
CN102891868A (en) | Load balancing method and device for distributed system | |
CN101436966A (en) | Network monitoring and analysis system under virtual machine circumstance | |
CN102932210A (en) | Method and system for monitoring node in PaaS cloud platform | |
EP2916522B1 (en) | File transmission method and system thereof | |
CN102412990B (en) | Remote sensing satellite raw data recording system with centralized management and real-time transmission functions | |
CN103856760A (en) | Longitudinal virtualization device between video surveillance devices | |
CN103795793A (en) | Road vehicle monitoring platform system based on double server clusters | |
CN101917386A (en) | Cluster multimedia transcoding system and task processing method thereof | |
CN1259786C (en) | Method for detecting problem in route protocol module of distribution router | |
CN110944044A (en) | Distributed API gateway system and implementation method thereof | |
CN1945543A (en) | Service flow processing method of multiple nuclear processor and multiple nuclear processor | |
CN104618879A (en) | Distributed quick short message sending system | |
CN113992648B (en) | A method and device for real-time publishing of road conditions based on container orchestration technology | |
CN110376877A (en) | A kind of comprehensively monitoring redundancy management method | |
CN110569178B (en) | Interface early warning method and system based on big data platform | |
CN116886541B (en) | Service broadband 5GCPE protection and bandwidth real-time allocation method and system | |
CN105825332B (en) | Electrical energy measurement monitoring platform and its method based on cloud computing | |
CN111698301A (en) | Service management method, device and storage medium for ensuring service continuation | |
US7607051B2 (en) | Device and method for program correction by kernel-level hardware monitoring and correlating hardware trouble to a user program correction | |
CN117609290A (en) | Service bus asynchronous processing system and method based on distributed cache technology | |
CN109218137A (en) | The condition detection method and device of a kind of node in distributed system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191025 |
|
RJ01 | Rejection of invention patent application after publication |