How to evaluate how big the redis database will be?

I am trying to decide which size for Redis To Go is suitable for the hero.

Say I want to save about a million entries in Redis for easy access.

If each record is about 1-10kb in size, does this mean that the entire database will be 1,000,000 * 1-10kb, or is there some hidden overhead that I don’t know about?

+4
source share
1 answer

Can you start with the smallest option and access the CLI? If so, you can do the following:

redis-cli > info 

View the following values ​​and notes:

 used_memory:931104 used_memory_human:909.27K used_memory_rss:1052672 used_memory_peak:931008 used_memory_peak_human:909.19K 

Then download the 100k entries and do the same thing and compare the difference in memory. It's very difficult to say, guessing the size, and note that there is overhead (the vanilla installation without data on my MacBookPro 2011 w / OSX Lion is installed in the above figures).

+11
source

All Articles