Zookeeper-based cloud platform service hot backup method

A hot backup, cloud platform technology, applied in the field of distributed services, can solve problems such as service interruption, and achieve the effect of reducing the time of service interruption

Inactive Publication Date: 2013-07-03
OPZOON TECH
View PDF3 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The purpose of the present invention is to provide a method for utilizing zookeeper to realize servi

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
  • Zookeeper-based cloud platform service hot backup method
  • Zookeeper-based cloud platform service hot backup method
  • Zookeeper-based cloud platform service hot backup method

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0024] The specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and embodiments.

[0025] The hot backup method for services on the cloud platform proposed by the present invention utilizes the distributed mechanism of zookeeper and the characteristics of the temporary sequence znode, that is, the principle of distributed locks:

[0026] First define a znode path. For the convenience of description, the znode path is recorded as / lock here. Each service application creates a znode with Ephemeral and Sequence attributes in / lock, that is, a temporary node whose number is self-increasing, and its znode will have an automatically incremented number, which is directly represented by the znode. For example, the nodes created by service A and service B for the first time are lock-001 and lock-002 respectively; after service A fails and restarts again, the node created by service A may become lock-003 when...

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 zookeeper-based cloud platform service hot backup method. The method comprises the following steps that: a plurality of same services request a zookeeper service to create temporary sequence nodes in a same znode path; the zookeeper service receives a request to respectively create nodes for each service, and allocate serial numbers to all nodes in a monotone increasing sequence; a plurality of services respectively judge whether the serial number of the nodes created by own request is minimal in the same znode path; if so, the service is a master service, and otherwise, the service is a backup service; when the master service fails, the zookeeper service deletes the nodes created by the request of the master service from the same znode path, and the backup service judges whether the serial number of the nodes created by the own request is minimal in the same znode path; and if so, the service is a new master service. According to the method provided by the invention, after the master service fails, the backup service can generate the new master service, and the seamless switching is realized, so that the time of service interruption is shortened.

Description

technical field [0001] The invention relates to the technical field of distributed services, in particular to a method for hot backup of services on a zookeeper-based cloud platform. Background technique [0002] The so-called hot backup of a service means that a service has a main service process and a backup service process. Once the main service process fails or is shut down abnormally, the backup service process will take over all the affairs of the original main service process, so that the service can still be used externally. Provide services. Some services are also designed so that once the original primary service restarts, the backup service will return all transactions to the primary service. [0003] In the cluster, the failure of the service will lead to the interruption of the current service, which will bring risks and losses to the cluster. In order to ensure the reliability of service operation, the current cloud platform has a hot backup mechanism for eac...

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): H04L12/24H04L29/08
Inventor 王鹏
Owner OPZOON TECH
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