Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
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
Author (1):
Arrow left icon
Maxwell Dayvson da Silva Maxwell Dayvson da Silva
Author Profile Icon Maxwell Dayvson da Silva
Maxwell Dayvson da Silva
Arrow right icon
View More author details
Toc

An inappropriate persistence strategy


Once at Yipit, a Redis instance (read-intensive) was experiencing some slowdowns, but nobody could understand why. At first, the DevOps team thought that the application's code was making Redis slow, but after some investigation, they found that the issue was due to a periodic backup strategy. Chapter 8, Scaling Redis (Beyond a Single Instance), will cover persistence in depth.

When Redis starts the procedure to create an RDB snapshot or rewrite the AOF file, it creates a child process (using the fork() system call), and the new process handles the procedure.

During the fork() execution, the process is blocked and Redis will stop serving clients. This is when the perceived latency by clients increases.

The Yipit problem was due to a long fork() time on AWS. The instance type family used was M2, which is a family of ParaVirtual (PV) machines, as opposed to Hardware-assisted Virtual Machines (HVM). It is known that the fork() system call in a PV machine is...

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 $15.99/month. Cancel anytime
Visually different images