Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Redis

You're reading from   Learning Redis Design efficient web and business solutions with Redis

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781783980123
Length 318 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Vinoo Das Vinoo Das
Author Profile Icon Vinoo Das
Vinoo Das
Arrow right icon
View More author details
Toc

Configuring Redis Sentinel


Datastores provide capability in handling faulty scenarios. These capabilities are in-built and do not expose themselves in the manner in which they handle fault tolerance. Redis, which started with simple key value datastore, has evolved into a system which provides an independent node to take care of the fault management. This system is called Sentinel.

The idea behind Sentinel is that it's an independent node which keeps a track on the master node and the other slave nodes. When a master node goes down, it promotes the slave node to become the master. As discussed, in a master-slave scenario, master is meant to write and slaves are meant to read, so when a slave is promoted to master, it has the capability to read and write. All the other slaves will become slave to this new slave turned master. The following figure shows how Sentinel works:

The working of Sentinel

Let's have an example now to demonstrate how Sentinel works as of Redis 2.6 Version. Sentinel has...

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
Banner background image