Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix burst of PacketInQueue #5456

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Fix burst of PacketInQueue #5456

merged 1 commit into from
Aug 31, 2023

Conversation

tnqn
Copy link
Member

@tnqn tnqn commented Aug 30, 2023

The burst was not effective because the number of tokens was hardcoded to 1, leading to 10ms delay when processing every successive DNS response. For example, in some scenario it takes a client 10 DNS queries to get a valid DNS response, the later 9 DNS responses would be delayed 90ms in total. This affected the DNS resolution delay when a Pod has any FQDN policy applied.

This commit fixes the burst setting of the PacketInQueue. The connection time of accessing a FQDN is reduced from 134ms to 41ms according to my test.

For #5446

@tnqn tnqn added area/network-policy Issues or PRs related to network policies. action/backport Indicates a PR that requires backports. action/release-note Indicates a PR that should be included in release notes. labels Aug 30, 2023
The burst was not effective because the number of tokens was hardcoded
to 1, leading to 10ms delay when processing every successive DNS
response. For example, in some scenario it takes a client 10 DNS queries
to get a valid DNS response, the later 9 DNS responses would be delayed
90ms in total. This affected the DNS resolution delay when a Pod has any
FQDN policy applied.

This commit fixes the burst setting of the PacketInQueue. The connection
time of accessing a FQDN is reduced from 134ms to 41ms according to my
test.

Signed-off-by: Quan Tian <[email protected]>
@jianjuns
Copy link
Contributor

/test-all

Copy link
Contributor

@GraysonWu GraysonWu left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/backport Indicates a PR that requires backports. action/release-note Indicates a PR that should be included in release notes. area/network-policy Issues or PRs related to network policies. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants