Memcached server: Is it a good practice to point two server urls to the same server?
Posted
by
Niro
on Server Fault
See other posts from Server Fault
or by Niro
Published on 2011-11-17T22:11:42Z
Indexed on
2011/11/18
1:53 UTC
Read the original article
Hit count: 505
I have a system where there are connections to a memcache server from several different files and servers.
I would like to stay with one server but keep the option of increasing the number of memcache servers (for periods of of high traffic).
My idea is to tell memcache there are two servers, while the two urls will point (by DNS) to a single server. In the future if I want I can add a server and change DNS without changing the code in many places.
Is this a good practice? Is there a performance cost to the fact that there are two server connections but they both point to the same server?
Any other idea how to achive instant expeandability of memcache capacity without need to change the code and deploy ?
© Server Fault or respective owner