Configure redis to not have everything in memory?

Posted by acidzombie24 on Server Fault See other posts from Server Fault or by acidzombie24
Published on 2012-09-03T07:37:12Z Indexed on 2012/09/03 9:39 UTC
Read the original article Hit count: 209

Filed under:
|
|
|

I like redis because it lets me do operations on data structures. I wanted to see what would happen if i were to put more data into redis then i have for ram. So i wrote a loop that inserted 30k bytes repeatedly and set maxmemory 100MB. I figure it would stay at 100mb. It kept growing. Past 1gb then past 2gb. Suddenly it crashed because i ran the 32bit version.

Now... i dont understand what the point of maxmemory is? I am using the windows version so maybe its ignored. Does redis have to have everything in memory? If i have a site (on linux) with a 10gb database and 512mb on the machine will redis work? I don't need it to be amazingly fast i just prefer to modify data in it then sql (although i hope it is still faster then mysql)

© Server Fault or respective owner

Related posts about linux

Related posts about Windows