Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 1.85 KB

RedisLeaderFollowReplication.md

File metadata and controls

20 lines (15 loc) · 1.85 KB

Redis Replication - Leader-follower technique

img.png

Advantages of Replication

Advantage Description
High availability If leader node goes down, the follower can be immediately promoted, so you don't experience any downtime.
Scalability (Read Queries) Under extremely high read load, you could balance the reads between the master and follower.
- Although it would be recommended to setup up additional no persistence, memory only follower for that purpose.

How to configure replication in Redis?

  • Just add the following line to the replica configuration file redis.conf.
replicaof 192.168.1.1 6379