Align HA sysctl values with load-test server config#8939
Align HA sysctl values with load-test server config#8939agarciamontoro merged 2 commits intomasterfrom
Conversation
The sysctl block on the High Availability deployment page targets
Mattermost server hosts but mirrored the load-test agent (client)
values, which are tuned for a different role. Align it with the
serverSysctlConfig used by mattermost-load-test-ng to validate large
concurrent-user deployments:
- Raise tcp_rmem/tcp_wmem max from 625000 to 2500000 (4x BDP) and
expand the comment to describe the autotuning ceiling.
- Raise net.core.{r,w}mem_max from 312500 to 16777216 and dedupe the
surrounding comments (mirrors mattermost-load-test-ng#987, which
removed the redundant double-assignment that set the same keys
twice for UDP and TCP).
- Drop rmem_default/wmem_default/tcp_mem, which only belong in the
client/agent block and were copied here in error.
📝 WalkthroughWalkthroughDocumentation update to the high-availability cluster deployment guide. Kernel networking memory parameters for WebSocket connections are increased: tcp_rmem and tcp_wmem to 2500000, net.core.rmem_max and net.core.wmem_max to 16777216, with explanatory comments added. ChangesKernel Tuning Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
|
Newest code from mattermost has been published to preview environment for Git SHA d05121f |
|
Newest code from mattermost has been published to preview environment for Git SHA 71f3004 |
Summary
The sysctl block on the High Availability deployment page targets Mattermost server hosts but mirrored the load-test agent (client) values, which are tuned for a different role. Align it with the serverSysctlConfig used by mattermost-load-test-ng to validate large concurrent-user deployments:
Ticket Link
--