views:

428

answers:

1

Google App Engine has some information about Memcache limits: http://code.google.com/appengine/docs/quotas.html#Memcache & http://code.google.com/appengine/docs/python/memcache/overview.html#Quotas_and_Limits . However, total allowed size of RAM/memory store for a single application is not specified. It's known that no objects above 1MB is allowed. Do you have information?

+6  A: 

The amount of memcache capacity your app has isn't fixed, and may vary depending on the traffic to your app and how it uses memcache.

Nick Johnson
Nick, are there any plans to publish some sort of general guidelines or rules of thumb for understanding or predicting memcache behavior? It feels difficult to intelligently use memcache to get optimal performance when I would like to put absolutely everything in there, but I don't want to accidentally evict some things that I really, really need for the sake of something that might be less important. Is there some generally-applicable algorithm for making that decision?
Adam Crossland
In broad terms: Trust the eviction policy. Put everything in there that could be useful, and the stuff that gets accessed the most will stay there longest.
Nick Johnson
+1 Thanks Nick!
Viet