Virtual IP address management method and device

A technology of IP address and management method, applied in the field of virtual IP address management method and device, can solve problems such as address conflict, affecting client access, etc., and achieve the effect of ensuring high availability switching

Inactive Publication Date: 2022-03-01
NEW H3C BIG DATA TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

As a result, virtual IP addresses coexist on two nodes, resulting in address conflicts and affecting client access

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
  • Virtual IP address management method and device
  • Virtual IP address management method and device
  • Virtual IP address management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] image 3 It is a flow chart of an embodiment of a virtual IP address management method according to an exemplary embodiment of the present invention. In the embodiment of the present application, etcd service is pre-deployed in the cluster, and the etcd service uses the raft algorithm to ensure that key-value pairs are in Strong consistency in the cluster means that the key-value pairs stored in the etcd service deployed on each node in the cluster are always consistent. This method can be applied to any node in the cluster, such as image 3 As shown, the virtual IP address management method includes the following steps:

[0047] Step 101: Periodically perform a write operation to the same key in the etcd service deployed in the cluster.

[0048] That is to say, each node in the cluster will periodically try to record the value recorded by its own node to the same key in the etcd service.

[0049] It should be noted that each node will pre-record the value of the sam...

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 virtual IP address management method and device. The method comprises the steps that any node in a cluster periodically executes write-in operation on the same key of an etcd service deployed in the cluster; if the write-in operation is executed successfully, a virtual IP address is set at the node; and if the write-in operation fails to be executed, the node clears the virtual IP address. An etcd service is deployed in a cluster, each node executes write-in operation on the same key of the etcd service, and the etcd service has the characteristic of ensuring that the key and a value are consistent in the cluster, so that only one node successfully writes in at the same moment, a virtual IP address is set for the node with successful write-in, and the virtual IP address is automatically cleared for the node with failed write-in. Therefore, the high-availability switching of the virtual IP is ensured. According to the technical scheme of the invention, even if the node has a network isolation or fault problem, the virtual IP address can be automatically cleared due to the execution failure of the node write-in operation, so that the problem that the virtual IP address coexists on a plurality of nodes due to the network isolation problem and the like can be avoided.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a virtual IP address management method and device. Background technique [0002] With the growth of business scale, more and more applications are deployed on the cluster in consideration of capacity and scalability. When the client accesses the application from the outside, a highly available IP address (virtual IP address) is used to implement the application in the cluster Access. The virtual IP address will not be bound to a single node of the cluster. When a node fails, the virtual IP address will be migrated to other normal nodes, so that external clients still use the virtual IP address to access the application. [0003] At present, there are active and standby nodes in the cluster, and the active node carries a virtual IP address, and the heartbeat information is maintained between the active and standby nodes based on VRRP (Virtual Router Redundancy Protocol, Virtual...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L61/5046H04L61/5053
Inventor 周子涵
Owner NEW H3C BIG DATA TECH CO LTD
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