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
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

Redis configuration – data management


To manage data in Redis, it's important to understand the application we are trying to build. Since the gossip server is meant to be a Config server, the reads are will be more than the writes. Redis provides a couple of data persistence mechanisms that we have already dealt with in the previous chapters, and the current section can act as a refresher. The mechanisms that Redis provides are the following:

  • The RDB option

  • The AOF option

  • VM over commit memory (LINUX environments only)

The RDB option

The RDB option provides a mechanism to take a snapshot of the data at regular intervals. Since this is a periodic activity, which dumps the data into the dump.rdb file, it makes it a good option to take data backups. For our current application, the configuration in the redis.conf file for RDB can be one of the following:

  • save 60 10: This will save data every 1 minute if 10 keys have changed

  • save 900 10: This will save data every 15 minutes if 1 key has changed

The...

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 €18.99/month. Cancel anytime