CN105471622A - High-availability method and system for main/standby control node switching based on Galera - Google Patents

High-availability method and system for main/standby control node switching based on Galera Download PDF

Info

Publication number
CN105471622A
CN105471622A CN201510775862.6A CN201510775862A CN105471622A CN 105471622 A CN105471622 A CN 105471622A CN 201510775862 A CN201510775862 A CN 201510775862A CN 105471622 A CN105471622 A CN 105471622A
Authority
CN
China
Prior art keywords
standby
main
module
memory module
node
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.)
Granted
Application number
CN201510775862.6A
Other languages
Chinese (zh)
Other versions
CN105471622B (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 OS-EASY CLOUD COMPUTING Co Ltd
Original Assignee
WUHAN OS-EASY CLOUD COMPUTING 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 WUHAN OS-EASY CLOUD COMPUTING Co Ltd filed Critical WUHAN OS-EASY CLOUD COMPUTING Co Ltd
Priority to CN201510775862.6A priority Critical patent/CN105471622B/en
Publication of CN105471622A publication Critical patent/CN105471622A/en
Application granted granted Critical
Publication of CN105471622B publication Critical patent/CN105471622B/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/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • 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

Abstract

The invention discloses a high-availability method and system for main/standby control node switching based on Galera, and relates to the field of cloud calculation. The system comprises a main control node, a standby node, a main monitoring and sending module, a standby monitoring and sending module, a main storage module, a standby storage module, a main timing and executing module and a standby timing and executing module. The main monitoring and sending module monitors and sends heartbeat information of the main control node and receives heartbeat response information sent by the standby monitoring and sending module. The standby monitoring and sending module monitors the heartbeat information of the standby control node, receives the heartbeat information and sends the heartbeat response information to the main monitoring and sending module. The main storage module and the standby storage module receive and store cluster information. The main timing and executing module calculates whether the heartbeat response information receiving process of the main monitoring and sending module is overtime. The standby timing and executing module calculates whether the heartbeat information receiving process of the standby monitoring and sending module is overtime. By adopting the high-availability method and system, the integrity of data and the normal work of clusters are ensured when switching is carried out between the main control node and the standby control node.

Description

A kind of high availability method of the Controlling vertex active-standby switch based on Galera and system
Technical field
The present invention relates to field of cloud calculation, be specifically related to a kind of high availability method and system of the Controlling vertex active-standby switch based on Galera.
Background technology
In cloud computation data center, by Controlling vertex Management Calculation node, storage cluster state, configuration data, dynamic dispatching cluster resource, Controlling vertex is the core of whole cluster in cloud computing.
When Controlling vertex occurs delaying machine, the cluster that this Controlling vertex is corresponding can be in the state of non-stop layer node administration, and the partial function of this cluster cannot normally be used; When damaging appears in the data on Controlling vertex, the state of the cluster corresponding with this node and configuration data can be lost, and even the business datum of user also can be lost, and therefore, Controlling vertex affects the normal work of cluster.
At present, the cluster caused in order to avoid Controlling vertex fault is difficult to normal work, usually adopts following two kinds of modes:
(1) at least two Controlling vertex are used jointly to share the management work of cluster, operating load mean allocation on each Controlling vertex, the data of cluster have redundancy backup on each Controlling vertex, when any one Controlling vertex delays machine, the operating load on this Controlling vertex can be automatically transferred on another Controlling vertex.
(2) active and standby High Availabitity technology is used, that is: current main controlled node and standby control node is comprised, current main controlled node is for managing corresponding cluster, standby control node is for backing up the data of current main controlled node, also whether break down for detecting main controlled node, and during for detecting that main controlled node breaks down, manage the cluster that current main controlled node is corresponding.
Current active and standby High Availabitity technology generally adopts MySQL (Relational DBMS) asynchronous replication the data on main controlled node to be backuped on standby control node, the heartbeat of standby control nodes listen main controlled node simultaneously, when finding main controlled node off-line, standby control node upgrades to main controlled node, and start the Controlling vertex services such as MySQL and httpd (main program of Apache HTML (Hypertext Markup Language) http server), configuration Floating IP address, management cluster.
In use, there is following defect in said method:
When using MySQL to carry out asynchronous replication, first data are write main controlled node, copy data to standby control node again, when main controlled node delays machine, understand some data and write main controlled node, but also do not have enough time to copy to standby control node, now standby control node upgrades to main controlled node, the data do not copied in standby control node are lost, and affect the normal work of cluster.
Summary of the invention
For the defect existed in prior art, the object of the present invention is to provide a kind of high availability method and system of the Controlling vertex active-standby switch based on Galera, can main controlled node with standby control node switch time, ensure the integrality of data, the normal work of guarantee cluster.
For reaching above object, the technical scheme that the present invention takes is:
A kind of high-availability system of the Controlling vertex active-standby switch based on Galera, comprise main controlled node and standby control node, described system also comprises main monitoring sending module, for Executive Module when monitoring sending module, main memory module, standby memory module, analytic accounting and standby timing Executive Module; Described main memory module is positioned at main controlled node, and described standby memory module is positioned at standby control node; During described analytic accounting, Executive Module is positioned at main controlled node, and described standby timing Executive Module is positioned at standby control node;
The heartbeat message of described main monitoring sending module monitoring, transmission main controlled node, and receive the standby heartbeat response message of monitoring sending module and sending;
Described standby monitoring sending module, for monitoring the heartbeat message of standby control node, receives the heartbeat message that main monitoring sending module sends, and the standby control heartbeat message of node and the heartbeat message of main controlled node is sent to main monitoring sending module as heartbeat response message;
Described main memory module, standby memory module are all for receiving and storage cluster information;
During described analytic accounting, Executive Module receives the time of heartbeat response message and the time difference of current time for calculating main monitoring sending module the last time, and when the time difference is greater than 30 ~ 60s, ping arbitrates IP, if can not lead to arbitration IP by ping, then main controlled node is downgraded to standby control node;
Described standby timing Executive Module receives the time of heartbeat message and the time difference of current time for calculating standby monitoring sending module the last time, and when the time difference is greater than 30 ~ 60s, ping arbitrates IP, if can lead to arbitration IP by ping, then will upgrade to main controlled node for control node.
On the basis of technique scheme, described high-availability system also comprises for the mutual administration module of the heartbeat message between main monitoring sending module and standby monitoring sending module.
On the basis of technique scheme, described main memory module, standby memory module are GaleraMySQL database.
On the basis of technique scheme, described main monitoring sending module judge information in main memory module whether with the synchronizing information in standby memory module, and when not synchronous, restart the GaleraMySQL database of main controlled node, wait for the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node.
On the basis of technique scheme, described standby monitoring sending module judge information in main memory module whether with for the synchronizing information in memory module, and when not synchronous, restart the GaleraMySQL database of standby control node, make the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node.
On the basis of technique scheme, described high-availability system also comprises data simultaneous module, and the synchronizing information that described data simultaneous module is used between main memory module and standby memory module is mutual.
Based on a high availability method for the Controlling vertex active-standby switch of Galera, comprise the following steps:
Main controlled node is pressed predeterminated frequency and is sent heartbeat message to standby control node, sends heartbeat response message after standby control node receives heartbeat message to main controlled node;
Standby control node judges to meet the following conditions: a, the time not receiving heartbeat message exceed predetermined threshold value, b, can ping logical arbitration IP, then automatically make standby control node be promoted to main controlled node;
Main controlled node judges to meet the following conditions: c, the time not receiving heartbeat response message exceed predetermined threshold value, b, can not ping logical arbitration IP, then automatically make main controlled node be downgraded to standby control node.
On the basis of technique scheme, described main controlled node comprises main memory module, described standby control node comprises standby memory module, and described main memory module, standby memory module are GaleraMySQL database, and the information in two GaleraMySQL databases forces real-time synchronization.
On the basis of technique scheme, described method is further comprising the steps of:
Main monitoring sending module judges that the information in main memory module is asynchronous with the information in standby memory module, restarts the GaleraMySQL database of main controlled node, waits for the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node.
On the basis of technique scheme, described method is further comprising the steps of:
Standby monitoring sending module judges that the information in main memory module is asynchronous with the information in standby memory module, restart standby control node GaleraMySQL database and be connected to the GaleraMySQL database of main controlled node.
Compared with prior art, the invention has the advantages that:
(1) in the present invention based on the high-availability system of the Controlling vertex active-standby switch of Galera, comprise main memory module and standby memory module, and main memory module and standby memory module are GaleraMySQL database, this database has data strong consistency, each write operation on main controlled node must be wait data Replica just to return after standby control node, when ensureing that active and standby control occurs to be switched, identical for all data in memory module all with on main memory module, avoids loss of data.
(2) in the present invention based on the high availability method of the Controlling vertex active-standby switch of Galera, comprise the following steps: main controlled node sends heartbeat message by the frequency of 3 ~ 7s/ time to standby control node, standby control node judges that whether the time not receiving heartbeat message is more than 30 ~ 60s, and when more than 30 ~ 60s, automatically make standby control node be promoted to main controlled node.Because the intermittent a small amount of packet loss of network also can cause short-duration failure, and this fault can't affect the normal work of cluster, if now carry out active-standby switch, active-standby switch can be caused too frequent, the stability of influential system, just operate after time-out 30 ~ 60s in the present invention, active-standby switch frequently can be avoided, systematic comparison is stablized.
(3) in the present invention based on the high availability method of the Controlling vertex active-standby switch of Galera, comprise main monitoring sending module and judge that the information in main memory module is asynchronous with the information in standby memory module, restart the GaleraMySQL database of main controlled node, wait for the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node; Standby monitoring sending module judges that the information in main memory module is asynchronous with the information in standby memory module, restart standby control node GaleraMySQL database and be connected to the GaleraMySQL database of main controlled node.The state of two GaleraMySQL databases can be adjusted in real time, avoid two GaleraMySQL database factor data synchronizing networks disconnect and lock.
Accompanying drawing explanation
Fig. 1 is the structural representation based on the high-availability system of the Controlling vertex active-standby switch of Galera in the embodiment of the present invention;
Fig. 2 is the flow chart based on the high availability method of the Controlling vertex active-standby switch of Galera in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
Shown in Figure 1, the embodiment of the present invention provides a kind of high-availability system of the Controlling vertex active-standby switch based on Galera, and main controlled node and standby control node run simultaneously and share a floating IP address and an arbitration IP address.Galera be one based on the how main MySQL cluster synchronously copied.
This high-availability system comprises main monitoring sending module, for Executive Module, standby timing Executive Module, administration module and data simultaneous module when monitoring sending module, main memory module, standby memory module, analytic accounting.
Main monitoring sending module for monitoring, sending the heartbeat message of main controlled node, also for receiving the heartbeat response message that standby monitoring sending module sends; Main monitoring sending module also for judge information in main memory module whether with the synchronizing information in standby memory module, and when synchronous, restart the GaleraMySQL database of main controlled node, wait for the GaleraMySQL DataBase combining of standby control node.
For monitoring sending module for monitoring the heartbeat message of standby control node, and after the heartbeat message receiving the transmission of main monitoring sending module, the standby control heartbeat message of node and the heartbeat message of main controlled node are sent to main monitoring sending module as heartbeat response message; Standby monitoring sending module also for judge information in standby memory module whether with the synchronizing information in main memory module, and when synchronous, restart the GaleraMySQL database of standby control node, be connected to the GaleraMySQL database of main controlled node.
Main memory module is used for receiving and storage cluster information; Standby memory module is used for receiving and storage cluster information, and in the embodiment of the present invention, main memory module, standby memory module are GaleraMySQL database, this database has data strong consistency, each write operation on main controlled node must be wait data Replica just to return after standby control node, when ensureing that active and standby control occurs to be switched, identical for all data in memory module all with on main memory module, avoids loss of data.
During analytic accounting, Executive Module receives the time of heartbeat response message and the time difference of current time for calculating main monitoring sending module the last time, and when the time difference is greater than 30 ~ 60s, (Ping is an order under Windows, Unix and linux system to ping.Ping also belongs to a communication protocol, is a part for ICP/IP protocol, utilizes " ping " order can check whether network is communicated with) arbitration IP, if arbitration IP can not be led to by ping, then main controlled node is downgraded to standby control node.
Standby timing Executive Module receives the time of heartbeat message and the time difference of current time for calculating standby monitoring sending module the last time, and when the time difference is greater than 30 ~ 60s, ping arbitrates IP, if can lead to arbitration IP by ping, then will upgrade to main controlled node for control node.
The heartbeat message that administration module is used between main monitoring sending module and standby monitoring sending module is mutual; The synchronizing information that data simultaneous module is used between main memory module and standby memory module is mutual.
Based on a high availability method for the Controlling vertex active-standby switch of Galera, comprise the following steps:
Main controlled node sends heartbeat message by predeterminated frequency (in the present embodiment predeterminated frequency for be 3 ~ 7s/ time) to standby control node, sends heartbeat response message after standby control node receives heartbeat message to main controlled node.Standby control node judges have how long do not receive heartbeat message, if the above-mentioned time exceedes predetermined threshold value (in the present embodiment, predetermined threshold value is 30 ~ 60s), and can lead to arbitration IP by ping, then automatically make standby control node be promoted to main controlled node.Main controlled node judges to have how long not receive heartbeat response message, if the above-mentioned time exceedes predetermined threshold value (in the present embodiment, predetermined threshold value is 30 ~ 60s), and can not lead to arbitration IP by ping, then automatically make main controlled node be downgraded to standby control node.
Main controlled node comprises main memory module, and standby control node comprises standby memory module, and main memory module, standby memory module are GaleraMySQL database, and the information in two GaleraMySQL databases forces real-time synchronization.
And when main monitoring sending module judges that information in main memory module is with asynchronous for the information in memory module, restart the GaleraMySQL database of main controlled node, wait for the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node.
Meanwhile, the information judged in main memory module when standby monitoring sending module is asynchronous with the information in standby memory module, restart standby control node GaleraMySQL database and be connected to the GaleraMySQL database of main controlled node.
Below, by an embodiment, method of the present invention is described in detail.
Shown in Figure 2, definition data center comprises Controlling vertex A, Controlling vertex B, data sync network, supervising the network, gateway device and some computing nodes, and Controlling vertex A, Controlling vertex B are connected to data sync network and supervising the network; Gateway device, all computing nodes are all connected with Controlling vertex A, Controlling vertex B by supervising the network.
Steps of the method are:
S1, the IP of 2 different sub-networks is set on Controlling vertex A, B: data sync network and supervising the network respectively, as: the data sync network IP of Controlling vertex A is 172.16.0.2/24, supervising the network IP is 192.168.0.2/24, the data sync network IP of Controlling vertex B is 172.16.0.3/24, supervising the network IP is 192.168.0.3/24, proceeds to step S2.
S2, arrange Floating IP address and arbitration IP, and Floating IP address is all identical with supervising the network with the address of arbitration IP, and if Floating IP address is 192.168.0.4/24, arbitration IP is 192.168.0.1, proceeds to step S3.
S3, fault threshold is set, in the present embodiment, fault threshold is 30 ~ 60s, for after discovery fault, postpones 30 ~ 60s and judges that this fault is as true fault, because the intermittent a small amount of packet loss of network also can cause short-duration failure, and this fault can't affect the normal work of cluster, if now carry out active-standby switch, active-standby switch can be caused too frequent, affect the stability of cloud computing, proceed to step S4.
S4, on 2 Controlling vertex, all arrange monitoring sending module, and arrange starting up and monitor sending module, the GaleraMySQL database positioning of monitoring sending module Monitoring Data synchronizing network, supervising the network and active and standby Controlling vertex, proceeds to step S5.
S5, start the monitoring sending module of Controlling vertex A, now Controlling vertex A is standby control state, the monitoring sending module of Controlling vertex A receives external node heartbeat message (heartbeat message comprises the state of a control of corresponding node) and passes through timing Executive Module (current is standby timing Executive Module) timing, if do not receive external node heartbeat message more than 30 ~ 60s, if arbitration IP can be led to by ping, promoting Controlling vertex A is main controlled node, now, Controlling vertex B is standby control node, Controlling vertex A sends heartbeat message according to the frequency by 3 ~ 7s/ time to Controlling vertex B, simultaneously, Floating IP address be arranged on supervising the network port and start main controlled node service, the monitoring sending module of Controlling vertex A detects and judges that whether the GaleraMySQL database of this node is synchronous with the GaleraMySQL database of Controlling vertex B, and to arrange this node when asynchronous be that the host node of Galera cluster restarts MySQL, wait for that the GaleraMySQL database of Controlling vertex B initiatively connects, proceed to step S6.
The monitoring sending module of S6, Controlling vertex B (being now standby control node) receives the heartbeat message of Controlling vertex A, and sending heartbeat response message to Controlling vertex A, heartbeat response message comprises the heartbeat message of Controlling vertex A and the heartbeat message of Controlling vertex B.
Simultaneously, the monitoring sending module of Controlling vertex B judges that whether the GaleraMySQL database of this node is synchronous with the GaleraMySQL database of Controlling vertex A, and arrange when asynchronous this node be Galera cluster restart MySQL from node, and be initiatively connected to the MySQL of Controlling vertex A, proceed to step S7.
S7, Controlling vertex A receive heartbeat response message, judge whether comprise major state information in this heartbeat response message, and the timing Executive Module (current is Executive Module during analytic accounting) of Controlling vertex A is reset when comprising major state information, enter normal active and standby control synchronous regime, send heartbeat message to Controlling vertex B, proceed to step S8.
Otherwise Executive Module carries out timing during the analytic accounting of Controlling vertex A, and the time more than 30 ~ 60s time, ping arbitrates IP, if can not ping logical arbitration IP, then A is become standby control node, proceeds to step S10.
If can ping logical arbitration IP, A still be main controlled node, and send heartbeat message to Controlling vertex B, proceed to step S6.
S8, Controlling vertex B receive the heartbeat message of Controlling vertex A, the timing Executive Module (current is standby timing Executive Module) of B calculates current time and the time difference receiving the heartbeat message that Controlling vertex A sends for the last time, when the above-mentioned time difference more than 30 ~ 60s time, proceed to step S9.
S9, be 0 by the timing Executive Module of Controlling vertex B (current is standby timing Executive Module) timing, if arbitration IP can be led to by ping, promoting Controlling vertex B is main controlled node, and periodically send heartbeat message to Controlling vertex A and receive heartbeat response message, Floating IP address is arranged on supervising the network interface, start Controlling vertex service, the monitoring sending module of Controlling vertex B detects and judges that whether the GaleraMySQL database of this node is synchronous with the GaleraMySQL database of Controlling vertex A, and to arrange this node when asynchronous be that the host node of Galera cluster restarts GaleraMySQL database, wait for that the GaleraMySQL database of Controlling vertex A initiatively connects, proceed to step S10.
S10, using Controlling vertex B as main controlled node, Controlling vertex A, as standby control node, repeats next cycle.
The present invention is not limited to above-mentioned execution mode, and for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications are also considered as within protection scope of the present invention.The content be not described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (10)

1. the high-availability system based on the Controlling vertex active-standby switch of Galera, comprise main controlled node and standby control node, it is characterized in that: described system also comprises main monitoring sending module, for Executive Module when monitoring sending module, main memory module, standby memory module, analytic accounting and standby timing Executive Module; Described main memory module is positioned at main controlled node, and described standby memory module is positioned at standby control node; During described analytic accounting, Executive Module is positioned at main controlled node, and described standby timing Executive Module is positioned at standby control node;
The heartbeat message of described main monitoring sending module monitoring, transmission main controlled node, and receive the standby heartbeat response message of monitoring sending module and sending;
Described standby monitoring sending module, for monitoring the heartbeat message of standby control node, receives the heartbeat message that main monitoring sending module sends, and the standby control heartbeat message of node and the heartbeat message of main controlled node is sent to main monitoring sending module as heartbeat response message;
Described main memory module, standby memory module are all for receiving and storage cluster information;
During described analytic accounting, Executive Module receives the time of heartbeat response message and the time difference of current time for calculating main monitoring sending module the last time, and when the time difference is greater than 30 ~ 60s, ping arbitrates IP, if can not lead to arbitration IP by ping, then main controlled node is downgraded to standby control node;
Described standby timing Executive Module receives the time of heartbeat message and the time difference of current time for calculating standby monitoring sending module the last time, and when the time difference is greater than 30 ~ 60s, ping arbitrates IP, if can lead to arbitration IP by ping, then will upgrade to main controlled node for control node.
2. the high-availability system of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 1, is characterized in that: described high-availability system also comprises for the mutual administration module of the heartbeat message between main monitoring sending module and standby monitoring sending module.
3. the high-availability system of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 1, is characterized in that: described main memory module, standby memory module are GaleraMySQL database.
4. the high-availability system of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 1, it is characterized in that: described main monitoring sending module judge information in main memory module whether with the synchronizing information in standby memory module, and when not synchronous, restart the GaleraMySQL database of main controlled node, wait for the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node.
5. the high-availability system of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 4, it is characterized in that: described standby monitoring sending module judge information in main memory module whether with for the synchronizing information in memory module, and when not synchronous, restart the GaleraMySQL database of standby control node, make the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node.
6. the high-availability system of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 5, it is characterized in that: described high-availability system also comprises data simultaneous module, the synchronizing information that described data simultaneous module is used between main memory module and standby memory module is mutual.
7., based on a high availability method for the Controlling vertex active-standby switch of Galera, it is characterized in that: comprise the following steps:
Main controlled node is pressed predeterminated frequency and is sent heartbeat message to standby control node, sends heartbeat response message after standby control node receives heartbeat message to main controlled node;
Standby control node judges to meet the following conditions: a, the time not receiving heartbeat message exceed predetermined threshold value, b, can ping logical arbitration IP, then automatically make standby control node be promoted to main controlled node;
Main controlled node judges to meet the following conditions: c, the time not receiving heartbeat response message exceed predetermined threshold value, b, can not ping logical arbitration IP, then automatically make main controlled node be downgraded to standby control node.
8. the high availability method of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 7, it is characterized in that: described main controlled node comprises main memory module, described standby control node comprises standby memory module, described main memory module, standby memory module are GaleraMySQL database, and the information in two GaleraMySQL databases forces real-time synchronization.
9. the high availability method of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 8, is characterized in that: described method is further comprising the steps of:
Main monitoring sending module judges that the information in main memory module is asynchronous with the information in standby memory module, restarts the GaleraMySQL database of main controlled node, waits for the GaleraMySQL database of GaleraMySQL DataBase combining to main controlled node of standby control node.
10. the high availability method of a kind of Controlling vertex active-standby switch based on Galera as claimed in claim 7, is characterized in that: described method is further comprising the steps of:
Standby monitoring sending module judges that the information in main memory module is asynchronous with the information in standby memory module, restart standby control node GaleraMySQL database and be connected to the GaleraMySQL database of main controlled node.
CN201510775862.6A 2015-11-12 2015-11-12 A kind of high availability method and system of the control node active-standby switch based on Galera Active CN105471622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510775862.6A CN105471622B (en) 2015-11-12 2015-11-12 A kind of high availability method and system of the control node active-standby switch based on Galera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510775862.6A CN105471622B (en) 2015-11-12 2015-11-12 A kind of high availability method and system of the control node active-standby switch based on Galera

Publications (2)

Publication Number Publication Date
CN105471622A true CN105471622A (en) 2016-04-06
CN105471622B CN105471622B (en) 2019-03-01

Family

ID=55608936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510775862.6A Active CN105471622B (en) 2015-11-12 2015-11-12 A kind of high availability method and system of the control node active-standby switch based on Galera

Country Status (1)

Country Link
CN (1) CN105471622B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407042A (en) * 2016-09-06 2017-02-15 深圳市华成峰数据技术有限公司 Solution system and method for disaster recovery across Internet data centers (IDCs) based on open-source database
CN106648997A (en) * 2016-12-23 2017-05-10 北京航天测控技术有限公司 Master-salve switching method based on non-real-time operating system
CN107819605A (en) * 2016-09-14 2018-03-20 北京百度网讯科技有限公司 Method and apparatus for the switching server in server cluster
CN108009045A (en) * 2016-10-31 2018-05-08 杭州海康威视数字技术股份有限公司 A kind of master/slave data storehouse fault handling method and device
CN110022228A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 Server switching method, device, system and readable storage medium storing program for executing
CN110266795A (en) * 2019-06-20 2019-09-20 上海思询信息科技有限公司 One kind being based on Openstack platform courses method
CN110789569A (en) * 2019-10-17 2020-02-14 北京全路通信信号研究设计院集团有限公司 Column control DMI data redundancy control method and system
CN110795280A (en) * 2019-09-11 2020-02-14 杭州衣科信息技术有限公司 Remote double-activity disaster recovery system based on mysql asynchronous and bidirectional
CN110879718A (en) * 2019-11-15 2020-03-13 北京浪潮数据技术有限公司 maridb upgrading method and device, electronic equipment and storage medium
CN112506457A (en) * 2020-12-03 2021-03-16 威创集团股份有限公司 Seamless realization method and system for LED spliced wall system, storage medium and electronic equipment
CN112835749A (en) * 2021-02-24 2021-05-25 中国人民解放军32039部队 Automatic software switching control method for dual-computer hot standby disaster recovery
CN114466391A (en) * 2022-03-21 2022-05-10 中国电信股份有限公司 Network element equipment state updating method and device, storage medium and electronic equipment
CN116743551A (en) * 2022-09-30 2023-09-12 腾讯云计算(北京)有限责任公司 Main-standby switching method and device of equipment gateway and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231681A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 High availability cluster computer system and fault treatment method thereof
CN102868754A (en) * 2012-09-26 2013-01-09 北京联创信安科技有限公司 High-availability method, node device and system for achieving cluster storage
CN104660441A (en) * 2013-11-25 2015-05-27 北京信威通信技术股份有限公司 Method, device and system for achieving high reliability of server
CN104679907A (en) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 Realization method and system for high-availability and high-performance database cluster

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231681A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 High availability cluster computer system and fault treatment method thereof
CN102868754A (en) * 2012-09-26 2013-01-09 北京联创信安科技有限公司 High-availability method, node device and system for achieving cluster storage
CN104660441A (en) * 2013-11-25 2015-05-27 北京信威通信技术股份有限公司 Method, device and system for achieving high reliability of server
CN104679907A (en) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 Realization method and system for high-availability and high-performance database cluster

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106407042A (en) * 2016-09-06 2017-02-15 深圳市华成峰数据技术有限公司 Solution system and method for disaster recovery across Internet data centers (IDCs) based on open-source database
CN107819605A (en) * 2016-09-14 2018-03-20 北京百度网讯科技有限公司 Method and apparatus for the switching server in server cluster
CN108009045A (en) * 2016-10-31 2018-05-08 杭州海康威视数字技术股份有限公司 A kind of master/slave data storehouse fault handling method and device
CN106648997A (en) * 2016-12-23 2017-05-10 北京航天测控技术有限公司 Master-salve switching method based on non-real-time operating system
CN110022228A (en) * 2019-03-08 2019-07-16 视联动力信息技术股份有限公司 Server switching method, device, system and readable storage medium storing program for executing
CN110266795A (en) * 2019-06-20 2019-09-20 上海思询信息科技有限公司 One kind being based on Openstack platform courses method
CN110795280A (en) * 2019-09-11 2020-02-14 杭州衣科信息技术有限公司 Remote double-activity disaster recovery system based on mysql asynchronous and bidirectional
CN110789569A (en) * 2019-10-17 2020-02-14 北京全路通信信号研究设计院集团有限公司 Column control DMI data redundancy control method and system
CN110879718A (en) * 2019-11-15 2020-03-13 北京浪潮数据技术有限公司 maridb upgrading method and device, electronic equipment and storage medium
CN112506457A (en) * 2020-12-03 2021-03-16 威创集团股份有限公司 Seamless realization method and system for LED spliced wall system, storage medium and electronic equipment
CN112835749A (en) * 2021-02-24 2021-05-25 中国人民解放军32039部队 Automatic software switching control method for dual-computer hot standby disaster recovery
CN114466391A (en) * 2022-03-21 2022-05-10 中国电信股份有限公司 Network element equipment state updating method and device, storage medium and electronic equipment
CN116743551A (en) * 2022-09-30 2023-09-12 腾讯云计算(北京)有限责任公司 Main-standby switching method and device of equipment gateway and computer readable storage medium

Also Published As

Publication number Publication date
CN105471622B (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN105471622A (en) High-availability method and system for main/standby control node switching based on Galera
CN103744809B (en) Vehicle information management system double hot standby method based on VRRP
CN103199972B (en) The two-node cluster hot backup changing method realized based on SOA, RS485 bus and hot backup system
US20170339005A1 (en) Method and Device for Processing Failure in at Least One Distributed Cluster, and System
US11416359B2 (en) Hot standby method, apparatus, and system
WO2017067484A1 (en) Virtualization data center scheduling system and method
CN106375342A (en) Zookeeper-technology-based system cluster method and system
CN101594383B (en) Method for monitoring service and status of controllers of double-controller storage system
CN109245926B (en) Intelligent network card, intelligent network card system and control method
CN102257759B (en) Master-standby switching method, system control unit and communication system
CN103036719A (en) Cross-regional service disaster method and device based on main cluster servers
CN102394914A (en) Cluster brain-split processing method and device
CN103532753A (en) Double-computer hot standby method based on memory page replacement synchronization
CN108173959A (en) A kind of cluster storage system
US9811432B2 (en) Systems and methods for resynchronizing mirroring partners in a storage system
CN103986789A (en) Method for realizing dual redundant of NFS (network file system) nodes in HADOOP HA (home address) cluster based on NFS
CN106850255A (en) A kind of implementation method of multi-computer back-up
CN108173971A (en) A kind of MooseFS high availability methods and system based on active-standby switch
CN107071189B (en) Connection method of communication equipment physical interface
CN107357800A (en) A kind of database High Availabitity zero loses solution method
CN110377487A (en) A kind of method and device handling high-availability cluster fissure
CN102487332B (en) Fault processing method, apparatus thereof and system thereof
CN104052799B (en) A kind of method that High Availabitity storage is realized using resource ring
CN107005434B (en) Method, device and equipment for synchronizing Virtual Network Function (VNF) state
CN109302319B (en) Message pool distributed cluster and management method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 430000 Hubei city of Wuhan Province, East Lake New Technology Development Zone, Optics Valley Road No. 465 building 17 room 1701 creative

Applicant after: WUHAN OS-EASY CLOUD COMPUTING CO., LTD.

Address before: 430074 Hubei city of Wuhan Province, East Lake New Technology Development Zone, Optics Valley Road No. 465 building 17 room 1701 creative

Applicant before: WUHAN OS-EASY CLOUD COMPUTING CO., LTD.

COR Change of bibliographic data
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant