scripts
This commit is contained in:
parent
3058f80489
commit
adc655a3a2
12
README.md
12
README.md
|
@ -47,14 +47,14 @@ $ echo 1000000000 | cargo run --release --bin solana-mint-demo > mint-demo.json
|
|||
$ cat mint-demo.json | cargo run --release --bin solana-genesis-demo > genesis.log
|
||||
```
|
||||
|
||||
Before you start the server, make sure you know the IP address of the machine ou want to be the leader for the demo, and make sure that udp ports 8000-10000 are open on all the machines you wan to test with. Now you can start the server:
|
||||
Before you start the server, make sure you know the IP address of the machine ou want to be the leader for the demo, and make sure that udp ports 8000-10000 are open on all the machines you want to test with. Running this command the first time will generate an identity for the leader `leader.json`. Now you can start the server:
|
||||
|
||||
```bash
|
||||
$ cat ./multinode-demo/leader.sh
|
||||
#!/bin/bash
|
||||
export RUST_LOG=solana=info
|
||||
sudo sysctl -w net.core.rmem_max=26214400
|
||||
cat genesis.log leader.log | cargo run --release --features cuda --bin solana-fullnode -- -s leader.json -l leader.json -b 8000 -d 2>&1 | tee leader-tee.log
|
||||
cat genesis.log | cargo run --release --bin solana-fullnode -- -s leader.json -l leader.json -b 8000 -d 2>&1 | tee leader-tee.log
|
||||
$ ./multinode-demo/leader.sh
|
||||
```
|
||||
|
||||
|
@ -69,11 +69,9 @@ $ cat ./multinode-demo/validator.sh
|
|||
rsync -v -e ssh $1:~/solana/mint-demo.json .
|
||||
rsync -v -e ssh $1:~/solana/leader.json .
|
||||
rsync -v -e ssh $1:~/solana/genesis.log .
|
||||
rsync -v -e ssh $1:~/solana/leader.log .
|
||||
rsync -v -e ssh $1:~/solana/libcuda_verify_ed25519.a .
|
||||
export RUST_LOG=solana=info
|
||||
sudo sysctl -w net.core.rmem_max=26214400
|
||||
cat genesis.log leader.log | cargo run --release --features cuda --bin solana-fullnode -- -l validator.json -s validator.json -v leader.json -b 9000 -d 2>&1 | tee validator-tee.log
|
||||
cat genesis.log | cargo run --release --bin solana-fullnode -- -l validator.json -s validator.json -v leader.json -b 9000 -d 2>&1 | tee validator-tee.log
|
||||
$ ./multinode-demo/validator.sh ubuntu@10.0.1.51 #The leader machine
|
||||
```
|
||||
|
||||
|
@ -91,7 +89,9 @@ cat mint-demo.json | cargo run --release --bin solana-client-demo -- -l leader.j
|
|||
$ ./multinode-demo/client.sh ubuntu@10.0.1.51 #The leader machine
|
||||
```
|
||||
|
||||
Try starting a more validators and reruning the client demo!
|
||||
Try starting a more validators and reruning the client demo and change the `-n 1` option in `client.sh`!
|
||||
|
||||
To enable cuda, downlaod the cuda library (see #Benchmarking) and add `--features=cuda` to the leader and validator scripts (`--release --features=cuda`).
|
||||
|
||||
Developing
|
||||
===
|
||||
|
|
Loading…
Reference in New Issue