Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning Redis

You're reading from  Learning Redis

Product type Book
Published in Jun 2015
Publisher
ISBN-13 9781783980123
Pages 318 pages
Edition 1st Edition
Languages
Author (1):
Vinoo Das Vinoo Das
Profile icon Vinoo Das

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 $15.99/month. Cancel anytime}