I setup 2 master node and 2 data node on 2 different machines, each machine have 1 master and 1 data node. Assume that 2 machines are in different data centre.
Setting is as follows:
Topology file:
<Configuration><Topology></Configuration><DataCenter name="dc1"></Topology><Rack name="rack1"></DataCenter> <DataCenter name="dc2"><Ip>19.168.1.1</Ip></Rack><Rack name="rack1"></DataCenter><Ip>192.168.1.2</Rack>
machine1 (192.168.1.1):
$ weed master -ip=192.168.1.1 -port=9333 -mdir=/home/test/dev/weed-fs/master -defaultReplication=100 $ weed volume -dir=/home/test/dev/weed-fs/data -ip=192.168.1.1 -port=8080 -mserver=192.168.1.1:9333
machine2 (192.168.1.2):
$ weed master -ip=192.168.1.2 -port=9333 -mdir=/home/test/dev/weed-fs/master -defaultReplication=100 -peers=192.168.1.1:9333 $ weed volume -dir=/home/test/dev/weed-fs/data -ip=192.168.1.2 -port=8080 -mserver=192.168.1.2:9333
It was quite smooth for upload and download at first. Replication did well as well. But after switching the leader node from machine 1 to machine 2, machine 2 did not take over as the leader.
Could you please help me to check if my setting was wrong?
How did you "switching the leader node from machine 1 to machine"?
--
You received this message because you are subscribed to the Google Groups "Weed File System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weed-file-syst...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You will need some wait time before the volumes updates their statues on master leader.