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

Distributed election method based on Kubernetes

A distributed, space-divided technology, applied in the field of Kubernetes-based distributed elections, can solve problems affecting system efficiency and service unavailability

Active Publication Date: 2021-04-16
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, during the period of election and restart of business logic, the entire service is unavailable, seriously affecting system efficiency

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
  • Distributed election method based on Kubernetes
  • Distributed election method based on Kubernetes
  • Distributed election method based on Kubernetes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

[0022] The controller mentioned in the present invention mainly refers to a component used to process business logic. The listener mainly refers to the component that monitors the changes of resources and data in the Kubernetes cluster and provides data to the controller.

[0023] A bucket mainly refers to a lease type that exists in Kubernetes. It is used to create a resource with a lease, that is, a lease resource can be called a bucket.

[0024] The present invention provides a distributed election method based on Kubernetes, which uses a monitor to monitor resources in real time, divides the space for resource elections according to the number of controllers in the program, an...

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 distributed election method based on Kubernetes, and relates to the technical field of distributed management. A monitor is used for monitoring resources in real time, resource election space division and resource locks associated with lease resources are carried out according to the number of controllers in a program, and each controller competes for the controller election of the resource lock corresponding to the lease resources as a main controller according to the associated resource lock corresponding to the lease resources.

Description

technical field [0001] The invention discloses a method, which relates to the technical field of distributed management, in particular to a distributed election method based on Kubernetes. Background technique [0002] In the existing Kubernetes leader election process, the logic of all controllers is encapsulated into functions. After the program obtains the resource lock, that is, the lease resource in Kubernetes, the function is called to start the program's controller and listener. If the program does not acquire the resource lock, it means that the program is not the leader but a candidate, then the program will not start its own controller and listener, but will always retry the operation of acquiring the resource lock. In the entire election model, the leader of the system still has a single point of failure (SPOF). Therefore, in order to restore the service in a short time and reduce the impact on the business, it is necessary to run multiple copies of the program. W...

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): G06F9/455G06F9/48G06F9/50
Inventor 陈正伟颜亮张东海王刚高传集
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
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