当前位置:网站首页>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
边栏推荐
猜你喜欢
async.js入门
电压继电器SRMUVS-100VAC-2H2D
数据库性能系列之索引(上)
The package of idea is not hollow
C# 枚举类型 于xaml 中区别
VLAN实验
HJY-F931A/YJ three-phase voltage relay
The battle-hardened programmer was also deceived by a fake programmer from a certain fish. The trust between programmers should be the highest, and he alone destroyed this sense of trust
contentDocument contentWindow,canvas 、svg,iframe
Redis 主从复制
随机推荐
Microsoft SQL服务器被黑客入侵 带宽被窃取
TensorFlow自定义训练函数
The package of idea is not hollow
美团内推+校招笔试题+知识点总结
单片机开发之ADC0808/9信号采集
英 文 换 行
现在报PMP还来得及参加9月的考试吗?分享敏捷全真模拟题
我又造了个轮子:GrpcGateway
SQL language and paging rownum analysis in Oracle
NLP领域的最新研究进展
C language - bitwise operations
spin lock和mutex使用场景的差异
@RequestBody 和 @ResponseBody 详解
【云筑共创】华为云携手鸿蒙,端云协同,培养创新型开发者
【JZ64 求1+2+3+...+n】
Typroa 替代工具marktext
【梦想起航】
STM32F1 reads MLX90632 non-contact infrared temperature sensor
电压继电器SRMUVS-100VAC-2H2D
RY-D1/1 Voltage Relay