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

A redis master-slave cluster automatic deployment scheme based on kubernets

A cluster, master-slave technology, applied in transmission systems, electrical components, etc., can solve problems such as inability to achieve flexible deployment, and achieve the effect of ensuring the integrity of configuration parameters, flexibility, and separation

Active Publication Date: 2022-05-24
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] In the official Redis installation package provided by Helm, the configuration startup logic is all written in the dockfile, which cannot achieve the purpose of flexible deployment. However, this invention provides a Kubernetes-based Redis master-slave cluster automatic deployment solution, which places the deployment startup logic in configmap , so that the deployment of the Redis master-slave cluster does not depend on the image version, and at the same time of flexible expansion, it optimizes the startup logic and improves the high availability of the cluster

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
  • A redis master-slave cluster automatic deployment scheme based on kubernets
  • A redis master-slave cluster automatic deployment scheme based on kubernets
  • A redis master-slave cluster automatic deployment scheme based on kubernets

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The invention provides a Kubernetes-based master-slave cluster automatic deployment solution for Redis. The configuration file of redis is transferred into the Helm installation package by means of a file stream, and the Helm configuration and startup logic are deployed in the configmap,

[0032] In redis-server-statefulset.yaml, use initContainers to mount various startup scripts into the PV required by the container. Various startup scripts are written into the configmap through file streams, and initContainers start the startup through the command command. The script performs the configuration installation,

[0033] Deploy the master-slave node pod and sentinel node of redis in Kubernetes.

[0034] At the same time, a Kubernetes-based Redis corresponding to the above method is provided, which is to transfer the configuration file of redis into the Helm installation package through a file stream, and deploy the configuration and startup logic of Helm in the configmap....

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 Redis master-slave cluster automatic deployment scheme based on Kubernetes, and relates to the technical field of cluster deployment; the redis configuration file is transferred into the Helm installation package through the file flow mode, and the Helm configuration and startup logic are deployed in the configmap , in redis-server-statefulset.yaml, use initContainers to mount various startup scripts to the pv required by the container, and write various startup scripts to configmap through file streams, and initContainers to start through the command command The startup script executes the configuration and installation, and deploys the master-slave node pod of redis and the sentinel node in Kubernetes.

Description

technical field [0001] The invention discloses an automatic deployment scheme of a Redis master-slave cluster based on Kubernetes, and relates to the technical field of cluster deployment. Background technique [0002] Kubernetes is an open source, used to manage containerized applications on multiple hosts in the cloud platform. The goal of Kubernetes is to make the deployment of containerized applications simple and efficient (powerful). A core feature of Kubernetes is the ability to manage containers autonomously. To ensure that the containers in the cloud platform run according to the user's desired state, the administrator can load a microservice and let the planner find the appropriate location. [0003] Helm is a package management tool for Kubernetes that simplifies the deployment and management of Kubernetes applications. Helm can be compared to CentOS's yum tool. Helm has the following basic concepts: [0004] Chart: It is an installation package managed by Helm...

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 Patents(China)
IPC IPC(8): H04L67/06H04L67/1097H04L67/30
CPCH04L67/10H04L67/30
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