Hi, I tried to use the following commands to start memcached with replication master memcached -u root -m 48 -d -l node1 -p 12000 slave memcached -u root -m 48 -l node2 -p 12001 -x node1 -X 12000
I was able to set and get values from node1 but no replica is found in node2. Not port is open in node2(12000 or 12001) details from node2 before killing of the process in node1 netstat -nap | grep memcached tcp 0 0 node2:32843 node1:12000 ESTABLISHED 27747/memcached unix 3 [ ] STREAM CONNECTED 40689 27747/ memcached unix 3 [ ] STREAM CONNECTED 40688 27747/ memcached [r...@node2 ~]# netstat -nap | grep 1200 tcp 0 0 node2:32843 node1:12000 ESTABLISHED 27747/memcached After killing the process in node1 the details are as follows [r...@node2 ~]# netstat -nap | grep memcached tcp 0 node2:12000 0.0.0.0:* LISTEN 27747/memcached tcp 0 0 node2:12001 0.0.0.0:* LISTEN 27747/memcached udp 0 0 node2:11211 0.0.0.0:* 27747/memcached unix 3 [ ] STREAM CONNECTED 40689 27747/ memcached unix 3 [ ] STREAM CONNECTED 40688 27747/ memcached [r...@node2 ~]# netstat -nap | grep 1200 tcp 0 0 node2:12000 0.0.0.0:* LISTEN 27747/memcached tcp 0 0 node2:12001 0.0.0.0:* LISTEN 27747/memcached but the keys set in node1 are not available in node2 Thanks in advance
