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

Redis master-slave cluster automatic deployment scheme based on Kubernetes

A cluster, master-slave technology, applied in the field of Redis master-slave cluster automation deployment solutions, can solve problems such as inability to achieve flexible deployment, and achieve the effect of ensuring the integrity, integrity and readability of configuration parameters and avoiding human errors.

Active Publication Date: 2019-07-12
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF3 Cites 7 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
  • Redis master-slave cluster automatic deployment scheme based on Kubernetes
  • Redis master-slave cluster automatic deployment scheme based on Kubernetes
  • Redis master-slave cluster automatic deployment scheme based on Kubernetes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] The present invention provides a Kubernetes-based Redis master-slave cluster automatic deployment scheme. The redis configuration file is passed into the Helm installation package through file flow, 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 to the pv required by the container. Various startup scripts are written into configmap through file streams, and initContainers is started through the command command. The script executes 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 pass the redis configuration file into the Helm installation package through the file stream, and deploy the configuration and startup logic of Helm in the configmap.

[0035] In redis-server-state...

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 configuration file of the redis is transmitted into the Helm installation package in a document flow mode, Helm configuration and starting logic are deployed in consignmap, and in redis-server-statefulset. yaml, initContainers is used to mount various startup scripts to the required pv of the container. The various startup scripts are written to the configmap in a document flow mode. The initContainers uses the command command to start the startup scripts to perform configuration and installation, and perform deployment of master-slave node pod and the sentinel node of the redis in Kubernets.

Description

technical field [0001] The invention discloses a Kubernetes-based Redis master-slave cluster automatic deployment scheme, 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 independently manage containers 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 a suitable location. [0003] Helm is a package management tool for Kubernetes to simplify 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 the installation package managed by Helm, which contains ...

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): H04L29/08
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