mirror of
https://github.com/filecoin-project/lotus.git
synced 2025-08-06 16:41:19 +08:00
chore: sysctl template, service burst limits (#13050)
* chore: Increase LimitNOFILE and add StartLimit for lotus-daemon service The latter to stop hotloops Signed-off-by: Jakub Sztandera <oss@kubuxu.com> * chore: add template sysctl file for increasing socket buffers Signed-off-by: Jakub Sztandera <oss@kubuxu.com> * Update scripts/98-udp-buf.conf Co-authored-by: Rod Vagg <rod@vagg.org> --------- Signed-off-by: Jakub Sztandera <oss@kubuxu.com> Co-authored-by: Rod Vagg <rod@vagg.org>
This commit is contained in:
5
scripts/98-udp-buf.conf
Normal file
5
scripts/98-udp-buf.conf
Normal file
@ -0,0 +1,5 @@
|
||||
# This configuration file adjusts the UDP buffer sizes for optimal network performance.
|
||||
# It sets the maximum receive (rmem_max) and send (wmem_max) buffer sizes for UDP sockets.
|
||||
# This file is typically placed in the /etc/sysctl.d/ directory.
|
||||
net.core.rmem_max=7500000
|
||||
net.core.wmem_max=7500000
|
@ -10,6 +10,9 @@ ExecStart=/usr/local/bin/lotus daemon
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
StartLimitIntervalSec=60s
|
||||
StartLimitBurst=4
|
||||
|
||||
# If running a node in a shared, memory constrained environment, enable MemoryAccounting to put
|
||||
# pressure on allocations. This will slow the process down but keep it approximately within the
|
||||
# limit specified.
|
||||
@ -17,7 +20,7 @@ RestartSec=10
|
||||
#MemoryHigh=64G
|
||||
#MemoryMax=96G
|
||||
|
||||
LimitNOFILE=8192:10240
|
||||
LimitNOFILE=8192:16384
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Reference in New Issue
Block a user