CN110376877A - A kind of comprehensively monitoring redundancy management method - Google Patents

A kind of comprehensively monitoring redundancy management method Download PDF

Info

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
Application number
CN201910694110.5A
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.)
NANJING RAIL TRANSIT SYSTEMS CO Ltd
Original Assignee
NANJING RAIL TRANSIT SYSTEMS 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 NANJING RAIL TRANSIT SYSTEMS CO Ltd filed Critical NANJING RAIL TRANSIT SYSTEMS CO Ltd
Priority to CN201910694110.5A priority Critical patent/CN110376877A/en
Publication of CN110376877A publication Critical patent/CN110376877A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B9/00Safety arrangements
    • G05B9/02Safety arrangements electric
    • G05B9/03Safety 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

A kind of comprehensively monitoring redundancy management method
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.
CN201910694110.5A 2019-07-30 2019-07-30 A kind of comprehensively monitoring redundancy management method Pending CN110376877A (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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
US20140026000A1 (en) Highly available server system based on cloud computing
CN109597723B (en) Dual-machine hot standby redundancy implementation system and method for subway integrated monitoring system
CN103873279B (en) Server management method and server management device
CN102819465B (en) Failure recovery method in virtualization environment
US10812314B2 (en) Methods and apparatuses for pushing a message
CN104581219A (en) Control method of stream media forwarding server
CN106502874A (en) A kind of call chain tracking
CN101741912A (en) Method, network apparatus and distributed network system for processing computation task
EP2916522B1 (en) File transmission method and system thereof
CN110944044B (en) Distributed API gateway system and implementation method thereof
CN110535924B (en) Rail transit server communication method and system
CN101917386A (en) Cluster multimedia transcoding system and task processing method thereof
CN105183299A (en) Human-computer interface service processing system and method
CN1259786C (en) Method for detecting problem in route protocol module of distribution router
CN111190875A (en) Log aggregation method and device based on container platform
CN111970195A (en) Data transmission method and streaming data transmission system
CN102412990A (en) Remote sensing satellite raw data recording system with centralized management and real-time transmission functions
CN114493154A (en) Fault maintenance work order distribution method and device based on rail transit
CN103995901B (en) A kind of method for determining back end failure
CN107357809A (en) Magnanimity platform Hisoon real-time database metric data access system
CN110376877A (en) A kind of comprehensively monitoring redundancy management method
CN105825332B (en) Electrical energy measurement monitoring platform and its method based on cloud computing
CN114095901A (en) Communication data processing method and device
CN110569178A (en) interface early warning method and system based on big data platform
CN103546331B (en) Acquisition methods, the apparatus and system of monitoring information

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