当前位置:网站首页>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'
边栏推荐
- Simple use of tensor
- 【时间复杂度和空间复杂度】
- Everyone is a scientist free gas experience Mint love crash
- Solidus labs welcomes zhaojiali, former head of financial innovation in Hong Kong, as a strategic adviser
- NFT 平台安全指南(1)
- Solidus Labs欢迎香港前金融创新主管赵嘉丽担任战略顾问
- 振动式液量检测装置
- 『C语言』题集 of ⑩
- Audio and video learning (II) -- frame rate, code stream and resolution
- [thinking] what were you buying when you bought NFT?
猜你喜欢

基于 MATLAB的自然过渡配音处理方案探究

2 三种建模方式

JVM notes

(1) Keras handwritten numeral recognition and recognition of self written numbers

Angel 3.2.0 new version released! Figure the computing power is strengthened again

5000字解析:实战化场景下的容器安全攻防之道

Svg animation around the earth JS special effects

Quickly get started with federal learning -- the practice of Tencent's self-developed federal learning platform powerfl

JVM笔记

js创意图标导航菜单切换背景色
随机推荐
5000字解析:实战化场景下的容器安全攻防之道
Tencent Peking University's sparse large model training acceleration program het was selected into the VLDB of the international summit
[time complexity and space complexity]
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
NFT交易原理分析(1)
NFT交易原理分析(2)
Development, deployment and online process of NFT project (2)
零知识 QAP 问题的转化
canvas三个圆点闪烁动画
Lifeifei's team applied vit to the robot, increased the maximum speed of planning reasoning by 512 times, and also cued hekaiming's Mae
10 tf.data
IAR工程适配GD32芯片
Reflection modification final
R语言广义线性模型函数GLM、glm函数构建逻辑回归模型(Logistic regression)、分析模型是否过离散(Overdispersion)、使用残差偏差与二项式模型中的剩余自由度的比率评估
(DFS search) acwing 2005 horseshoe
I want to know how to open an account through online stock? Is online account opening safe?
11 cnn简介
Redis的ACID
如何辨别合约问题
Selenium saves elements as pictures