feat: add conntrack sysctl config for CVM guest #488
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
/etc/sysctl.d/99-dstack.confto CVM guest image withnf_conntrack_max = 2097152Context
Default
nf_conntrack_max(262,144) causes silent packet drops when gateway proxies >100K concurrent connections. Each proxied connection uses ~2 conntrack entries, so the default limit caps effective concurrency at ~131K.Load testing confirmed: increasing to 2M enabled 200K concurrent TLS connections at 100% success rate.
Changes
basefiles/sysctl.d/99-dstack.conf: New sysctl config file installed into CVMdocs/deployment.md: Conntrack tuning troubleshooting sectionTest results
dstack-guest.bbinstalls to${sysconfdir}/sysctl.d/)home@0.5.12requires 1.88) — not caused by this PR