Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Possible Duplicate:
Memcached - one large instance vs many smaller

I know this might depend on my specific scenario but if possible let's analyze it in general :)

I wonder if using 6 memcached instances of 10MB would be better than having a single instance of 60MB.

I'd say that concurrency capability would be improved but there might be a considerable performance penalty.

share|improve this question
2  
Instances of what? Tags aren't content, they're metadata. –  womble Sep 19 '11 at 20:31
    
@wombie: Sorry, I copied the question from a memcached specific forum where I originally posted the question. I missed that I didn't mention memcached on the whole question. Already fixed –  Claudio Redi Sep 20 '11 at 14:52
add comment

marked as duplicate by womble, warren, Mark Henderson Dec 6 '11 at 22:36

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers

up vote 1 down vote accepted

Considering we are speaking generally...

One common reason for using multiple instances, is for improved reliability. As one server statistically could go down, but multiple down servers is much less probable.

If you are referring to using multiple instances on the same server, some benefits still do exist. There is reasons to run this type of setup, one would be data separation. You also gain some reliability due to potential process crashing issues. However, those same benefits would be better served across multiple servers.

In a completely hypothetical general situation, with absolutely no mitigating factors, the potential benefits don't justify a more complicated situation.

Mitigating factors: an unstable process, lack of concurrency, etc...; would change the question, and possibly lead to a different conclusion.

Specific to memcached, which is considered a stable and threaded process, the benefits don't justify.

share|improve this answer
    
Thanks for your answer. In this case I'm talking about several instances ON THE SAME SERVER vs a single instance –  Claudio Redi Sep 19 '11 at 16:57
    
I edited the answer to better reflect your question –  TechZilla Sep 21 '11 at 14:51
add comment

If you're splitting hairs about 60 MB with an application built to handle caching gigabytes and gigabytes of data, I assure you that your bottleneck is hardware and not the memcached configuration. I can't even fathom a scenario where you have enough traffic to need six memcached instances to service your requests, but have so little data that your working set fits into that amount of RAM.

share|improve this answer
    
He stated that he was speaking generally, which means assuming things like a bottleneck is inappropriate for the context. –  TechZilla Sep 23 '11 at 13:56
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.