Does Couchbase lock bucket when it writes?
Wed, 02/29/2012 - 06:50
Hi,
We have an application where we pump in data around 10K every 5 secs into couchbase and another process running in parallel reading the same entries and compute some stuff.
What we observed is,
- When we load 10K once and just read from another process we are getting better throughput around 100K reads per sec
- When we load 10K every few secs repeatedly and try to run the another process to read our throughput is going down considerably to just 5K reads per sec.
Does Couchbase locks the bucket when it writes so that other don't read unless lock is released?
Any hints on improving the performance here?
Thanks
Ramu
We don't lock buckets at all when doing writes. One thing that might be happening is that your reads are hitting disk at a much higher frequency than they hit memory. This could be something that greatly impacts performance. Is everything on your server in memory or do you have a high disk to memory ratio. Also, could you possibly post code here or any other information that might be relevant to the state of your cluster?