Skip to content

device: make peer queue sizing explicit and independent of global - #100

Merged
illotum merged 1 commit into
tailscalefrom
illotum/peer-queue-size
Sep 28, 2026
Merged

illotum merged 1 commit into
tailscalefrom
illotum/peer-queue-size

Conversation

@illotum

@illotum illotum commented Sep 24, 2026 •

Copy link
Copy Markdown

Unlike TUN, the Bind provides no easy scaling factor for the device-wide inbound queue. Size the device-wide queues from their own values and let the caller state the scaling it wants.

WithQueueOutboundSize and WithQueueInboundSize now set the device-wide queue and, unless overridden, the matching per-peer queue. WithPeerQueueOutboundSize and WithPeerQueueInboundSize override the per-peer queues regardless of the order options are given in.

Updates: tailscale/corp#48168

Comment thread device/device_test.go
Comment thread device/device.go
Comment thread device/device.go

@jwhited jwhited left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit needs a github issue. Just docs nits. LGTM.

@illotum
illotum force-pushed the illotum/peer-queue-size branch from 9ad5331 to 68c32a0 Compare September 28, 2026 21:42
Unlike TUN, the Bind provides no easy scaling factor for the device-wide
inbound queue. Size the device-wide queues from their own values and let
the caller state the scaling it wants.

WithQueueOutboundSize and WithQueueInboundSize now set the device-wide
queue and, unless overridden, the matching per-peer queue.
WithPeerQueueOutboundSize and WithPeerQueueInboundSize override the
per-peer queues regardless of the order options are given in.

Updates: tailscale/corp#48168
Signed-off-by: Alex Valiushko <alexvaliushko@tailscale.com>
Change-Id: Iaa0a1a12e940ddf4f5ca44ade86417df6a6a6964
@illotum
illotum force-pushed the illotum/peer-queue-size branch from 68c32a0 to d69891b Compare September 28, 2026 21:48
@illotum
illotum merged commit 45a234e into tailscale Sep 28, 2026
15 checks passed
@illotum
illotum deleted the illotum/peer-queue-size branch September 28, 2026 21:50
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.

3 participants