Skip to content

Commit

Permalink
update scripts do run five nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
eaneto committed May 8, 2024
1 parent 521aba1 commit 618b747
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
6 changes: 4 additions & 2 deletions scripts/node1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

export ROG_HOME=~/.rog1
RUST_LOG=$1 ./target/debug/rog-server --port 7878 \
--id 1 --node-ids 2 --node-ids 3 \
--id 1 --node-ids 2 --node-ids 3 --node-ids 4 --node-ids 5 \
--node-addresses "localhost:7879" \
--node-addresses "localhost:7880"
--node-addresses "localhost:7880" \
--node-addresses "localhost:7881" \
--node-addresses "localhost:7882"
6 changes: 4 additions & 2 deletions scripts/node2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

export ROG_HOME=~/.rog2
RUST_LOG=$1 ./target/debug/rog-server --port 7879 \
--id 2 --node-ids 1 --node-ids 3 \
--id 2 --node-ids 1 --node-ids 3 --node-ids 4 --node-ids 5 \
--node-addresses "localhost:7878" \
--node-addresses "localhost:7880"
--node-addresses "localhost:7880" \
--node-addresses "localhost:7881" \
--node-addresses "localhost:7882"
6 changes: 4 additions & 2 deletions scripts/node3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

export ROG_HOME=~/.rog3
RUST_LOG=$1 ./target/debug/rog-server --port 7880 \
--id 3 --node-ids 1 --node-ids 2 \
--id 3 --node-ids 1 --node-ids 2 --node-ids 4 --node-ids 5 \
--node-addresses "localhost:7878" \
--node-addresses "localhost:7879"
--node-addresses "localhost:7879" \
--node-addresses "localhost:7881" \
--node-addresses "localhost:7882"
9 changes: 9 additions & 0 deletions scripts/node4.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

export ROG_HOME=~/.rog4
RUST_LOG=$1 ./target/debug/rog-server --port 7881 \
--id 4 --node-ids 1 --node-ids 2 --node-ids 3 --node-ids 5 \
--node-addresses "localhost:7878" \
--node-addresses "localhost:7879" \
--node-addresses "localhost:7880" \
--node-addresses "localhost:7882"
9 changes: 9 additions & 0 deletions scripts/node5.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

export ROG_HOME=~/.rog5
RUST_LOG=$1 ./target/debug/rog-server --port 7882 \
--id 5 --node-ids 1 --node-ids 2 --node-ids 3 --node-ids 4 \
--node-addresses "localhost:7878" \
--node-addresses "localhost:7879" \
--node-addresses "localhost:7880" \
--node-addresses "localhost:7881"
2 changes: 1 addition & 1 deletion src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use tokio::{
io::{AsyncReadExt, AsyncWriteExt},
net::{TcpListener, TcpStream},
sync::{Mutex, RwLock},
time::{timeout, Instant},
time::timeout,
};
use tracing::{debug, error, info, trace, warn};

Expand Down

0 comments on commit 618b747

Please sign in to comment.