Memcached on Multiple Servers

Install the packages

  1. # yum install memcached python-memcached

Edit the /etc/sysconfig/memcached file

  1. [root@controller1 ~]# cat /etc/sysconfig/memcached                            
  2. PORT="11211"
  3. USER="memcached"
  4. MAXCONN="1024"
  5. CACHESIZE="64"
  6. OPTIONS="-l 127.0.0.1,::1,controller"
  7. Memcached_servers = controller1:11211,controller2:11211,controller3:11211

PCS Create Memcached

  1. # pcs resource delete memcached --force
  2. # pcs resource create memcached systemd:memcached --clone interleave=true
  3. # pcs status

Leave a Reply

Your email address will not be published. Required fields are marked *