CN106656589B - A kind of server dual-machine hot backup system - Google Patents

A kind of server dual-machine hot backup system Download PDF

Info

Publication number
CN106656589B
CN106656589B CN201611148822.XA CN201611148822A CN106656589B CN 106656589 B CN106656589 B CN 106656589B CN 201611148822 A CN201611148822 A CN 201611148822A CN 106656589 B CN106656589 B CN 106656589B
Authority
CN
China
Prior art keywords
module
server
data
heartbeat
database
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.)
Active
Application number
CN201611148822.XA
Other languages
Chinese (zh)
Other versions
CN106656589A (en
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.)
Wuhan Ship Communication Research Institute
Original Assignee
Wuhan Ship Communication Research Institute
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 Wuhan Ship Communication Research Institute filed Critical Wuhan Ship Communication Research Institute
Priority to CN201611148822.XA priority Critical patent/CN106656589B/en
Publication of CN106656589A publication Critical patent/CN106656589A/en
Application granted granted Critical
Publication of CN106656589B publication Critical patent/CN106656589B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Abstract

The invention discloses a kind of server dual-machine hot backup systems, belong to redundancy technique field.The system comprises first servers and second server;First server includes: the first heartbeat release module, the first heartbeat subscribing module and the first active-standby switch module, and second server includes: the second heartbeat release module, the second heartbeat subscribing module and the second active-standby switch module;When first server is primary server, the first heartbeat release module is for sending the first heartbeat signal;Second active-standby switch module is used to that second server to be switched to primary server when the number for not receiving the first heartbeat signal is more than threshold value;When second server is primary server, the second heartbeat release module is for sending the second heartbeat signal;First heartbeat subscribing module is for obtaining the first heartbeat signal and the second heartbeat signal;First active-standby switch module is used to that first server to be switched to primary server when the server of the first heartbeat signal starting time being later than the second heartbeat signal.

Description

A kind of server dual-machine hot backup system
Technical field
The present invention relates to redundancy technique field, in particular to a kind of server dual-machine hot backup system.
Background technique
Data communication system usually requires that system has very high reliability, no matter encounters catastrophic failure or actively ties up Shield, all will not influence the normal operation of system.In order to improve reliability and maintainability, it is necessary to carry out disaster recovery and recovery. For the system for having high reliability request, optimal backup scenario is exactly two-node cluster hot backup.
Generally there are two types of modes for two-node cluster hot backup.One is disk array mode, another kind is pure software mode.Pure software Mode refers to, in system operation, has two-server to load identical system and data, while passing through communication Cable keeps synchronous, and the server of work at present is known as primary server, and another server is known as standby server.Standby server Constantly detection Host Status carries out active and standby role switching when standby server detects that primary server occurs abnormal;As abnormal row After removing, the server after Abnormality remove is switched to primary server again by administrative staff.
(server after Abnormality remove is reverted to due to needing manual operation that could complete active-standby switch after Abnormality remove Primary server), i.e. waste of manpower, and be difficult to complete switching action in first time.
Summary of the invention
In order to need manual operation that could complete active-standby switch after solving the problems, such as Abnormality remove in the prior art, the present invention Embodiment provides a kind of server dual-machine hot backup system.The technical solution is as follows:
The embodiment of the invention provides a kind of server dual-machine hot backup systems, and the system comprises first servers and Two servers;The first server includes: the first heartbeat release module, the first heartbeat subscribing module and the first active-standby switch mould Block, the second server include: the second heartbeat release module, the second heartbeat subscribing module and the second active-standby switch module;? When the first server is primary server, the first heartbeat release module is used to periodically send the first heartbeat signal, First heartbeat signal includes the service starting time;The second heartbeat subscribing module is for obtaining the first heartbeat letter Number;When the number that second active-standby switch module is used to not receive first heartbeat signal within the set time is more than threshold value, The second server is switched to primary server;When the second server is primary server, the first heartbeat publication Module is for periodically sending the first heartbeat signal, and the second heartbeat release module is for periodically sending the second heartbeat Signal, second heartbeat signal include the service starting time;The first heartbeat subscribing module is for obtaining first heart Jump signal and second heartbeat signal;The second heartbeat subscribing module is for obtaining first heartbeat signal and described the Two heartbeat signals;The first active-standby switch module is in first heartbeat signal and second heartbeat signal The service starting time is later than the starting of the service in second heartbeat signal when the service starting time of first heartbeat signal When the time, the first server is switched to primary server;The second active-standby switch module is used for first heart The service jumped in signal and second heartbeat signal starts the time, is later than when the service starting time of first heartbeat signal When service in second heartbeat signal starts the time, the second server is switched to standby server.
In an implementation of the embodiment of the present invention, the first server further includes first database module and One data simultaneous module, the second server further include the second database module and the second data simultaneous module;Described first Heartbeat signal further includes the version number of data in the IP address and the first database module of the first server, and described Two heartbeat signals further include the version number of data in the IP address and second database module of the second server;It is described First data simultaneous module is also used to the version number of data and the second database mould in first database module described in comparison The version number of data in block, when the version number of data in second database module is greater than number in the first database module According to version number when, data in second database module are synchronized in the first database module;Second number It is also used in first database module described in comparison count in the version number of data and second database module according to synchronization module According to version number, when data in the first database module version number be greater than second database module in data version At this number, data in the first database module are synchronized in second database module.
In another implementation of the embodiment of the present invention, the first database module and the second database mould Data in block are divided into multiple portions, the version number of data and second database module in the first database module The version number of middle data includes the version number of various pieces;First data simultaneous module is used for first data In library module in the version number of the various pieces of data and second database module various pieces of data version number, when In second database module version number of a part of data be greater than the first database module in data it is identical When partial version number, a part of data in second database module is synchronized to the first database module In;Version number and institute of second data simultaneous module for the various pieces of data in the first database module The version number for stating the various pieces of data in the second database module, when a part of data in the first database module Version number be greater than second database module in data same section version number when, by the first database module One part of middle data is synchronized in second database module.
In another implementation of the embodiment of the present invention, first data simultaneous module is used for according to described second The IP address of server updates the first database module;Second data simultaneous module is used for according to the first service The IP address of device updates second database module.
In another implementation of the embodiment of the present invention, the first server further includes first service management mould Block, the second server further include second service management module;The first service management module is used in first clothes When business device starting, starting services the service of simultaneously recording and starts the time;The second service management module is used in the second service When device is switched to primary server, starting services and records the service starting time.
In another implementation of the embodiment of the present invention, the second active-standby switch module is within the set time When not receiving first heartbeat signal, overtime Heart rate meters is subtracted one, when the overtime Heart rate meters is equal to 0, The second server is switched to primary server, the initial value of the time-out Heart rate meters is the threshold value.
In another implementation of the embodiment of the present invention, the system also includes server management device, the clothes Device management equipment of being engaged in includes input module and sending module;The first server further includes the first receiving module, and described second Server further includes the second receiving module;The input module is used to obtain the active-standby switch instruction of user's input;The transmission Module is used to send active-standby switch message to the first server and the second server, and the active-standby switch message is root The message generated according to active-standby switch instruction;First receiving module and second receiving module are for receiving the master Standby handover request;The first active-standby switch module and the second active-standby switch module are used for according to the active-standby switch message Complete active-standby switch.
In another implementation of the embodiment of the present invention, the sending module is used for through UDP message to described the One server and the second server send the active-standby switch message.
In another implementation of the embodiment of the present invention, the server management device further includes that third heartbeat is subscribed to Module, the third heartbeat subscribing module is for obtaining first heartbeat signal and second heartbeat signal.
In another implementation of the embodiment of the present invention, the server management device further includes display module, is used According to first heartbeat signal and second heartbeat signal, showing the first server and the second server Operating status.
Technical solution provided in an embodiment of the present invention has the benefit that
The first heartbeat signal is obtained by the second heartbeat subscribing module, does not receive first heartbeat within the set time When the number of signal is more than threshold value, illustrates first server failure, at this time cut second server by the second active-standby switch module It is changed to primary server, guarantees that service is normal;When first server is by maintenance restarting, the first active-standby switch module Compare the service starting time in first heartbeat signal and second heartbeat signal, when the clothes of first heartbeat signal Business starting the time be later than the service in second heartbeat signal starting time when, by the first server switching based on service Device, when service starting in the second active-standby switch module first heartbeat signal and second heartbeat signal Between, it, will when the service of first heartbeat signal starting time being later than the starting time of the service in second heartbeat signal The second server is switched to standby server, to complete the switching again of first server, is not necessarily to manual control, saves people Power and switch speed is fast.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of block diagram of server dual-machine hot backup system provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
Fig. 1 is a kind of block diagram of server dual-machine hot backup system provided in an embodiment of the present invention, referring to Fig. 1, the system Including first server 10 and second server 20, first server 10 and second server 20 pass through network interface wired connection.Institute Stating first server 10 includes: the first heartbeat release module 101, the first heartbeat subscribing module 102 and the first active-standby switch module 103, the second server 20 includes: that the second heartbeat release module 201, the second heartbeat subscribing module 202 and second active and standby are cut Change the mold block 203.
When the first server 10 is primary server, the first heartbeat release module 101 is for periodically sending out The first heartbeat signal is sent, first heartbeat signal includes the service starting time;The second heartbeat subscribing module 202 is for obtaining Take first heartbeat signal;Second active-standby switch module 203 for not receiving the first heartbeat letter within the set time Number number be more than threshold value when, the second server 20 is switched to primary server.
When the second server 20 is primary server, the first heartbeat release module 101 is for periodically sending out The first heartbeat signal is sent, the second heartbeat release module 201 is for periodically sending the second heartbeat signal, second heart Jumping signal includes the service starting time;The first heartbeat subscribing module 102 is for obtaining first heartbeat signal and described Second heartbeat signal;The second heartbeat subscribing module 202 is for obtaining first heartbeat signal and second heartbeat letter Number;The first active-standby switch module 103 is for the service in first heartbeat signal and second heartbeat signal Start the time, is later than the starting time of the service in second heartbeat signal when the service starting time of first heartbeat signal When, the first server 10 is switched to primary server;The second active-standby switch module 203 is used for first heart The service jumped in signal and second heartbeat signal starts the time, is later than when the service starting time of first heartbeat signal When service in second heartbeat signal starts the time, the second server 20 is switched to standby server.
The present invention obtains the first heartbeat signal by the second heartbeat subscribing module, does not receive described the within the set time When the number of heart beat signal is more than threshold value, illustrate first server failure, is taken at this time by the second active-standby switch module by second Business device is switched to primary server, guarantees that service is normal;When first server is by maintenance restarting, described first active and standby is cut The service changed the mold in block first heartbeat signal and second heartbeat signal starts the time, when first heartbeat is believed Number service starting the time be later than the service in second heartbeat signal starting time when, the first server is switched to Primary server, the service in the second active-standby switch module first heartbeat signal and second heartbeat signal are opened The dynamic time is later than the starting time of the service in second heartbeat signal when the service starting time of first heartbeat signal When, the second server is switched to standby server, to complete the switching again of first server, is not necessarily to manual control, Save manpower.
Wherein, first server 10 is the default main server in the embodiment of the present invention, when 10 failure of first server, Second server 20 is switched to primary server, and after first server 10 restores normal, it is taken based on the switching of first server 10 Business device, second server 20 are switched to standby server.
Wherein, the first active-standby switch module 103 and the second active-standby switch module 203 are active and standby by running hot standby program realization Switching.
In addition, first server 10 provided in an embodiment of the present invention and second server 20 include memory module, storage It being stored in module related application service (i.e. aforementioned service), first server 10 runs these application services on startup, And second server 20 just runs these application services only when being switched to primary server.In embodiments of the present invention, using clothes Business operation makes to need to connect database use.In embodiments of the present invention, application program and hot standby program independent operating.
In embodiments of the present invention, the period of the first heartbeat signal and the second heartbeat signal can set according to actual needs It sets, such as 5 seconds.
In embodiments of the present invention, when first server 10 or second server 20 are switched to primary server, binding pair Outer internet protocol (English Internet Protocol, abbreviation IP) address, for client access, the service of completion is provided.When When first server 10 or second server 20 are switched to standby server, external IP address is unbinded.
In embodiments of the present invention, the service starting time refers to time when service starts, and above-mentioned service refers to server The service of offer, for example, server be video server when, then its provide service be Video service, server is download service When device, then it provides download service.
In an implementation of the embodiment of the present invention, the first server 10 can also include first database mould Block 104 and the first data simultaneous module 105, the second server 20 can also include the second database module 204 and second Data simultaneous module 205;First heartbeat signal further includes the IP address and first data of the first server 10 The version number of data in library module 104, second heartbeat signal further include the IP address of the second server 20 and described The version number of data in second database module 204;First data simultaneous module 105 is also used to the first data described in comparison In library module 104 in the version number of data and second database module 204 data version number, when second database When the version number of data is greater than the version number of data in the first database module 104 in module 204, by second data Data are synchronized in the first database module 104 in library module 204;Second data simultaneous module 205 is also used to compare In the first database module 104 in the version number of data and second database module 204 data version number, when When the version number of data is greater than the version number of data in second database module 204 in the first database module 104, Data in the first database module 104 are synchronized in second database module 204.
Wherein, first database module 104 and the second database module 204 are used to carrying database, first database Module 104 and the second database module 204 are realized by the memory module in server.
In embodiments of the present invention, when carrying out database synchronization, it can all data in sync database;It can also In order to avoid when progress data are synchronous, the problem that all data in transmission database cause stepped cost excessively high will be counted It is divided into multiple portions according to the data in library, when each sync database, only the part for there are data to update is synchronized.Wherein, The data of database can be divided into multiple portions according to storage location.
For second of update mode (part of synchronized update), the first database module 104 and described second Data in database module 204 can be divided into multiple portions, in the first database module 104 version number of data and The version number of data includes the version number of various pieces in second database module 204;The synchronous mould of first data Block 105 is for the version number of the various pieces of data and the second database mould in the first database module 104 The version number of the various pieces of data in block 204, when the version number of a part of data in second database module 204 It, will be in second database module 204 greater than in the first database module 104 when the version number of the same section of data One part of data is synchronized in the first database module 104;Second data simultaneous module 205 is for comparing institute State in first database module 104 each of data in the version number of the various pieces of data and second database module 204 The version number of a part, when the version number of a part of data in the first database module 104 is greater than second number According in library module 204 when the version number of the same section of data, by a part of data in the first database module 104 It is synchronized in second database module 204.
Specifically, first database module 104 and the second database module 204 are also used to set for various pieces in database Set version number.When setting, various pieces all have an initial version number, when the partial data updates, first database mould Block 104 (or second database module 204) is updated the version number of the part, and at no point in the update process, version number gradually becomes Greatly, such as on the basis of current version add 1;Alternatively, carrying out version to the part for thering are data to update in various pieces periodically This number update.First database module 104 (or second database module 204) safeguards various pieces with its version number for closing System, such as above-mentioned relation is stored by a table.
First heartbeat release module 101 and the second heartbeat release module 201 obtain above-mentioned relation when issuing heartbeat message And heartbeat message is produced according to the relationship.
In embodiments of the present invention, in the first database module 104 version number of the various pieces of data and The version number of the various pieces of data in second database module 204, refers to and is respectively compared identical portions in two databases The version number divided.For example, the data in first database module 104 in data and the second database module 204 are divided into 1,2, 3,4 four parts when then comparing, are compared in first database module 104 and are counted in data portion 1 and the second database module 204 According to the version number of part 1, compare in first database module 104 data portion in data portion 2 and the second database module 204 2 version number compares the version of data portion 3 in data portion 3 and the second database module 204 in first database module 104 This number, compare the version number of data portion 4 in data portion 4 and the second database module 204 in first database module 104.
Specifically, first data simultaneous module 105 is used to update institute according to the IP address of the second server 20 State first database module 104;Second data simultaneous module 205 is used for according to the IP address of the first server 10 more New second database module 204.Wherein, update is i.e. aforementioned is synchronized to institute for data in the first database module 104 It states in the second database module 204, or data in second database module 204 is synchronized to the first database mould In block 104.
Specifically, the first data simultaneous module 105 uses the IP address of second server 20 to second server number of request According to synchronization.Herein, the IP address of second server 20 is the IP address of the second database module 204 in second server 20.
Wherein, the IP address of first server 10 can be arranged in its starting, and the IP address of second server 20 can be with Being switched to primary server at it is setting.
In an implementation of the embodiment of the present invention, the first server 10 can also include first service management Module 106, the second server 20 can also include second service management module 206;The first service management module 106 For in the first server 10 starting, starting to service and records the service starting time;The second service management module 206 for when the second server 20 is switched to primary server, starting to service and records the service starting time.
In embodiments of the present invention, first server 10 is identical with the service that second server 20 provides, and first The data stored in server 10 and second server 20 it is every it is subsynchronous after it is also identical.
In an implementation of the embodiment of the present invention, the second active-standby switch module 203 is used in setting time When not receiving first heartbeat signal inside, overtime Heart rate meters is subtracted one, when the overtime Heart rate meters is equal to 0 When, the second server 20 is switched to primary server, the initial value of the time-out Heart rate meters is the threshold value.
For example, the initial value of Heart rate meters is 3, the second active-standby switch module 203 does not receive the first heartbeat in 3 seconds Signal then sets 2 for Heart rate meters, and the second active-standby switch module 203 receives first heart in next 3 seconds not yet Signal is jumped, then sets 1 for Heart rate meters, until Heart rate meters is 0.
And if receiving the first heartbeat signal before the value of Heart rate meters becomes 0, it at this time can be by heartbeat counting Think highly of and is set to initial value;Or after continuously receiving the first heartbeat signal of setting number, Heart rate meters is reset to initially Value.
Optionally, the system can also include server management device 30, and server management device 30 is simultaneously with first Server 10 and second server 20 connect, and specifically can carry out wired connection by network interface.The server management device 30 Including input module 301 and sending module 302;The first server 10 further includes the first receiving module 107, second clothes Business device 20 further includes the second receiving module 207;The input module 301 is used to obtain the active-standby switch instruction of user's input;Institute Sending module 302 is stated for sending active-standby switch message to the first server 10 and the second server 20;Described One receiving module 107 and second receiving module 207 are for receiving the active-standby switch message;The first active-standby switch mould Block 103 and the second active-standby switch module 203 are used to complete active-standby switch according to the active-standby switch message.
Wherein, input module 301 can be keyboard, button, touch screen etc., and active-standby switch instruction refers to that user passes through input Module 301 carries out the control instruction generated when input operation, and being used to indicate will be in first server 10 or second server 20 One is switched to primary server, and another server is switched to standby server.Active-standby switch message is instructed according to active-standby switch The message of generation, it is identical as active-standby switch instruction effect, it sends it to first server 10 and second server 20 is complete It is indicated at switching, switching action is finally completed by first server 10 and second server 20.
In this implementation, by the switching of 30 active control active/standby server of server management device, system is realized System diversity.
In an implementation of the embodiment of the present invention, the sending module 302 is for passing through User Datagram Protocol (English User Datagram Protocol, abbreviation UDP) message is to the first server 10 and the second server 20 Send the active-standby switch message.
In an implementation of the embodiment of the present invention, the server management device 30 can also include third heartbeat Subscribing module 303, the third heartbeat subscribing module 303 is for obtaining first heartbeat signal and second heartbeat letter Number.
In an implementation of the embodiment of the present invention, the server management device 30 can also include display module 304, for showing the first server 10 and described second according to first heartbeat signal and second heartbeat signal The operating status of server 20.Wherein operating status may include server whether failure etc..Further, the server pipe Reason equipment 30 can also obtain the activestandby state of first server 10 and the second server 20, thus the main clothes that display is current Business device and standby server are arranged.
Wherein, display module 304 can be display.
In embodiments of the present invention, server management device 30 can integrate in first server 10 or second server 20 On;Or server management device 30 may be independent equipment.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (10)

1. a kind of server dual-machine hot backup system, which is characterized in that the system comprises first servers and second server;
The first server includes: the first heartbeat release module, the first heartbeat subscribing module and the first active-standby switch module, institute Stating second server includes: the second heartbeat release module, the second heartbeat subscribing module and the second active-standby switch module;
When the first server is primary server, the first heartbeat release module is for periodically sending the first heartbeat Signal, first heartbeat signal include the service starting time;The second heartbeat subscribing module is for obtaining first heart Jump signal;The number that second active-standby switch module is used to not receive first heartbeat signal within the set time is more than threshold value When, the second server is switched to primary server;
When the second server is primary server, the first heartbeat release module is for periodically sending the first heartbeat Signal, the second heartbeat release module include clothes for periodically sending the second heartbeat signal, second heartbeat signal The business starting time;The first heartbeat subscribing module is for obtaining first heartbeat signal and second heartbeat signal;Institute The second heartbeat subscribing module is stated for obtaining first heartbeat signal and second heartbeat signal;First active-standby switch Module starts the time for the service in first heartbeat signal and second heartbeat signal, when first heartbeat When the service starting time of signal is later than the starting time of the service in second heartbeat signal, the first server is switched For primary server;The second active-standby switch module is in first heartbeat signal and second heartbeat signal The service starting time is later than the starting of the service in second heartbeat signal when the service starting time of first heartbeat signal When the time, the second server is switched to standby server.
2. system according to claim 1, which is characterized in that the first server further include first database module and First data simultaneous module, the second server further include the second database module and the second data simultaneous module;
First heartbeat signal further include the first server internet protocol IP address and the first database mould The version number of data in block, second heartbeat signal further include the second server IP address and second database The version number of data in module;
First data simultaneous module is also used to the version number of data and described second in first database module described in comparison The version number of data in database module, when the version number of data in second database module is greater than the first database In module when the version number of data, data in second database module are synchronized in the first database module;
Second data simultaneous module is also used to the version number of data and described second in first database module described in comparison The version number of data in database module, when the version number of data in the first database module is greater than second database In module when the version number of data, data in the first database module are synchronized in second database module.
3. system according to claim 2, which is characterized in that the first database module and the second database mould Data in block are divided into multiple portions, the version number of data and second database module in the first database module The version number of middle data includes the version number of various pieces;
First data simultaneous module for the version number of the various pieces of data in the first database module and The version number of the various pieces of data in second database module, when a portion of data in second database module When the version number divided is greater than the version number of the same section of data in the first database module, by the second database mould A part of data is synchronized in the first database module in block;
Second data simultaneous module for the version number of the various pieces of data in the first database module and The version number of the various pieces of data in second database module, when a portion of data in the first database module When the version number divided is greater than the version number of the same section of data in second database module, by the first database mould A part of data is synchronized in second database module in block.
4. system according to claim 2, which is characterized in that first data simultaneous module is used for according to described second The IP address of server updates the first database module;
Second data simultaneous module is used to update second database module according to the IP address of the first server.
5. system according to any one of claims 1 to 4, which is characterized in that the first server further includes the first clothes Business management module, the second server further includes second service management module;
The first service management module is used in first server starting, when starting services and records service starting Between;
The second service management module is used for when the second server is switched to primary server, and starting services and records clothes The business starting time.
6. system according to any one of claims 1 to 4, which is characterized in that the second active-standby switch module is used for When not receiving first heartbeat signal in setting time, overtime Heart rate meters is subtracted one, when the overtime heartbeat counting When device is equal to 0, the second server is switched to primary server, the initial value of the time-out Heart rate meters is the threshold Value.
7. system according to any one of claims 1 to 4, which is characterized in that the system also includes server admins to set Standby, the server management device includes input module and sending module;
The first server further includes the first receiving module, and the second server further includes the second receiving module;
The input module is used to obtain the active-standby switch instruction of user's input;
The sending module is used to send active-standby switch message to the first server and the second server, described active and standby Handover request is the message generated according to active-standby switch instruction;
First receiving module and second receiving module are for receiving the active-standby switch message;
The first active-standby switch module and the second active-standby switch module are used to complete to lead according to the active-standby switch message Standby switching.
8. system according to claim 7, which is characterized in that the sending module is for passing through User Datagram Protocol UDP message sends the active-standby switch message to the first server and the second server.
9. system according to claim 7, which is characterized in that the server management device further includes that third heartbeat is subscribed to Module, the third heartbeat subscribing module is for obtaining first heartbeat signal and second heartbeat signal.
10. system according to claim 9, which is characterized in that the server management device further includes display module, is used According to first heartbeat signal and second heartbeat signal, showing the first server and the second server Operating status.
CN201611148822.XA 2016-12-13 2016-12-13 A kind of server dual-machine hot backup system Active CN106656589B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611148822.XA CN106656589B (en) 2016-12-13 2016-12-13 A kind of server dual-machine hot backup system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611148822.XA CN106656589B (en) 2016-12-13 2016-12-13 A kind of server dual-machine hot backup system

Publications (2)

Publication Number Publication Date
CN106656589A CN106656589A (en) 2017-05-10
CN106656589B true CN106656589B (en) 2019-08-23

Family

ID=58825086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611148822.XA Active CN106656589B (en) 2016-12-13 2016-12-13 A kind of server dual-machine hot backup system

Country Status (1)

Country Link
CN (1) CN106656589B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109842505A (en) * 2017-11-27 2019-06-04 北京通号国铁城市轨道技术有限公司 A kind of cloud clustering fault processing method and processing device
CN108255646B (en) * 2018-01-17 2022-02-01 重庆大学 Industrial control application program fault self-recovery method based on heartbeat detection
CN109525434B (en) * 2018-12-13 2022-02-22 中国航空工业集团公司上海航空测控技术研究所 Redundancy backup method based on onboard equipment board card
CN109992384B (en) * 2019-03-18 2020-07-14 北京方鸿智能科技有限公司 Service registration discovery coordination system and method thereof
CN110278109B (en) * 2019-05-21 2022-02-01 创新先进技术有限公司 Disaster recovery method and system
CN111031341A (en) * 2019-11-20 2020-04-17 杭州当虹科技股份有限公司 Heartbeat-based dual-computer hot standby method
CN111130862A (en) * 2019-12-11 2020-05-08 福建星网智慧科技股份有限公司 Main/standby system switching method and device based on IPPBX
CN112087346B (en) * 2020-08-20 2022-05-10 深圳市元征科技股份有限公司 Diagnostic conversion box state determination method, upper computer and storage medium
CN112698991B (en) * 2021-01-20 2022-02-22 北京锐马视讯科技有限公司 Dual-computer hot standby system and method based on 1 to 1 heartbeat

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060391A (en) * 2007-05-16 2007-10-24 华为技术有限公司 Master and spare server switching method and system and master server and spare server
CN101877714A (en) * 2009-11-30 2010-11-03 英业达股份有限公司 Integrated server
CN102916825A (en) * 2011-08-01 2013-02-06 中兴通讯股份有限公司 Management equipment of dual-computer hot standby system, management method and dual-computer hot standby system
CN105553701A (en) * 2015-12-11 2016-05-04 国网青海省电力公司 Distribution network adjustment and control system and control method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5278540B2 (en) * 2009-03-30 2013-09-04 富士通株式会社 Operation system data management method and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060391A (en) * 2007-05-16 2007-10-24 华为技术有限公司 Master and spare server switching method and system and master server and spare server
CN101877714A (en) * 2009-11-30 2010-11-03 英业达股份有限公司 Integrated server
CN102916825A (en) * 2011-08-01 2013-02-06 中兴通讯股份有限公司 Management equipment of dual-computer hot standby system, management method and dual-computer hot standby system
CN105553701A (en) * 2015-12-11 2016-05-04 国网青海省电力公司 Distribution network adjustment and control system and control method thereof

Also Published As

Publication number Publication date
CN106656589A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106656589B (en) A kind of server dual-machine hot backup system
CN106331098B (en) Server cluster system
CN103744809B (en) Vehicle information management system double hot standby method based on VRRP
CN106850260A (en) A kind of dispositions method and device of virtual resources management platform
WO2019061720A1 (en) Data synchronization method and system
US9886358B2 (en) Information processing method, computer-readable recording medium, and information processing system
CN102394914A (en) Cluster brain-split processing method and device
TWI701916B (en) Method and device for self-recovering management ability in distributed system
CN103532753A (en) Double-computer hot standby method based on memory page replacement synchronization
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN103036719A (en) Cross-regional service disaster method and device based on main cluster servers
CN102714607A (en) Connectivity fault management timeout period control
CN104579791A (en) Method for achieving automatic K-DB main and standby disaster recovery cluster switching
CN105095008A (en) Distributed task fault redundancy method suitable for cluster system
CN113051110A (en) Cluster switching method, device and equipment
CN110659158A (en) Influx DB data backup method based on dual-computer hot standby environment
CN105426213A (en) Software update method and system
CN105933379B (en) A kind of method for processing business, equipment and system
CN112527567A (en) System disaster tolerance method, device, equipment and storage medium
CN110895469A (en) Method and device for upgrading dual-computer hot standby system, electronic equipment and storage medium
CN104980693A (en) Media service backup method and system
CN109189854A (en) The method and node device of sustained traffic are provided
CN111614702B (en) Edge calculation method and edge calculation system
CN111083074A (en) High availability method and system for main and standby dual OSPF state machines
CN113765690A (en) Cluster switching method, system, device, terminal, server and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant