Skip to content

Conversation

@kvinwang
Copy link
Collaborator

@kvinwang kvinwang commented Feb 2, 2026

Summary

  • Add /etc/sysctl.d/99-dstack.conf to CVM guest image with nf_conntrack_max = 2097152
  • Add conntrack tuning guide to deployment docs

Context

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 CVM
  • docs/deployment.md: Conntrack tuning troubleshooting section

Test results

  • File and recipe verified correct (dstack-guest.bb installs to ${sysconfdir}/sysctl.d/)
  • Full guest image build blocked by unrelated Rust toolchain mismatch (Yocto has rustc 1.86, home@0.5.12 requires 1.88) — not caused by this PR

@kvinwang kvinwang merged commit a092b00 into master Feb 2, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants