Skip to content

Commit

Permalink
MM-58178: Apply server side TCP buffer settings to client (#740)
Browse files Browse the repository at this point in the history
In our investigation, we could see more packet drops on the client
side than server side. This would indicate that the TCP buffer
sizes on the client side need some bumping as well.

https://mattermost.atlassian.net/browse/MM-58178
  • Loading branch information
agnivade authored May 10, 2024
1 parent 310c728 commit dcc986f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deployment/terraform/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,16 @@ net.ipv4.tcp_fin_timeout = 30
# Reuse TIME-WAIT sockets for new outgoing connections.
net.ipv4.tcp_tw_reuse = 1
# TCP buffer sizes are tuned for 10Gbit/s bandwidth and 0.5ms RTT (as measured intra EC2 cluster).
# This gives a BDP (bandwidth-delay-product) of 625000 bytes.
net.ipv4.tcp_rmem = 4096 156250 625000
net.ipv4.tcp_wmem = 4096 156250 625000
net.core.rmem_max = 312500
net.core.wmem_max = 312500
net.core.rmem_default = 312500
net.core.wmem_default = 312500
net.ipv4.tcp_mem = 1638400 1638400 1638400
`

const serverSysctlConfig = `
Expand Down

0 comments on commit dcc986f

Please sign in to comment.