Only tune networking for leader/validator

This commit is contained in:
Michael Vines
2018-07-02 17:35:28 -07:00
committed by Grimes
parent e09b8430ce
commit 253048f72d
3 changed files with 8 additions and 1 deletions

View File

@ -56,7 +56,10 @@ solana_mint=$(solana_program mint)
export RUST_LOG=${RUST_LOG:-solana=info} # if RUST_LOG is unset, default to info
export RUST_BACKTRACE=1
[[ $(uname) = Linux ]] && (set -x; sudo sysctl -w net.core.rmem_max=26214400 1>/dev/null 2>/dev/null)
tune_networking() {
[[ $(uname) = Linux ]] && (set -x; sudo sysctl -w net.core.rmem_max=26214400 1>/dev/null 2>/dev/null)
}
SOLANA_CONFIG_DIR=${SNAP_DATA:-$PWD}/config
SOLANA_CONFIG_PRIVATE_DIR=${SNAP_DATA:-$PWD}/config-private