Redis Best Practices and Performance Tuning

TCP-KeepAlive

TCP-KeepAlive Graph
vim /etc/redis/redis.conf# Update the value to 0
tcp-keepalive 0

Pipelining

How to Use Pipelining
Pipelining Graph

Max-Connection

sudo vim /etc/rc.local

# make sure this line is just before of exit 0.
sysctl -w net.core.somaxconn=65365

Overcommit Memory

echo 'vm.overcommit_memory = 1' >> /etc/sysctl.conf

RDB Persistence and Append Only File

sudo vim /etc/redis/redis.conf

# Comment out these lines
save 900 1
save 300 10
save 60 10000

rdbcompression no
rdbchecksum no

appendonly no

Transparent Huge Page(THP)

sudo vim /etc/rc.local

# Add this line before exit 0
echo never > /sys/kernel/mm/transparent_hugepage/enabled
Transparent Huge Page Graph

Some Other Basic Measures in Redis Configuration

--

--

--

A DevOps Engineer currently working with the OpsTree Solutions

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Streaming and Image processing challenge with Project Immersion Develop

Building Cloud Apps with Civo and Docker — Part 2: Stateless Applications

Flutter: Defining a Structure for GetX -Part 3( Get Connect )

Robust, continuous audio recording:

CLI Gem part two: scope and flow!

LightBeam Data Lifecycle Management Platform

Alternatives

Zeitgeist’s Integration With Subscan Goes Live

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Abhishek Dubey

Abhishek Dubey

A DevOps Engineer currently working with the OpsTree Solutions

More from Medium

Spring Cloud Gateway with logs

How to Share GRPC Proto Buffers Files Across Microservices

Create SQL cache stores and more in Data Grid 8.3

Kubernetes, for software developers (part 3)