Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Service clustering method and system based on ZooKeeper technology

A business and cluster technology, applied in transmission systems, digital transmission systems, electrical components, etc., can solve problems such as business interruption and long service interruption time, and achieve the effect of avoiding business terminals and business performance degradation

Active Publication Date: 2011-02-16
山东中创软件商用中间件股份有限公司
View PDF4 Cites 61 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In view of this, the present invention provides a business node clustering method and system based on ZooKeeper technology, to solve the business node clustering method in the prior art, the business interruption time is relatively long, and when the backup node fails, the business is interrupted. Problem, the technical solution is as follows:

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
  • Service clustering method and system based on ZooKeeper technology
  • Service clustering method and system based on ZooKeeper technology
  • Service clustering method and system based on ZooKeeper technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] Firstly, the ZooKeeper technology-based service node clustering method provided by the embodiment of the present invention will be described.

[0044] The business node cluster method based on ZooKeeper technology that the embodiment of the present invention provides utilizes the ZooKeeper server to realize the business node cluster, and the method includes:

[0045] Obtain the user's business execution request;

[0046] Read the business information of the business from the request, and back up the business information at all business nodes of the ZooKeeper server;

[0047] Select an optimal node from all the service nodes, as the main service node to provide business services for users, and other service nodes as backup service nodes, wherein, the service data of the backup service nodes follows the business data of the main service nodes updated to update;

[0048] Start a listener to monitor the running status of the active service node;

[0049] When the operati...

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 service node clustering method based on the ZooKeeper technology. According to the method, a ZooKeeper server is utilized to realize service node clustering, comprising the following steps: acquiring service executive requests from subscribers; reading service information of service from the requests and backuping all service nodes of the service information in the ZooKeeper server; selecting an optimal node from all the service nodes as the main service node to provide business service for the subscribers and taking other service nodes as backup service nodes, wherein service data of the backup service nodes are updated with the updating of the service data of the main service mode; initiating a monitor to monitor the operating status of the main service node; and when the operating status of the main service node is out of order, selecting an optimal node from the backup service nodes as the current service node to provide the business service for the subscribers. The method and the system of the invention shorten interrupt time of service switch and reduce possibility of service termination.

Description

technical field [0001] The invention relates to the technical field of distributed system clusters, in particular to a method and system for clustering business nodes based on ZooKeeper technology. Background technique [0002] A distributed system is a software system built on the network. Because of the characteristics of software, a distributed system has a high degree of cohesion and transparency. In a distributed system, a group of independent computers presents a unified whole to the user. The system has a variety of common physical and logical resources, which can dynamically allocate tasks. The scattered physical and logical resources realize information through the computer network. exchange. [0003] Because of the huge advantages of distributed systems, its application in the Internet has become more and more extensive in recent years. However, each service node in the distributed system relies on the Internet to communicate with each other, and there will be so...

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): H04L12/24H04L29/08
Inventor 李景泽刘耀
Owner 山东中创软件商用中间件股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products