Number of threads used by memcached
Hi, we are using Membase from the Git repo. We deploy it on EC2 and use EBS volume for the persistent storage. The instances we use are only two core. I was wondering if it would be good for us to start the memcached process with two threads instead of the defualt 4 (using -t). I couldn't figure out the corretc way to set that in the config file, it seems there is a ports_server option or something like that, but I would like to just add the "-t 2" without redefining all the server config. So far I created a memcached wrapper script called "memcached" and moved the original one being call by the wrapper with the correct options but it's really hacky.
Any idea how to do that clean ? Do you think this change could help on EC2 env that has bad cpu perf ?
Thanks,
Nicolas
PS : I wanted to post on the 1.7.x forum but the form doesn't allow me to do so.
Nicholas,
In general, you shouldn't need to change the thread count. Even with 2 cores, the software should perform well with 4 threads (those two don't need to line up).
We are in the process of implementing a better configuration system, for the moment your "hack" should be sufficient.
The higher-level 1.7 forums are not open yet since we have not released that version as GA but the "developer preview" forum is available for your feedback. I've put a note in there to help prevent this confusion in the future.
Thanks!
Perry
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!