Do "Spymemcached vbucket" work correctly with replicate of Membase?
Mon, 12/12/2011 - 23:51
I very confuse about spymemcached vbucket feature:
1. Do "Spymemcached vbucket" work correctly with replicate of Membase?
2. If I using it, I will need moxi or not? Which is better?
My server install membase 1.7.2, I have one data bucket which is membase with replication (1 replica)
My client install moxi and using spymemcached-2.7.3
Here is my testing performace result:
- Use spymemcached + moxi: connect to 127.0.0.1:11211
Set : 849.948 ms
Get : 767.404 ms
GetMulti : 179.3 ms
Delete : 652.533 ms
- Use spymemcached vbucket: connect to http://10.0.4.22:8091/pools
Set : 721.453 ms
Get : 672.647 ms
GetMulti : 213.821 ms
Delete : 507.954 ms
Do "Spymemcached vbucket" work correctly with replicate of Membase?
The Spymemcached vbucket-aware feature was designed for Membase and will only work for Membase.
If I using it, I will need moxi or not? Which is better?
You do not need moxi if you use the vbucket-aware feature in Spymemcached and it is better to not use moxi. The reason is that when you use moxi you are potentially introducing another network hop into your requests and this will cause increased latency.
Also, your performance results look very slow. Normally, Membase returns data in under 1ms. Can you check to make sure you didn't get your units mixed up (us instead of ms). If your units are correct then if you post you test case here I can take a look at it to try to figure out what you did wrong.