Skip to content

feat(dc): Add reuseport_ebpf builder option#3113

Merged
mehnazyunus merged 1 commit into
aws:mainfrom
mehnazyunus:builder-option
Jun 9, 2026
Merged

feat(dc): Add reuseport_ebpf builder option#3113
mehnazyunus merged 1 commit into
aws:mainfrom
mehnazyunus:builder-option

Conversation

@mehnazyunus

@mehnazyunus mehnazyunus commented Jun 8, 2026

Copy link
Copy Markdown
Member

Release Summary:

Resolved issues:

n/a

Description of changes:

Add a with_attach_reuseport_ebpf builder option to the server that allows callers to attach a custom eBPF program to each listening socket via SO_ATTACH_REUSEPORT_EBPF, enabling custom load-balancing of incoming connections across a SO_REUSEPORT group. When configured, SO_REUSEPORT is enabled on the socket even with a single worker, since the kernel requires it for the eBPF attachment. The BPF program fd is shared via Arc<OwnedFd> and the setsockopt call is issued after listen() on Linux only.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mehnazyunus mehnazyunus marked this pull request as ready for review June 8, 2026 23:37
@mehnazyunus mehnazyunus requested review from a team as code owners June 8, 2026 23:37
@mehnazyunus mehnazyunus merged commit 9dd2ba4 into aws:main Jun 9, 2026
198 of 199 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