Increase the number of files a node may have open at a time
This commit is contained in:
@ -46,7 +46,7 @@ if [[ -d $SNAP ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
tune_networking
|
||||
tune_system
|
||||
|
||||
trap 'kill "$pid" && wait "$pid"' INT TERM
|
||||
$program \
|
||||
|
@ -95,10 +95,13 @@ export RUST_BACKTRACE=1
|
||||
# shellcheck source=scripts/configure-metrics.sh
|
||||
source "$(dirname "${BASH_SOURCE[0]}")"/../scripts/configure-metrics.sh
|
||||
|
||||
tune_networking() {
|
||||
tune_system() {
|
||||
# Skip in CI
|
||||
[[ -z $CI ]] || return 0
|
||||
|
||||
# shellcheck source=scripts/ulimit-n.sh
|
||||
source "$(dirname "${BASH_SOURCE[0]}")"/../scripts/ulimit-n.sh
|
||||
|
||||
# Reference: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360
|
||||
if [[ $(uname) = Linux ]]; then
|
||||
(
|
||||
|
@ -167,7 +167,7 @@ rsync_url() { # adds the 'rsync://` prefix to URLs that need it
|
||||
|
||||
rsync_leader_url=$(rsync_url "$leader")
|
||||
|
||||
tune_networking
|
||||
tune_system
|
||||
|
||||
set -ex
|
||||
$rsync -vPr "$rsync_leader_url"/config/ "$ledger_config_dir"
|
||||
|
Reference in New Issue
Block a user