Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Redis Essentials

You're reading from   Redis Essentials Harness the power of Redis to integrate and manage your projects efficiently

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher Packt
ISBN-13 9781784392451
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Redis Sentinel


When a master node experiences issues, one of its slave nodes needs to be promoted to master, and all the other slaves need to be reconfigured to point to the new master. Before Redis Sentinel, this failover process was done manually, which was not very reliable.

Redis Sentinel is a distributed system designed to automatically promote a Redis slave to master if the existing master fails. Sentinel does not distribute data across nodes since the master node has all of the data and the slaves have a copy of the data—Sentinel is not a distributed data store.

The most common architecture contains an installation of one Sentinel for each Redis server. Sentinel is a separate process from the Redis server, and it listens on its own port.

Note

If a firewall is configured in your setup, it needs to allow Sentinel to connect to all other Sentinels and Redis servers in the group.

If your architecture has one master and two replicas, you can use Sentinel in the following way:

Without Sentinel...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime