当前位置:网站首页>Redis 迁移(操作流程建议)
Redis 迁移(操作流程建议)
2022-06-26 15:54:00 【franket】
前言
生产环境下由于服务器系统负载不均,服务器调动等各方面的考虑会遇到有必要对 Redis 进行迁移的情况
这里分享一下 Redis迁移 的过程
Tip: 当前版本 Redis 3.0.4
概要
准备
由于redis的内存特性,迁移过程中避免数据丢失,最好准备两台服务器作为备用
master a (running pd redis)
backup b (backup of a)
backup c (backup of b)
启动一个新redis实例b
Tip: 假定当前master为实例a
使用相同版本
拷贝一份master配置
创建一个用户redis (不用赋密码)
根据配置文件创建相关目录和赋予redis用户以相应权限
使用redis用户身份执行如下代码
redis-server /etc/redis/redis6379.conf
Note: 使用相同的方法在c上也建立一个redis实例,准备作为b的备份实例
安装keepalived
在 a b 上安装keepalived
使用相同版本
设定一个未使用的IP作为VIP
nmap -R -vv -T4 -p 1 192.168.1.20/24 | grep 'host down'
边栏推荐
- R language generalized linear model function GLM, GLM function to build logistic regression model, analyze whether the model is over discrete, and use the ratio of residual deviation and residual degr
- (DFS search) acwing 2005 horseshoe
- [untitled]
- 7 user defined loss function
- How to identify contractual issues
- Redis的ACID
- The details of the first pig heart transplantation were fully disclosed: human herpes virus was found in the patient, the weight of the heart doubled after death, and myocardial cell fibrosis
- Net基于girdview控件实现删除与编辑行数据
- js创意图标导航菜单切换背景色
- 李飞飞团队将ViT用在机器人身上,规划推理最高提速512倍,还cue了何恺明的MAE...
猜你喜欢

Net基于girdview控件实现删除与编辑行数据

Application of ansible automation

js文本滚动分散动画js特效

The first batch in the industry! Tencent cloud security and privacy computing products based on angel powerfl passed CFCA evaluation

(一)keras手写数字体识别并识别自己写的数字

NFT 项目的开发、部署、上线的流程(1)

Solana capacity expansion mechanism analysis (2): an extreme attempt to sacrifice availability for efficiency | catchervc research

STEPN 新手入門及進階

NFT合约基础知识讲解

JVM notes
随机推荐
R语言plotly可视化:小提琴图、多分类变量小提琴图、分组(grouped)小提琴图、分裂的分组小提琴图、每个小提琴图内部分为两组数据、每个分组占小提琴图的一半、自定义小提琴图的调色板、抖动数据点
NFT contract basic knowledge explanation
C. Inversion Graph
[time complexity and space complexity]
R language uses cor function to calculate the correlation matrix for correlation analysis, uses corrgram package to visualize the correlation matrix, reorders rows and columns using principal componen
NFT交易原理分析(1)
How to configure and use the new single line lidar
redis的二进制数组命令
C语言读取数据
svg环绕地球动画js特效
canvas三个圆点闪烁动画
NFT 项目的开发、部署、上线的流程(1)
6 自定义层
(一)keras手写数字体识别并识别自己写的数字
Application of ansible automation
若依如何实现接口限流?
Audio and video learning (II) -- frame rate, code stream and resolution
Canvas three dot flashing animation
C# 读写文件从用户态切到内核态,到底是个什么流程?
Everyone is a scientist free gas experience Mint love crash