Hi

>> Anybody else here is using memcached in Java and PHP and got them to work 
>> together? I've searched the list and this question has been raised several 
>> times but haven't find any definitive answer, just the obvious "different 
>> libraries may use different hashing implementations". We don't mind 
>> switching to other libraries.
> 
> Assuming you're using the latest spymemcached (which was released some time 
> ago) and a recent pecl/memcached, at least those two should work together.  
> The PHP level wasn't, but the libmemcached ketama and spymemcached ketama are 
> well tested.

Right now we're usig PECL/memcache, not PECL/memcached. p/memcached is based in 
libmemcached but AFAIK p/memcache isn't. We're using p/memcache because last 
time I checked p/memcached didn't have a session handler (we're load-balancing 
the app servers and want to store sessions in memcached) but it seems more 
recent releases do have it.

As for spymemcached, we're using a git version from January. It was a 
1.5-pre-something, definitely post 1.4.x but not the final 1.5 release. Maybe 
the version we're using still didn't had that bug you mention fixed.

Will try with pecl/memcached and spymemcached-1.5.

> With only two servers, nearly anything could make it be 50% off but it almost 
> sounds like one client is seeing one of the servers as down.  In a ketama 
> world, that'd mean put all of it on the remaining up servers (the other one 
> in your case).

Both servers were up during my tests, the two of them received both reads and 
writes. 

> Sorry I don't have any clear answers here, but I can say it's been tested and 
> SHOULD work.

No clear answers but at least now I know that spymemcached and libmemcached 
have been thoroughly tested and they should match, so if they're not matching 
for us we either are doing something wrong or are not using the correct 
releases.  :-)

Thanks Matt :-)

-- 
 Vicente Aguilar <[email protected]> | http://www.bisente.com

Reply via email to