Skip to content

Commit

Permalink
add drone information to multinode demo instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-solana committed Jul 13, 2018
1 parent b253ed0 commit 64f88d6
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 12 deletions.
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ $ source $HOME/.cargo/env
Now checkout the code from github:

```bash
$ git clone https://github.com/solana-labs/solana.git
$ git clone https://github.com/solana-labs/solana.git
$ cd solana
```

Expand Down Expand Up @@ -84,16 +84,23 @@ Now start the server:
$ ./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:
Wait a few seconds for the server to initialize. It will print "Ready." when it's ready to
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
$ ./fetch-perf-libs.sh
$ SOLANA_CUDA=1 ./multinode-demo/leader.sh
$ ./multinode-demo/drone.sh
```

Wait a few seconds for the server to initialize. It will print "Ready." when it's ready to
receive transactions.

Multinode Testnet
---
Expand All @@ -104,15 +111,18 @@ To run a multinode testnet, after starting a leader node, spin up some validator
$ ./multinode-demo/validator.sh [email protected]:~/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
your system:
```bash
$ ./fetch-perf-libs.sh
$ SOLANA_CUDA=1 ./multinode-demo/leader.sh [email protected]:~/solana 10.0.1.51
$ SOLANA_CUDA=1 ./multinode-demo/leader.sh
$ SOLANA_CUDA=1 ./multinode-demo/validator.sh [email protected]:~/solana 10.0.1.51

```



Testnet Client Demo
---

Expand Down
6 changes: 4 additions & 2 deletions multinode-demo/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,17 @@ configure_metrics
tune_networking() {
# Reference: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360
[[ $(uname) = Linux ]] && (
set -x
set -x +e
# 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 &&
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 &&
sudo sysctl -w net.core.rmem_default=26214400 1>/dev/null 2>/dev/null
:
)
return 0

}

SOLANA_CONFIG_DIR=${SNAP_DATA:-$PWD}/config
Expand Down

0 comments on commit 64f88d6

Please sign in to comment.