Dual shipping v2 + Refactor and optimize HTTP compression#10162
Merged
Dual shipping v2 + Refactor and optimize HTTP compression#10162
Conversation
ruthnaebeck
suggested changes
Dec 9, 2021
djmitche
suggested changes
Dec 10, 2021
Contributor
djmitche
left a comment
There was a problem hiding this comment.
Thanks for the great PR description and diagrams -- they really helped me to understand this from a high level. Let's make sure that information is captured in the codebase itself, for everyone who reads this code after it's landed!
I have a bunch of notes below, but I think the big "request changes" bit is the races in the sender.
Co-authored-by: ruthnaebeck <19349244+ruthnaebeck@users.noreply.github.com>
…og-agent into brian/dual-ship-v2
sgnn7
reviewed
Dec 13, 2021
djmitche
reviewed
Dec 14, 2021
ruthnaebeck
suggested changes
Dec 17, 2021
Co-authored-by: ruthnaebeck <19349244+ruthnaebeck@users.noreply.github.com>
djmitche
approved these changes
Dec 22, 2021
Contributor
djmitche
left a comment
There was a problem hiding this comment.
Nice fixes to the sender!
sgnn7
approved these changes
Dec 23, 2021
8 tasks
9 tasks
gh123man
added a commit
that referenced
this pull request
May 10, 2022
Enable reliable dual shipping by default. Reliable dual shipping is a better default behavior with little performance overhead. See #10162 for details
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.
What does this PR do?
Measured improvements:
Summary of changes
To make review easier since this is a large PR, here are the highlights/major areas to look at:
Overview
The pipeline has rearranged:
OLD
NEW
Here is an informal diagram of the data flow before and after moving things around:
The sender used to contain the strategy and the destinations. It managed the actual process of encoding and sending logs which was mixed between those 3 pieces. Now they are broken apart with the following responsibilities:
Notable changes
Endpointsthat are eitheris_reliableor not. Reliable endpoints are all treated the same and can block the pipeline.Config changes
Motivation
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test your changes
Non Agent-core teams
Agent core QA
Local QA
the
-dflag puts them in debug mode so they will stream logs to stdoutget some logs flowing through the agent. Warning if you use
DD_LOGS_CONFIG_CONTAINER_COLLECT_ALLyou will create a feedback loop from the mock intake containers. I'd recommend spawning a dedicated logging container.Watch the logs flow in both intakes.
Kill one of the intakes
agent statusto see that # of bytes read is not increasing (pipeline should be blocked)App QA
Now instead of using mock intakes - use two real Datadog intakes. You will need 2 API keys each from different orgs.
Stream some logs and watch the livetail in both orgs for the logs.
Further testing
For extra validation you can:
Reviewer's Checklist
Triagemilestone is set.team/..label has been applied, if known.changelog/no-changeloglabel has been applied.qa/skip-qalabel is not applied.need-change/operatorandneed-change/helmlabels have been applied.