Sample instructions are incorrect
- proposer and acceptor are using same port
- sample client does not accept arguments
./sample/client 127.0.0.1:5550 1
Usage: ./sample/client [path/to/paxos.conf] [-h] [-o] [-v] [-p]
Comments (7)
-
-
reporter https://bitbucket.org/sciascid/libpaxos/pull-requests/14/fix-up-instructions-to-run-the-example/diff
I put up a PR a while ago
-
I really appreciate it. Could you also teach me what should I do next? After I run those in the command line, I keep getting stdout like:
[3] 39162 [4] 39163 [5] 39164 [6] 39165 29 Oct 16:58:32. Connect to 127.0.0.1:8810 29 Oct 16:58:32. Connect to 127.0.0.1:8811 29 Oct 16:58:32. Connect to 127.0.0.1:8812 Connected to proposer 29 Oct 16:58:32. Connected to 127.0.0.1:8810 29 Oct 16:58:32. Connected to 127.0.0.1:8811 29 Oct 16:58:32. Connected to 127.0.0.1:8812 0 value/sec, 0.00 Mbps, latency min 0 us max 0 us avg 0 us 0 value/sec, 0.00 Mbps, latency min 0 us max 0 us avg 0 us 0 value/sec, 0.00 Mbps, latency min 0 us max 0 us avg 0 us
Shuold I stop it? Should I use unit tests?
-
reporter Ok I updated the PR. The original example works but you need to change the config.
-
What do u mean by original example?
./sample/client 127.0.0.1:5550 1
Is this one? If it is, I still get usage message.
Or the one you updated yesterday? I got some output like
3852 value/sec, 2.82 Mbps, latency min 184 us max 7279 us avg 297 us 4327 value/sec, 3.17 Mbps, latency min 157 us max 3268 us avg 267 us
I also tried to write the output from proposer into a file, and it shows that
4 30 Oct 10:36:03. Connection refused (127.0.0.1:8800) 5 30 Oct 10:36:03. Connection refused (127.0.0.1:8801)
Which means I did not connect to acceptor, I think. Also, no output for acceptors. What goes wrong.
-
reporter ./sample acceptor 0 ../paxos.conf ./sample acceptor 1 ../paxos.conf ./sample proposer 0 ../paxos.conf ./sample learner ../paxos.conf ./sample client
and then your config should be:
acceptor 0 127.0.0.1 8800 acceptor 1 127.0.0.1 8801 proposer 0 127.0.0.1 5550 lmdb-env-path /tmp/acceptor
-
I think it should be
./sample/acceptor 0 ../paxos.conf & ./sample/acceptor 1 ../paxos.conf & ./sample/proposer 0 ../paxos.conf & ./sample/learner ../paxos.conf & ./sample/client
a slash in the path of each file, and & symbol after each line?
The config file I do the same change as you.
My question is, how could I see that how Paxos do by running this example.
- Log in to comment
I have the same issue :)