Warn on kernel socket buffer clamping at UDP startup

Log a warning when the kernel clamps SO_RCVBUF or SO_SNDBUF below
the requested size, directing the operator to increase rmem_max or
wmem_max. Document buffer size defaults and sysctl requirements in
the Docker config template.
This commit is contained in:
Johnathan Corgan
2026-02-19 15:38:14 +00:00
parent f825fa242f
commit 5ab05a5f30
2 changed files with 21 additions and 0 deletions
@@ -19,6 +19,12 @@ transports:
udp:
bind_addr: "0.0.0.0:4000"
mtu: 1472
# recv_buf_size: 2097152 # 2 MB (default)
# send_buf_size: 2097152 # 2 MB (default)
# Note: The kernel clamps socket buffers to net.core.rmem_max / wmem_max.
# Ensure these sysctls are >= the configured buffer sizes:
# sysctl -w net.core.rmem_max=2097152
# sysctl -w net.core.wmem_max=2097152
peers:
{{PEERS}}