当前位置:网站首页>Redis master-slave replication
Redis master-slave replication
2022-07-30 11:37:00 【yu-yuan】
Redis Cluster
Functions:1. Master-slave backup to prevent host downtime; 2. Read-write separation, sharing the tasks of the master; 3. Task separation, such as sharing backup work and computing work separately from the server
Configuration:
Main Server
Make the Redis server accessible across the network

bind 0.0.0.0

Set requirepass (redis password)

Turn off protected-mode no
Configure slave

bind 0.0.0.0

Set requirepass (redis password)
Then let the slave do the work: such as RDB, open rdb and change dbfilename to a file ending with rdb
Set slaveof (if you are using a higher version of redis, replace slaveof with replicaof)


Here is the IP of the listening port master, that is, the port

Switch the slave to read-only mode (can not be changed)

Turn off protected-mode no

边栏推荐
- PanGu-Coder: Function-level code generation model
- API 网关 APISIX 在Google Cloud T2A 和 T2D 的性能测试
- Transfer Learning技术研修
- SQL language and paging rownum analysis in Oracle
- Current relay JL-8GB/11/AC220V
- 360闷声干大事获赞无数,数字安全如何保障?还得看企业安全云
- 【ASP.NET Core】选项类的依赖注入
- ansible学习笔记01
- NLP领域的最新研究进展
- High energy output!Tencent's internal MyCat middleware manual, both theoretical and practical
猜你喜欢
随机推荐
ODrive应用 #4 配置参数&指令「建议收藏」
How to add data to the request header when feign is called remotely
[ASP.NET Core] Dependency Injection for Option Classes
Microsoft SQL服务器被黑客入侵 带宽被窃取
汇编实现冒泡排序
PanGu-Coder: Function-level code generation model
"Learning Cloud Networking with Teacher Tang" - Problem Location - The host is working but the container is not working
R语言怎么绘图(一个r语言完整的命令有什么)
TestNg整合Retry代码
log4j中appender的简介说明
mysql与redis 区别
我又造了个轮子:GrpcGateway
基于加权灰色关联投影的Bagging-Blending多模型融合短期电力负荷预测
AIX shell获取前几个月时间
基于MySQL数据库,Redis缓存,MQ消息中间件,ES搜索引擎的高可用方案解析
SQL language and paging rownum analysis in Oracle
Kubernetes 入门实战03 中级篇
Vim plugin GrepIt
Verilog语法基础HDL Bits训练 08
Native js create table









