Memcached server: Is it a good practice to point two server urls to the same server?
- by Niro
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 ?