February 2018
Intermediate to advanced
382 pages
11h 33m
English
You need to set up one Redis master server and two slave servers. You can refer to the Setting up Redis replication section in Chapter 6, Persistence for instructions. In this example, we will deploy Redis Server and Sentinel instances on three different hosts, the role, IP address, and port, shown in the following table:
|
Role |
IP address |
Port |
|
Master |
192.168.0.31 |
6379 |
|
Slave-1 |
192.168.0.32 |
6379 |
|
Slave-2 |
192.168.0.33 |
6379 |
|
Sentinel-1 |
192.168.0.31 |
26379 |
|
Sentinal-2 |
192.168.0.32 |
26379 |
|
Sentinel-3 |
192.168.0.33 |
26379 |
The overall architecture can be seen in the following image:
The three hosts must be able to communicate with each other. You need to set the binding IP correctly ...
Read now
Unlock full access