Benefits of multiple memcached instances?

If one instance fails, you're still get advantages of using the cache. This is especially true if you are using the Consistenthashing that will bring the same data to the same instance, rather than spreading new reads/writes among the machines that are still up.

Up vote 3 down vote favorite share g+ share fb share tw.

Memcached link|improve this question asked Sep 25 '08 at 16:28Nathan.

If one instance fails, you're still get advantages of using the cache. This is especially true if you are using the Consistenthashing that will bring the same data to the same instance, rather than spreading new reads/writes among the machines that are still up. You may also elect to run servers on 32 bit operating systems, that cannot address more than around 3GB of memory.

Check the FAQ: socialtext.net/memcached/ and danga.com/memcached.

High availability is nice, and memcached will automatically distribute your cache across the 4 servers. If one of those servers dies for some reason, you can handle that error by either just continuing as if the cache was blank, redirecting to a different server, or any sort of custom error handling you want. If your 1x 2gb server dies, then your options are pretty limited.

The important thing to remember is that you do not have 4 copies of your cache, it is 1 cache, split amongst the 4 servers. The only downside is that it's easier to run out of 4x .5 than it is to run out of 1x 2gb memory.

Distributing entries across servers is the job of the client. There are a number of techniques to aid in that, which are laid out in the various memcached FAQs and clients. – Alister Bulman Apr 9 '09 at 23:49.

I would also add that theoretically, in case of several machines, it might save you some performance, as if you have a lot of frontends doing a lot of heavy reads, it's much better to split them into different machines: you know, network capabilities and processing power of one machine can become an upper bound for you. This advantage is highly dependent on memcache utilization, however (sometimes it might be ways faster to fetch everything from one machine).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions