SlideShare a Scribd company logo
Redis Scaling and
Observability
Agenda
➔ Redis Quiz
➔ Redis Overview
➔ Setup of Redis
➔ Scaling in Redis
➔ Observability of Redis
Redis Overview
Q1 - According to your understanding, what do you mean by Redis?
A. It’s a NoSQL database B. It’s a caching
system
C. It’s a SQL
database.
D. Both A and B
D. Both A and B
Redis Overview
Q2 - What are the different type of Redis setup are possible?
● Standalone setup
● Replicated cluster
setup
● Sharded cluster setup
Redis Overview
Q2 - Can we use Redis as a system with the traditional SQL databases?
A. True B. False
A. True
Redis Overview
In-Memory Database Data stored on system/server’s memory
Usage of Redis Often used as Cache to improve performance
Redis can also be used as full fledged database
as well.
Application Redis Database
Usage of Redis
Client Application Redis MySQL DB
1. Looks in cache system.
3. Cache the
new data
Cache hit simply
return the data.
2. Cache miss will look into the main
persistent database.
Key Properties of Redis
In-Memory Database Fast and Performant Schemaless
Types of Redis Setup
Sharded Cluster
Replicated Cluster
Standalone Standalone
Leader
Follower Follower
Leader Leader Leader
Follower Follower Follower
Standalone Setup
Redis
Server
Client
Applications
A single application or multiple
applications can connect to the
Redis server for writing and
reading keys.
Challenges of Standalone Setup
Out of Memory Data Bottleneck Failover Scalability
Replication
Leader
A B C D
Follower
A B C D
Follower
A B C D
Sharding
Leader 1
A B
Leader 2
C D
Leader 3
E F
Replication + Sharding
Leader 1
A B
Leader 2
C D
Leader 3
E F
Follower 1
A B
Follower 2
C D
Follower 3
E F
Replication of data from
leader to follower
Redirection of the
data
Replicated Setup
Redis
Leader
Client
Applications
Redis Follower
Redis Follower
Redis follower is replicating the
data that is being written on the
redis leader server
Client application will write the
data on the leader server of
Redis
All read requests will be redirected to the
followers node to reduce the network noise
from leader node of Redis.
Replicated Setup with Sentinel
Redis
Leader
Redis Follower
Redis Follower
Redis follower is replicating the
data that is being written on the
redis leader server
Redis
Sentinel
Redis sentinel keeping watch on
replicated cluster, if leader will fail, it will
promote the follower to the leader
System
Failure
Redis
Leader
Redis Follower
Challenges of Replicated Setup
Redis
Leader
Redis
Follower
Redis
Follower
● Dataset can become large
for leader and follower node
which can crash Redis
process.
● A single master can become
a bottleneck for the data
Sharded Cluster Setup
Leader 1 Leader 2 Leader 3
Follower 1 Follower 2 Folower 3
Leader is sharding data
between the leader
nodes
Followers replicating
data from leader nodes
Redirection for data
search and write
Write requests can be
sent on leader nodes
Read requests can be
sent on follower nodes
Client Application
Client Application
Setup Comparison
Standalone
Replicated
Setup
Sharded
Setup
Data
Bottleneck
High Medium Low
Out of
Memory Risk
High Medium Low
Setup Comparison
Standalone
Replicated
Setup
Sharded
Setup
No chances Medium
chances
High chances
Low Medium High
Failover
Scalability
Complexity
of Setup
Low Medium High
Scaling Redis Setup
Redis
Standalone
Redis
Leader
Redis
Follower
Redis
Follower
Leader 1 Leader 2 Leader 3
Follower 1 Follower 2 Folower 3
Replicated Setup
Sharded Setup
Scaling Replicated Setup
Redis
Leader
Redis Follower
Redis Follower
Redis Sentinel
Redis Follower
Redis Sentinel
Redis Sentinel
Scaling replication
followers
Scaling sentinel
for failover and
cluster
Scaling Sharded Setup
Redis Leader 1
A B
Redis Leader 2
C D
Redis Leader 3
F G
Redis Follower 1
A B
Redis Follower 2 Redis Follower 3
E H
C D E F G H
Redis Leader 4
Redis Follower 4
H
E
H
E
Resharding
Challenges in Scaling Redis
Sentinel configuration
and scaling
Resharding of data in
cluster mode
Complexity in scaling
Redis
Monitoring of Redis
Redis
Redis
Exporter
Prometheus
Grafana
Dashbaord
Prometheus pulling metrics
from the redis exporter at
defined interval
Grafana using
Prometheus as the
datasource for
metrics
Panels and dashboards
created on Grafana
platform
Important Monitoring Metrics for Redis
Uptime Latency Expired vs
non-expired
keys
Size of DB
CPU Memory Througput Connection
Count
Grafana Dashboard
Redis Setup on Kubernetes
Standalone
Redis Pod
Leader
Follower Follower
Leader
Follower
Leader Leader
Follower Follower
Challenges of Redis On Kubernetes
Dynamic IP update of
redis pod
Scaling Redis cluster on-
fly
Monitoring of Redis
system
Production ready
configuration
Security in terms of
Kubernetes and Redis
Managing persistent
data
Solution of Redis on Kubernetes
OT Redis Operator
Host, Run and Scale Redis cluster on
Kubernetes.
Features of Redis Operator
Multiple Redis version
supported
Standalone and Cluster
mode supported
Automated failover and
recovery is supported
In built monitoring
support with exporter
Password and
password-less support
TLS support for security
ipv4 ipv6
Ipv4 and Ipv6 support
for Redis
Detailed monitoring
dashboard of Grafana
On-fly upgrade without
downtime
Redis Operator Architecture
Standalone Setup of Redis
Cluster Setup of Redis
Enabling Monitoring
Redis Pod
Redis
Redis
Exporter
Upgrading Redis
v6 v7
TLS Integration
Contributors Behind Redis Operator
Abhishek Dubey,
Sr. DevOps Consultant,
Opstree Solutions
Sandeep Rawat,
CTO, Opstree Solutions
Shubham Gupta,
DevOps Intern, Opstree
Solutions
Mathieu Cesbron, Developer
from France
David Collam, Staff
Solutions Engineer,
Jetstack (Cert Manager)
Ivyan, Software Engineer,
DaoCloud
Contributors Behind Redis Operator
Andrew Thompson,
Software Engineer,
CrowdStrike
John, Software Engineer,
Naver
Hubert FONGARNAND,
Software Engineer, Ippon
Anish Chakraborty, Sr.
Software Engineer, Spotify
Tanuj Dwivedi, Sr. Software
Engineer, Dream11
Philippe Martin, Software
Engineer, RedHat
And Many More….
Thank you!
Contact:- abhishek.dubey@opstree.com, Sandeep@opstree.com
http://opstree.com
http://buildpiper.io

More Related Content

PPTX
Redis Introduction
PDF
An Introduction to Redis for Developers.pdf
PPTX
PPTX
Introduction to redis
PPT
Introduction to redis
PDF
mysql 8.0 architecture and enhancement
PPTX
Docker: From Zero to Hero
PDF
How to Survive an OpenStack Cloud Meltdown with Ceph
Redis Introduction
An Introduction to Redis for Developers.pdf
Introduction to redis
Introduction to redis
mysql 8.0 architecture and enhancement
Docker: From Zero to Hero
How to Survive an OpenStack Cloud Meltdown with Ceph

What's hot (20)

PDF
Introduction to Docker - IndiaOpsUG
PPTX
A Technical Introduction to WiredTiger
PPTX
Introduction to Redis
PDF
Optimizing MariaDB for maximum performance
PPTX
Introduction to docker
PDF
PDF
Introduction to MongoDB
PDF
Redis 101
PDF
Docker in real life
PPTX
MongoDB
PDF
Introduction to docker
PPTX
NGINX: Basics and Best Practices
PDF
Ready player 2 Multiplayer Red Teaming Against macOS
PDF
OSMC 2022 | VictoriaMetrics: scaling to 100 million metrics per second by Ali...
PDF
Docker multi-stage build
PPTX
Exactly-Once Financial Data Processing at Scale with Flink and Pinot
PPTX
Introduction to Docker
KEY
Redis overview for Software Architecture Forum
PPT
Monitoring using Prometheus and Grafana
PDF
Kubernetes (k8s).pdf
Introduction to Docker - IndiaOpsUG
A Technical Introduction to WiredTiger
Introduction to Redis
Optimizing MariaDB for maximum performance
Introduction to docker
Introduction to MongoDB
Redis 101
Docker in real life
MongoDB
Introduction to docker
NGINX: Basics and Best Practices
Ready player 2 Multiplayer Red Teaming Against macOS
OSMC 2022 | VictoriaMetrics: scaling to 100 million metrics per second by Ali...
Docker multi-stage build
Exactly-Once Financial Data Processing at Scale with Flink and Pinot
Introduction to Docker
Redis overview for Software Architecture Forum
Monitoring using Prometheus and Grafana
Kubernetes (k8s).pdf
Ad

Similar to Redis and its Scaling and Obersvability (20)

ODP
Beyond relational database - Building high performance websites using Redis a...
PPTX
Redis meetup
PPTX
Redis. Seattle Data Science and Data Engineering Meetup
PDF
An Introduction to Redis for .NET Developers.pdf
PPTX
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
PPTX
Add Redis to Postgres to Make Your Microservices Go Boom!
PPTX
Windows Server 2012 R2 Jump Start - Intro
PPTX
R & Python on Hadoop
PPTX
What's new with enterprise Redis - Leena Joshi, Redis Labs
PDF
The Fastest Way to Redis on Pivotal Cloud Foundry
PDF
RedisConf 2016 - Redis usage and ecosystem
PPTX
RedisConf17 - Redis Enterprise: Continuous Availability, Unlimited Scaling, S...
PDF
#GeodeSummit - Redis to Geode Adaptor
PDF
MariaDB: Connect Storage Engine
PPTX
windows server 2012 R2
DOCX
Windows server Interview question and answers
PPTX
Redis data structure and Performance Optimization
PDF
Redis as a Cache Boosting Performance and Scalability
DOCX
Redis vs Memcached
PPTX
REDIS327
Beyond relational database - Building high performance websites using Redis a...
Redis meetup
Redis. Seattle Data Science and Data Engineering Meetup
An Introduction to Redis for .NET Developers.pdf
Moving Beyond Cache by Yiftach Shoolman Redis Labs - Redis Day Seattle 2020
Add Redis to Postgres to Make Your Microservices Go Boom!
Windows Server 2012 R2 Jump Start - Intro
R & Python on Hadoop
What's new with enterprise Redis - Leena Joshi, Redis Labs
The Fastest Way to Redis on Pivotal Cloud Foundry
RedisConf 2016 - Redis usage and ecosystem
RedisConf17 - Redis Enterprise: Continuous Availability, Unlimited Scaling, S...
#GeodeSummit - Redis to Geode Adaptor
MariaDB: Connect Storage Engine
windows server 2012 R2
Windows server Interview question and answers
Redis data structure and Performance Optimization
Redis as a Cache Boosting Performance and Scalability
Redis vs Memcached
REDIS327
Ad

Recently uploaded (20)

PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Encapsulation theory and applications.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Big Data Technologies - Introduction.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Electronic commerce courselecture one. Pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Approach and Philosophy of On baking technology
PDF
Unlocking AI with Model Context Protocol (MCP)
Building Integrated photovoltaic BIPV_UPV.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Review of recent advances in non-invasive hemoglobin estimation
Encapsulation theory and applications.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
MYSQL Presentation for SQL database connectivity
Spectroscopy.pptx food analysis technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Big Data Technologies - Introduction.pptx
Network Security Unit 5.pdf for BCA BBA.
Electronic commerce courselecture one. Pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Approach and Philosophy of On baking technology
Unlocking AI with Model Context Protocol (MCP)

Redis and its Scaling and Obersvability