I want to setup a memcached cluster for my PHP app on Ubuntu Natty. I want to setup a 4-node cluster.
I know I can install memcached like so apt-get -y install memcached libmemcached-dev or via source with something a little longer. However, when I’ve done this on the four seperate nodes, I don’t know what I need to do to cluster them. Is there a configuration file I’m supposed to edit and what settings do I need to update?
I’ve googled ‘memcached clustering’ but I can’t seem to find anything definitive.
I’d appreciate some assistance.
Thanks in advance
Memcached clustering happens at the application layer. Your app will need to figure out on it’s own which server to talk to. Each memcached server is configured completely independently. The PHP Memcached library can handle the clustering.