vaseems / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
0 stars 0 forks source link

Memcached CAS keys not being replicated properly on both the servers #224

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
we are using two Memcached servers clusterted (Master , Master ) and used 
repcached on top of it for replication purpose , for our heavy traffic website

For all logged in users , I am doing a atomic Memcached cas Operation as shown 
below .

long casVal = resp.getCas();
MemcacheClinet.cas(TOTAL_USERS, 0,value, casVal);

After doing some research using Memcache Stats Commands on both the servers 
using get TOTAL_USERS , i found that this key has got a different value on each 
server and its not being replicated properly and its behaving abnormally

Please let me know if is it possible to get this key "TOTAL_USERS" replicated 
properly on both the servers ??

Or is there any other way where i can manually append the Data to this String ??

I am uisng XMemcached 1.4.5 version with repcached 2.2 installed on to it .

I saw that PHYTHON API for Memcache has got this feature of replica with the 
cas operation , Is there any thing such like in XMemcache . 
Please share your ideas .

Original issue reported on code.google.com by krn1...@gmail.com on 23 Oct 2012 at 12:52