当前位置:网站首页>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

边栏推荐
猜你喜欢

Beyond Stream Processing !第四届实时计算 Flink 挑战赛启动,49 万奖金等你来拿!

Microsoft SQL服务器被黑客入侵 带宽被窃取

log4js入门

I built another wheel: GrpcGateway

contentDocument contentWindow,canvas 、svg,iframe

明德扬FPGA开发板XILINX-K7核心板Kintex7 XC7K325 410T工业级

TestNg整合Retry代码

电压继电器SRMUVS-100VAC-2H2D

Voltage relay h2d SRMUVS - 100 vac - 2

真正懂经营管理的CIO具备哪些特质
随机推荐
RY-D1/1 Voltage Relay
电压继电器SRMUVS-100VAC-2H2D
VLAN实验
基于.NetCore开发博客项目 StarBlog - (16) 一些新功能 (监控/统计/配置/初始化)
简述controller,service,repository注解的用法(谈谈application.properties的作用)
单片机开发之ADC0808/9信号采集
【ASP.NET Core】选项类的依赖注入
面试官:Redis中的布隆过滤器与布谷鸟过滤器,你了解多少?
三个点语法和DOM观察者
Taobao/Tmall taobao comments q&a list interface API
HJY-F931A/YJ three-phase voltage relay
物联网技术概论:第6章
基于声信道分析的电缆隧道人员定位技术
Leetcode 125. 验证回文串
原生js 创建表格
高手云集、丰富活动,斩获佳绩,超过2万名开发者参与的AI社团邀你加入!
优酷VIP会员周卡只需7.5元,看《沉香如屑》用优酷视频
Redis 主从复制
重写并自定义依赖的原生的Bean方法
MySQL之数据库维护