From 64f88d648f16481eea2b316c25b38c0e9f963a37 Mon Sep 17 00:00:00 2001 From: Rob Walker Date: Fri, 13 Jul 2018 16:22:02 -0700 Subject: [PATCH] add drone information to multinode demo instructions --- README.md | 30 ++++++++++++++++++++---------- multinode-demo/common.sh | 6 ++++-- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4d2bd2afd3725b..0d3df1ec922b8d 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,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 --- @@ -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 d9aac54817c143..84edfde7d1dc94 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