diff --git a/README.md b/README.md index 4d2bd2afd..0d3df1ec9 100644 --- a/README.md +++ b/README.md @@ -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 ``` @@ -84,17 +84,24 @@ 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: -```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 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 --- @@ -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 ``` -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 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 --- diff --git a/multinode-demo/common.sh b/multinode-demo/common.sh index d9aac5481..84edfde7d 100644 --- a/multinode-demo/common.sh +++ b/multinode-demo/common.sh @@ -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