O'Reilly logo

Redis 4.x Cookbook by Zuofei Wang, Pengcheng Huang

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

In this section, we will set up a Redis Cluster with three master Redis nodes, each with a single Redis slave-instance node. The topology of this Cluster is shown here:

  1. Each Redis instance has its own configuration file (redis.conf). To enable the Cluster feature, prepare a configuration file for every Redis instance and then change the IP, listening port, and log file path correspondingly (due to space limitations in this book, we only show you the configuration file of one instance on the first host; you can download all the configuration files from the source code provided along with this book):
redis@192.168.1.57:~> cat ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required