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

边栏推荐
- TestNg整合Retry代码
- TensorFlow custom training function
- 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
- STM32F1 reads MLX90632 non-contact infrared temperature sensor
- log4js入门
- 2022-07-29 顾宇佳 学习笔记 异常处理
- 优酷VIP会员周卡只需7.5元,看《沉香如屑》用优酷视频
- Detailed explanation of @RequestBody and @ResponseBody
- 真正懂经营管理的CIO具备哪些特质
- Meituan internal push + school recruitment written test + summary of knowledge points
猜你喜欢
随机推荐
高能产出!腾讯内部的MyCat中间件手册,理论实操齐下
Verilog语法基础HDL Bits训练 08
HJY-F931A/YJ three-phase voltage relay
文本的对齐方式、行高、空间 等总结
Vim plugin GrepIt
【Flume】batchSize和transactionCapacity区别
数据库性能系列之索引(上)
Leetcode 125. 验证回文串
【JZ64 求1+2+3+...+n】
Still using Swagger?I recommend this interface management artifact with zero code intrusion
EA中的业务对象和业务实体你分得清吗?
向上管理读书笔记
还在用Swagger?我推荐这款零代码侵入的接口管理神器
牛客-TOP101-BM42
ADC0808/9 signal acquisition developed by single chip microcomputer
eric6教程(电脑的配置基本知识)
208. 实现 Trie (前缀树)
自定义查询--关于倒排索引的研究
Redis 主从复制
单片机工程师笔试题目归纳汇总









