-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[8.14](backport #40081) [debugPrintProcessor]: exit directly when log doesn't have debug level enabled #40126
Conversation
Cherry-pick of 58f4fc8 has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
This pull request doesn't have a |
This pull request has not been merged yet. Could you please review and merge it @pkoutsovasilis? 🙏 |
@pkoutsovasilis we will have our first 8.14.3 today, could you please take care of this one asap? |
hi @pierrehilbert, as far as I can tell this PR isn't required for 8.14.x as the change that introduced the PS: I don't remember adding the backport 8.14 on the original PR 😀 |
@cmacknz added it, from what I can understand in this comment #40081 (comment), we need it for standalone Beats prior to 8.15 |
interesting... The commit that introduced it is this de3318d and I see it only in branches
|
I think Craig was talking about 83dfb2f |
good morning @pierrehilbert, I still think that this PR is not required. Maybe @cmacknz you can help us here? 🙂 |
This pull request has not been merged yet. Could you please review and merge it @pkoutsovasilis? 🙏 |
1 similar comment
This pull request has not been merged yet. Could you please review and merge it @pkoutsovasilis? 🙏 |
Proposed commit message
This PR is the aftermath of profiling the netflow integration test of this PR (PS: the pcap I used as input is ~25MB thus I won't include it in beats repo)
So this is the cpu profile flamegraph before the commit of this PR
As we can see
debugPrintProcessor
is invoked and we pay the "performance" price of encoding every event in json even when our log isn't set up with DEBUG level.The respective cpu profile flamegraph after this PR with debugPrintProcessor still being there but exiting directly when log DEBUG is not enabled
Extracting the average EPS of the aformentioned netflow integration tested on my local macbook with a local ES inside a container
Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
N/A
Author's Checklist
N/A
How to test this PR locally
Help get this PR merged or clone it and apply this small commit there 🙂
run go profiler against TestNetFlowIntegration
Related issues
Use cases
N/A
Screenshots
Look at description
Logs
N/A
This is an automatic backport of pull request #40081 done by Mergify.