feat(s2n-quic-dc): Increase background handshake jitter #2670
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.
Release Summary:
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.