add drone information to multinode demo instructions

This commit is contained in:
Rob Walker
2018-07-13 16:22:02 -07:00
parent dcf82c024f
commit 58c0508f94
2 changed files with 25 additions and 13 deletions

View File

@ -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