fix(dnstap source): increase request limit for TCP dnstap source#23448
Merged
pront merged 4 commits intovectordotdev:masterfrom Aug 6, 2025
Merged
fix(dnstap source): increase request limit for TCP dnstap source#23448pront merged 4 commits intovectordotdev:masterfrom
pront merged 4 commits intovectordotdev:masterfrom
Conversation
Contributor
Author
|
@jszwedko Could this get in before the release? It is a small change, but it prevents the issue that forces some users to use 0.47.0 |
Member
Contributor
Author
|
Sorry, I must have left it a draft by accident. It is ready, I will add a changelog. |
pront
approved these changes
Aug 6, 2025
pront
reviewed
Aug 6, 2025
esensar
added a commit
to esensar/vector
that referenced
this pull request
Aug 6, 2025
8 tasks
github-merge-queue bot
pushed a commit
that referenced
this pull request
Aug 6, 2025
…size` (#23537) * chore(dnstap source): change type of `max_frame_handling_tasks` to `usize` Related: #23448 (comment) * Clippy fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Uses
max_frame_handling_taskssetting to increase the default request limit. By default,max_frame_handling_tasksis 1000 and since the code for this component only handles 1 event for each permit, this translates well into this usage. This greatly reduces time lost by re-acquiring permits and waiting for connections that produce no data to drop the permits.Vector configuration
How did you test this PR?
Started Vector with the above configuration, connected (THREAD COUNT - 1) dnstap clients that send no data and then connected 64 more. Observing via
vector top, before #23123, this managed 200-300k events/sec, but it often produced errors and crashed connections. After #23123, this scenario dropped to <10k events/sec. After this fix, it is close to the original (still a bit less, but still in 200-300k events/sec range) and no errors appear. This can further be controlled withmax_frame_handling_tasks, which is already used in this component - default is 1000, but performance can further be improved, although it doesn't make much difference if it is already higher than connection count.Change Type
Is this a breaking change?
Does this PR include user facing changes?
no-changeloglabel to this PR.References
Notes
@vectordotdev/vectorto reach out to us regarding this PR.pre-pushhook, please see this template.cargo fmt --allcargo clippy --workspace --all-targets -- -D warningscargo nextest run --workspace(alternatively, you can runcargo test --all)git merge origin masterandgit push.Cargo.lock), pleaserun
cargo vdev build licensesto regenerate the license inventory and commit the changes (if any). More details here.