mperham/memcache-client

Get multi_key issues

chamnap opened this issue · 4 comments

I'm using ubuntu server 10.04, rails 2.3.2, memcache-client 1.8.5

I got some problem with using get_multi with memcached server located on another cloud instance. It always raises the exception "MemCache::MemCacheError: end of file reached" or "MemCache::MemCacheError: Broken pipe" with more than 40 keys. However, when get one key at a time, it's quite stable. Another thing is when I get multi key where the memcached server is located on the same instance, it is quite ok. I wonder there is a limitation on the length of keys to make request to memcached server. Or, it is the problem with ubuntu server (file descriptor)? I've set the file descriptor to a very high number already in both cloud instances.
Could you explain me?

Thanks,
Chamnap

Try the same operation with the Dalli gem and see if that breaks too.

I tried the Dalli gem, and it doesn't work well even if the memcached server located on the same machine.

Commit d0cdc1c tests a huge multi-get operation with 10,000 elements and it works perfectly on my local OSX machine.