Open codecoron opened 3 months ago
Hi, @codecoron, thank you for posting the issue.
The issue is caused by the wrong README, please start it with
./raft --http-address 0.0.0.0:5000 --raft-address 192.168.0.105:6000 --rpc-address=0.0.0.0:7000 --serf-address 192.168.0.105:8000 --data-dir /node0 --bootstrap
When use --bootstrap
?
The flag can be used when this is a new created cluster, and this node is the first started node of the cluster.
When use this flag, it will: check if there is raft state(the raft configuration, include the data, peers .etc) in the data folder, if there is no state, it will bootstrap a new raft cluster, otherwise, it will start as a memeber of existed raft cluster.
when i trying to run raft-example in my arm ubuntu vm,i get this trouble.
when i remove
--bootstrap true
, it seem to work successfully. i wonder how--bootstrap
work?leaving my arm ubuntu machine info.