Method and system for realizing high availability of virtual network address based on ETCD

A technology of virtual network address and implementation method, applied in the field of high availability implementation method and system of virtual network address, can solve problems such as research on high availability of non-virtual network address, achieve the possibility of reduction, rapid response, simple deployment, operation and maintenance. Effect

Pending Publication Date: 2022-01-18
湖南麒麟信安科技股份有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the prior art, there is no relevant research on realizing high availability of virtual network addresses based on ETCD

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and system for realizing high availability of virtual network address based on ETCD
  • Method and system for realizing high availability of virtual network address based on ETCD

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0034] In the following description, use of suffixes such as 'module', 'part' or 'unit' for denoting elements is only for facilitating description of the present invention and has no specific meaning by itself. Therefore, 'module', 'part' or 'unit' may be used in combination.

[0035] Please refer to Figure 1~2 In order to achieve the above purpose, an embodiment of the present invention provides a method and system for realizing high availability of virtual network addresses based on ETCD.

[0036] Wherein, the realization method of the high availability of the virtual network address based on ETCD comprises steps:

[0037] Step S0, configure each service node to connect to the same ETCD distributed database cluster. Specifically, ETCD uses the Raft algorithm to maintain strong data consistency, and the stored da...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and a system for realizing high availability of a virtual network address based on ETCD, and the method comprises the steps: enabling each service node in a cluster system to access a same ETCD distributed database cluster, enabling each service node to obtain a distributed lock through competition, enabling the service node which successfully obtains the distributed lock to serve as a main node, creating a specific key with a lease, writing the specific key into main node information, carrying out regular lease renewing on the lease of the specific key so as to keep the state of the main node, and meanwhile, configuring a VIP to a network card of the service node; the slave nodes monitoring the specific key created by the master node based on the Watch mechanism of the ETCD, when the specific key fails due to the failure of the master node, the ETCD informing the slave nodes, new master node election being triggered, completing master node switching, and therefore VIP high availability is achieved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to an ETCD-based method and system for realizing high availability of virtual network addresses. Background technique [0002] A virtual network address (VIP) is an IP address that is not bound to a specific computer or a specific network card of a specific computer. It can be dynamically mapped to different computers or computer network cards in the internal network, and is generally used to achieve connection redundancy. , which is highly available. [0003] At present, the realization of high availability of VIP is mostly based on traditional cluster service software such as keepalived or pacemaker. more complicated. [0004] ETCD is a highly available and strongly consistent distributed key-value database. It adopts the Raft consensus algorithm and is mostly used for reliable and fast persistent storage and access of key data. Reliable distributed data can be realized throug...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): H04L61/5007H04L67/1034
CPCH04L67/1034
Inventor 刘振宇龚溪东彭勇申锟铠刘文清杨涛
Owner 湖南麒麟信安科技股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products