add drone information to multinode demo instructions
This commit is contained in:
parent
dcf82c024f
commit
58c0508f94
30
README.md
30
README.md
|
@ -84,17 +84,24 @@ Now start the server:
|
||||||
$ ./multinode-demo/leader.sh
|
$ ./multinode-demo/leader.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
To run a performance-enhanced fullnode on Linux,
|
|
||||||
[CUDA 9.2](https://developer.nvidia.com/cuda-downloads) must be installed on
|
|
||||||
your system:
|
|
||||||
```bash
|
|
||||||
$ ./fetch-perf-libs.sh
|
|
||||||
$ SOLANA_CUDA=1 ./multinode-demo/leader.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
Wait a few seconds for the server to initialize. It will print "Ready." when it's ready to
|
Wait a few seconds for the server to initialize. It will print "Ready." when it's ready to
|
||||||
receive transactions.
|
receive transactions.
|
||||||
|
|
||||||
|
Drone
|
||||||
|
---
|
||||||
|
|
||||||
|
In order for the below test client and validators to work, we'll also need to
|
||||||
|
spin up a drone to give out some test tokens. The drone delivers Milton
|
||||||
|
Friedman-style "air drops" (free tokens to requesting clients) to be used in
|
||||||
|
test transactions.
|
||||||
|
|
||||||
|
Start the drone on the leader node with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ ./multinode-demo/drone.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
Multinode Testnet
|
Multinode Testnet
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -104,15 +111,18 @@ To run a multinode testnet, after starting a leader node, spin up some validator
|
||||||
$ ./multinode-demo/validator.sh ubuntu@10.0.1.51:~/solana 10.0.1.51
|
$ ./multinode-demo/validator.sh ubuntu@10.0.1.51:~/solana 10.0.1.51
|
||||||
```
|
```
|
||||||
|
|
||||||
To run a performance-enhanced fullnode on Linux,
|
To run a performance-enhanced leader or validator (on Linux),
|
||||||
[CUDA 9.2](https://developer.nvidia.com/cuda-downloads) must be installed on
|
[CUDA 9.2](https://developer.nvidia.com/cuda-downloads) must be installed on
|
||||||
your system:
|
your system:
|
||||||
```bash
|
```bash
|
||||||
$ ./fetch-perf-libs.sh
|
$ ./fetch-perf-libs.sh
|
||||||
$ SOLANA_CUDA=1 ./multinode-demo/leader.sh ubuntu@10.0.1.51:~/solana 10.0.1.51
|
$ SOLANA_CUDA=1 ./multinode-demo/leader.sh
|
||||||
|
$ SOLANA_CUDA=1 ./multinode-demo/validator.sh ubuntu@10.0.1.51:~/solana 10.0.1.51
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Testnet Client Demo
|
Testnet Client Demo
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -106,15 +106,17 @@ configure_metrics
|
||||||
tune_networking() {
|
tune_networking() {
|
||||||
# Reference: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360
|
# Reference: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360
|
||||||
[[ $(uname) = Linux ]] && (
|
[[ $(uname) = Linux ]] && (
|
||||||
set -x
|
set -x +e
|
||||||
# test the existence of the sysctls before trying to set them
|
# test the existence of the sysctls before trying to set them
|
||||||
|
# go ahead and return true and don't exit if these calls fail
|
||||||
sysctl net.core.rmem_max 2>/dev/null 1>/dev/null &&
|
sysctl net.core.rmem_max 2>/dev/null 1>/dev/null &&
|
||||||
sudo sysctl -w net.core.rmem_max=26214400 1>/dev/null 2>/dev/null
|
sudo sysctl -w net.core.rmem_max=26214400 1>/dev/null 2>/dev/null
|
||||||
|
|
||||||
sysctl net.core.rmem_default 2>/dev/null 1>/dev/null &&
|
sysctl net.core.rmem_default 2>/dev/null 1>/dev/null &&
|
||||||
sudo sysctl -w net.core.rmem_default=26214400 1>/dev/null 2>/dev/null
|
sudo sysctl -w net.core.rmem_default=26214400 1>/dev/null 2>/dev/null
|
||||||
|
:
|
||||||
)
|
)
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SOLANA_CONFIG_DIR=${SNAP_DATA:-$PWD}/config
|
SOLANA_CONFIG_DIR=${SNAP_DATA:-$PWD}/config
|
||||||
|
|
Loading…
Reference in New Issue