CN109873759A - It is a kind of based on the intelligent double-machine standby technology for singly leading equipment - Google Patents

It is a kind of based on the intelligent double-machine standby technology for singly leading equipment Download PDF

Info

Publication number
CN109873759A
CN109873759A CN201711245454.5A CN201711245454A CN109873759A CN 109873759 A CN109873759 A CN 109873759A CN 201711245454 A CN201711245454 A CN 201711245454A CN 109873759 A CN109873759 A CN 109873759A
Authority
CN
China
Prior art keywords
vrrp
keepalived
singly
node cluster
intelligent double
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
CN201711245454.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.)
Beijing Jingsui Blueshield Information Safe Technology Ltd
Original Assignee
Beijing Jingsui Blueshield Information Safe Technology 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 Beijing Jingsui Blueshield Information Safe Technology Ltd filed Critical Beijing Jingsui Blueshield Information Safe Technology Ltd
Priority to CN201711245454.5A priority Critical patent/CN109873759A/en
Publication of CN109873759A publication Critical patent/CN109873759A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of based on the intelligent double-machine standby technology for singly leading equipment, which realizes the active switching of two-node cluster hot backup and place an order the transmission data pattern led in this two-node cluster hot backup, and single guiding systems is allowed to become efficient and stablize.

Description

It is a kind of based on the intelligent double-machine standby technology for singly leading equipment
Technical field
It is the present invention relates to a kind of Internet communication technology field, in particular to a kind of based on the intelligent dual-locomotive heat for singly leading equipment Standby technology.
Background technique
This two-node cluster hot backup for singly leading equipment is based on realizing on the basis of keepalived technology.Keepalived is collection A service software for guaranteeing cluster High Availabitity in group's management, is functionally similar to heartbeat, for preventing Single Point of Faliure.
Keepalived is the vrrp full name virtual router redundancy using vrrp agreement as optimized integration Protocol, i.e. Virtual Router Redundacy Protocol.Virtual Router Redundacy Protocol, it is believed that be the association for realizing router High Availabitity The router that N platform provides identical function is formed a router group by view, there is master and multiple in this group the inside There is a vip (default route for other machines in local area network where the router that service is externally provided above backup, master For the vip), master can send out multicast, be considered as master when backup can not receive vrrp packet and break down, at this moment just need root Backup is selected to work as master according to the priority of vrrp.In this case the High Availabitity of equipment is ensured that.
Mainly there are three modules by keepalived, are core, check and vrrp respectively.Core module is keepalived Core, be responsible for the starting of host process, maintenance and global configuration file load and parsing.Check is responsible for health examination, including Common various test modes.Vrrp module realizes vrrp agreement.Using keepalived feature, we realize list Active and standby two-node cluster hot backup is led, effectively prevent single machine out of joint and makes service stopping.
Summary of the invention
In order to overcome the deficiencies of the prior art, the two-node cluster hot backup that list of the present invention is led is based on the basis of keepalived technology It realizes.Keepalived is the vrrp full name virtual router redundancy using vrrp agreement as optimized integration Protocol, i.e. Virtual Router Redundacy Protocol.Virtual Router Redundacy Protocol, it is believed that be the association for realizing router High Availabitity The router that N platform provides identical function is formed a router group by view, there is master and multiple in this group the inside There is a vip (default route for other machines in local area network where the router that service is externally provided above backup, master For the vip), master can send out multicast, be considered as master when backup can not receive vrrp packet and break down, at this moment just need root Backup is selected to work as master according to the priority of vrrp.In this case the High Availabitity of equipment is ensured that.
Mainly there are three modules by keepalived, are core, check and vrrp respectively.Core module is keepalived Core, be responsible for the starting of host process, maintenance and global configuration file load and parsing.Check is responsible for health examination, including Common various test modes.Vrrp module realizes vrrp agreement.Using keepalived feature, we realize list Active and standby two-node cluster hot backup is led, effectively prevent single machine out of joint and makes service stopping.
Invention technical solution bring the utility model has the advantages that
When the present invention solves single machine failure, make the problem for servicing cisco unity malfunction, while also solving because of list The problem led one-way transmission and cause the transmission of two-node cluster hot backup data difficult.Especially when singly leading inner end failure, data transmission How from the host that the standby host of outer end passes to inner end, also well solve here.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 Fig. 2 is schematic diagram of the invention;
Fig. 3 Fig. 4 is that data transmit schematic diagram;
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Specific embodiment:
Keepalived realizes that the two-node cluster hot backup singly led mainly configures a configuration file keepalived.conf, the inside Mainly include following configuring area, be respectively global_defs, static_ipaddress, static_route, Vrrp_script, vrrp_instance and virtual_server;
Whom sends out mail notification to when notfication_email failure occurs;
Notification_email_from circular mail is issued from which address;
The address smtp of smpt_server circular mail;
The time-out time of smtp_connect_timeout connection smtp server;
The brief note string that router_id identifies this node is usually hostname, and when failure occurs, mail notification can be used.
As above, vrrp_sync_group, which is used, defines vrrp_intance group, so that this group member keeps strokes. Its function: two vrrp_instance belong to a vrrp_rsync_group, then one of vrrp_instance It breaks down when switching, another vrrp_instance also can and then switching (even if there is no failures by this instance);
Vrrp_instance, which is used to define, externally provides the region vip and its association attributes of service;
Notify_master/backup respectively indicates script performed when being switched to active and standby;
Notify indicates call the script when switching of one state of task;
State can be master or backup, and not excessive other nodes keepalived can be by priority when starting Bigger node election is master, therefore this is in fact without substantive purposes;
The network interface card of the intrinsic ip of interface node, with sending out vrrp packet;
Virtual_router_id value is between 0-255, for distinguishing the vrrp multicast of multiple instance;
The node that nopreempt allows a priority relatively low is as master, even if there is priority higher Node starting.Nopreempt first must be just come into force on the node that state is backup (because being that buckup node determines Whether become masterr's);The function that its secondary realization is similar to closing auto failback is needed all nodes State is both configured to backup, or the ratio backup of the priority setting of master node is low.By all nodes State is arranged to backup and plus nopreempt option, thus completes autofailback function, when thinking hand It moves and only needs to remove the nopreempt option of the node when certain node is switched to master and priority is changed to ratio Other nodes are big, then reload configuration file.
It is mainly outer end and outer end composition two-node cluster hot backup with reference to the mono- two-node cluster hot backup led of Fig. 2, inner end and inner end form two-shipper It is hot standby, while active and standby carry out active switching (the actively shell foot of switching singly led can be able to achieve using the characteristic of nopreempt This is as follows);
When the interior end system of host breaks down, the active and standby of inner end switches, while vip will be moved from the host of inner end Move onto the standby host of inner end, while the data of outer end main frame got will pass on the standby host of outer end, outer end standby host again Data are transferred on the standby host of inner end, so that the transmission of data is no longer pass through the interior end main frame to break down, referring to attached drawing 3.
When the outer end system of host breaks down, the active and standby of outer end switches, while vip will be moved from the host of outer end Move onto the standby host of outer end, due to outer end can with photos and sending messages to inner end, so the standby host of outer end can send out message to the standby host of inner end, Standby host issues the host of inner end again, makes interior end main frame that active-standby switch actively occur, while vip will be moved into standby host, at this moment will be by Standby host executes task, and the standby host of outer end obtains data, and to be transmitted to inner end again standby, completes data transmission while causing the device to normal work Make, referring to attached drawing 4.
It is provided for the embodiments of the invention and a kind of has been carried out in detail based on the intelligent double-machine standby technology for singly leading equipment above Thin to introduce, used herein a specific example illustrates the principle and implementation of the invention, and above embodiments are said It is bright to be merely used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, foundation Thought of the invention, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification is not It is interpreted as limitation of the present invention.

Claims (4)

1. a kind of based on the intelligent double-machine standby technology for singly leading equipment, which is based on realizing on the basis of keepalived technology , it is core, check and vrrp respectively that mainly there are three modules by keepalived.
2. according to claim 1 a kind of based on the intelligent double-machine standby technology for singly leading equipment, which is characterized in that core mould Block is the core of keepalived, is responsible for starting, maintenance and the global configuration file load and parsing of host process;Check is negative Health examination is blamed, including common various test modes;Vrrp module realizes vrrp agreement.
3. according to claim 1 a kind of based on the intelligent double-machine standby technology for singly leading equipment, it is characterised in that Keepalived realizes that the two-node cluster hot backup singly led mainly configures a configuration file keepalived.conf, and the inside mainly includes Following configuring area, be respectively global_defs, static_ipaddress, static_route, vrrp_script, Vrrp_instance and virtual_server.
4. according to claim 1 a kind of based on the intelligent double-machine standby technology for singly leading equipment, which is characterized in that singly lead Two-node cluster hot backup is mainly outer end and outer end composition two-node cluster hot backup, and inner end and inner end form two-node cluster hot backup, while utilizing nopreempt Characteristic can be able to achieve the active and standby carry out active switching singly led.
CN201711245454.5A 2017-12-01 2017-12-01 It is a kind of based on the intelligent double-machine standby technology for singly leading equipment Pending CN109873759A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711245454.5A CN109873759A (en) 2017-12-01 2017-12-01 It is a kind of based on the intelligent double-machine standby technology for singly leading equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711245454.5A CN109873759A (en) 2017-12-01 2017-12-01 It is a kind of based on the intelligent double-machine standby technology for singly leading equipment

Publications (1)

Publication Number Publication Date
CN109873759A true CN109873759A (en) 2019-06-11

Family

ID=66914573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711245454.5A Pending CN109873759A (en) 2017-12-01 2017-12-01 It is a kind of based on the intelligent double-machine standby technology for singly leading equipment

Country Status (1)

Country Link
CN (1) CN109873759A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140321265A1 (en) * 2013-04-29 2014-10-30 Telefonaktiebolaget L M Ericsson (Publ) Fast traffic recovery in vrrp based routers
CN104765653A (en) * 2015-02-15 2015-07-08 杭州米加科技有限公司 Method for achieving database HA application through keepalived software
CN105959145A (en) * 2016-06-04 2016-09-21 广东中兴新支点技术有限公司 Method and system for parallel management server of high availability cluster

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140321265A1 (en) * 2013-04-29 2014-10-30 Telefonaktiebolaget L M Ericsson (Publ) Fast traffic recovery in vrrp based routers
CN104765653A (en) * 2015-02-15 2015-07-08 杭州米加科技有限公司 Method for achieving database HA application through keepalived software
CN105959145A (en) * 2016-06-04 2016-09-21 广东中兴新支点技术有限公司 Method and system for parallel management server of high availability cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪海洋等: "基于keepalived的高可用性应用研究", 《电子技术》 *

Similar Documents

Publication Publication Date Title
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
US9270524B2 (en) Method and device for LACP link switching and data transmission
EP2533475B1 (en) Method and system for host route reachability in packet transport network access ring
CN102098201B (en) Method for realizing L2TP user access backup and network system
CN102006189B (en) Primary access server determination method and device for dual-machine redundancy backup
KR101591102B1 (en) Method for router of virtual router redundancy protocol and communication system therefor
CN102075343B (en) An out-of-band management realization method, a system for the same and an out-of-band management switch
WO2009023996A1 (en) Method for implementing network interconnect via link aggregation
CN101060533B (en) A method, system and device for improving the reliability of VGMP protocol
CN105656645A (en) Decision making method and device for fault processing of stacking system
CN102130776A (en) Communication method and system
CN101197733A (en) Automatic detection method and device for network connectivity
CN110677282B (en) Hot backup method of distributed system and distributed system
CN101841432A (en) Port backup method, device and system for service access router
CN105306559A (en) Multi-partition message control system without central partition for regional power grid regulation and control system
WO2017024697A1 (en) Cross-network segment message forwarding method for dispatching automation system
CN102801632A (en) Unified electoral method of PIM-SM (Protocol Independent Multicast-Sparse Mode) designated router and IGMP (Internet Group Management Protocol) querier
CN103227725A (en) Method and device for dual-server backup of firewall
CN102447615A (en) Switching method and router
JP2010239279A (en) Communication apparatus and method thereof, and communication system and method thereof
EP2426855A1 (en) Address refresh method and system
CN104243199A (en) Data transmission method and protection device of packet transport network
CN101136838A (en) Bridge mode elastic grouping ring transannular bridge equipment redundancy protecting method
US20130142198A1 (en) Transmission device and interface device
US20230047971A1 (en) Packet transmission method and communication device

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: 20190611

RJ01 Rejection of invention patent application after publication