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

NLP领域的最新研究进展

AB test summary

async.js入门

Telerik2022 R2,有效的自动化测试

域名怎么注册备案解析?

stm32 RTC闹钟唤醒低功耗模式

ESP32CAM 1838接收红外遥控器信号

Explain the problem of change exchange in simple terms - the shell of the backpack problem

Still using Swagger?I recommend this interface management artifact with zero code intrusion
随机推荐
单片机开发之ADC0808/9信号采集
LeetCode_236_二叉树的最近公共祖先
还在用Swagger?我推荐这款零代码侵入的接口管理神器
I built another wheel: GrpcGateway
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
正则表达式快速入门笔记
Log4j additivity属性简介说明
Differences between lock spin and mutex usage scenarios
[Cloud-Building Co-creation] Huawei Cloud and Hongmeng collaborate to cultivate innovative developers
【数据库基础】redis使用总结
AB test summary
Assembly to implement bubble sort
Classes and Objects - 6 Default Member Functions
stm32 RTC闹钟唤醒低功耗模式
Introduction to IoT Technologies: Chapter 6
GBJ2510-ASEMI电机专用25A整流桥GBJ2510
log4j Logger简介说明
高能产出!腾讯内部的MyCat中间件手册,理论实操齐下
干货|语义网、Web3.0、Web3、元宇宙这些概念还傻傻分不清楚?(中)
AIX shell获取前几个月时间