On Wed, Dec 2, 2009 at 9:40 AM, Binish Abraham <[email protected]> wrote:

> I solved the issue.
> By default there is one port which connects master and slave.
> If we need to specify the port it need to be set as follows
> master
>  memcached -u root -m 48 -d -l node1 -p 12000 -X 14000
>
> slave
>  memcached -u root -m 48 -l node2 -p 12001 -x node1 -X 4000
>
>   On Mon, Nov 23, 2009 at 5:52 PM, Bini <[email protected]> wrote:
>
>> 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
>>
>
>

Reply via email to