#Slow database access through Tailscale VPN
2 messages · Page 1 of 1 (latest)
New reply sent from Central Station thread:
I have the same issue.
Our friend Claude Code had some insights after some analysis:Userspace networking
— all packets processed in userspace, not kernel
DERP relay fallback
— traffic bouncing through Tailscale's relay servers instead of going direct
Small UDP buffers + low MTU
— container restrictions
3a) UDP buffer sizes are restricted:
failed to force-set UDP read buffer size to 7340032: operation not permitted
failed to force-set UDP write buffer size to 7340032: operation not permitted
The kernel defaults are much smaller, which directly impacts WireGuard throughput.
3b) MTU is 1360
Lower MTU means more packets for the same data, adding overhead.
Unfortunately, both of these are Railway container restrictions — you can't change kernel UDP buffer sizes or MTU settings without elevated privileges.@railway Is there anything that can be done about this? My current throughput is limited to about 0.5Mbit/s when using Tailscale.
You're seeing this because this thread has been automatically linked to the Central Station thread.