Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What happens to a Redis data store if the data exceeds available ram? [duplicate]

What happens to a Redis data store if the data exceeds available ram?

like image 916
Chris Marisic Avatar asked Apr 09 '10 02:04

Chris Marisic


1 Answers

I think there is a store size setting in redis config that will stop you adding more data than can fit in the store you have set up. If you set up a store that doesn't fit in physical memory, it will simply ask the OS for more memory and some of it will be paged to disk, with obvious performance consequences.

The next version of redis has its own virtual memory implementation which can store less frequently used keys on disk - http://antirez.com/post/redis-virtual-memory-story.html

like image 101
Tom Clarkson Avatar answered Oct 12 '22 11:10

Tom Clarkson