Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many keys are too many in memcached?

Tags:

memcached

I currently have about 650,000 items in memcached (430MB memory used) and the number is still increasing. It's expected to exceed 1,000,000 items before going flat. Current hit/miss ratio is 25:1 so the efficiency is pretty good. I just wanted to ask is one million items in memcached on single server too many? If not, how many is too many?

like image 581
jack Avatar asked Mar 19 '10 03:03

jack


1 Answers

You could scale up to a single 64-bit server with 48GB, and put up to 80,000,000 items in it. Or you could scale out and buy many 4GB servers and put up to 2,400,000 items on each. Memcached works wonderfully well when you distribute it across multiple servers.

like image 184
Jim Ferrans Avatar answered Sep 28 '22 07:09

Jim Ferrans