Skip to content

Conversation

Mark-Simulacrum
Copy link
Collaborator

Release Summary:

  • feat(s2n-quic-dc): Increase background handshake jitter

Resolved issues:

n/a

Description of changes:

This decreases the simultaneous concurrency we should expect by further distributing background handshakes across every minute by spreading both the start time of our cleaner loop (now starting at ~any millisecond) and the individual handshakes to smaller batches.

In practice simultaneous handshakes aren't particularly advantageous (we have low roundtrip times, so handshake latency is dominated by the single CPU thread performing them) so reducing batch size makes sense to help improve latencies.

Call-outs:

We don't have a good test bed for this change -- our primary tests are about the application-forced handshakes, not the background rate, and the background rate observations from them aren't necessarily reflective of production. That said, this should be essentially "purely good", and we will notice if it produces some unexpected results in our poor test bed.

Testing:

Just changing constants that aren't specifically tested. I'm hoping to test this in our test bed but wanted to get this posted in the meantime for initial review.

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

This decreases the simultaneous concurrency we should expect by further
distributing background handshakes across every minute by spreading both
the start time of our cleaner loop (now starting at ~any millisecond)
and the individual handshakes to smaller batches.

In practice simultaneous handshakes aren't particularly advantageous (we
have low roundtrip times, so handshake latency is dominated by the
single CPU thread performing them) so reducing batch size makes sense to
help improve latencies.
@maddeleine maddeleine merged commit f84b71a into aws:main Jun 16, 2025
118 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