parent
1759968c1e
commit
854c62e208
|
@ -11,10 +11,10 @@ ensure_env || exit 1
|
|||
cat > /etc/sysctl.d/20-solana-node.conf <<EOF
|
||||
|
||||
# Solana networking requirements
|
||||
net.core.rmem_default=1610612736
|
||||
net.core.rmem_max=1610612736
|
||||
net.core.wmem_default=1610612736
|
||||
net.core.wmem_max=1610612736
|
||||
net.core.rmem_default=134217728
|
||||
net.core.rmem_max=134217728
|
||||
net.core.wmem_default=134217728
|
||||
net.core.wmem_max=134217728
|
||||
|
||||
# Solana earlyoom setup
|
||||
kernel.sysrq=$(( $(cat /proc/sys/kernel/sysrq) | 64 ))
|
||||
|
|
|
@ -4,11 +4,11 @@ set -ex
|
|||
[[ $(uname) = Linux ]] || exit 1
|
||||
[[ $USER = root ]] || exit 1
|
||||
|
||||
sudo sysctl -w net.core.rmem_default=1610612736
|
||||
sudo sysctl -w net.core.rmem_max=1610612736
|
||||
sudo sysctl -w net.core.rmem_default=134217728
|
||||
sudo sysctl -w net.core.rmem_max=134217728
|
||||
|
||||
sudo sysctl -w net.core.wmem_default=1610612736
|
||||
sudo sysctl -w net.core.wmem_max=1610612736
|
||||
sudo sysctl -w net.core.wmem_default=134217728
|
||||
sudo sysctl -w net.core.wmem_max=134217728
|
||||
|
||||
echo "MaxAuthTries 60" | sudo tee -a /etc/ssh/sshd_config
|
||||
sudo service sshd restart
|
||||
|
|
|
@ -32,10 +32,10 @@ sysctl_write() {
|
|||
case $(uname) in
|
||||
Linux)
|
||||
# Reference: https://medium.com/@CameronSparr/increase-os-udp-buffers-to-improve-performance-51d167bb1360
|
||||
sysctl_write net.core.rmem_max 161061273
|
||||
sysctl_write net.core.rmem_default 161061273
|
||||
sysctl_write net.core.wmem_max 161061273
|
||||
sysctl_write net.core.wmem_default 161061273
|
||||
sysctl_write net.core.rmem_max 134217728
|
||||
sysctl_write net.core.rmem_default 134217728
|
||||
sysctl_write net.core.wmem_max 134217728
|
||||
sysctl_write net.core.wmem_default 134217728
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue