-
Notifications
You must be signed in to change notification settings - Fork 905
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
cleanup(userspace/falco)!: improvements to the http output perf. #2602
Conversation
891819a
to
7f277b6
Compare
/milestone 0.36.0 |
We also need to support output reloading! TODO. |
No problem, really. We don't need to support http output reloading since it is just a "close file open file" behavior (it is not linked to any config update). |
7f277b6
to
edc88d9
Compare
Rebased on top of master. |
/cc @leogr original author of the http output :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this! Some comments about the style and one more important comment about what we want to do with "echo" config
Still asking myself why we initialized curl at every iteration... are we missing something? @leogr |
edc88d9
to
7f18061
Compare
Rebased and fixed up @Andreagit97 suggestions! |
7f18061
to
40130bc
Compare
submodules/falcosecurity-rules
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need this :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouch :/
40130bc
to
5d9595d
Compare
IMO this is ready, could you rebase please? @FedeDP |
:( i hate falcosecurity-rules submodule @jasondellaluce 😆 |
Moreover, add option to disable stdout echoing. Signed-off-by: Federico Di Pierro <[email protected]>
5d9595d
to
37f1c95
Compare
Bumped rules to latest master version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
@Andreagit97 Thus, we should have everything ok. |
cool! thank you for the explanation :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just left a comment, otherwise SGTM!
…l for reasons. Signed-off-by: Federico Di Pierro <[email protected]> Co-authored-by: Leonardo Grasso <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, leogr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
Improves http_output performance by creating the curl handle just once with all its options; then it's just a matter of performing the call with the correct post fields.
Moreover, add an option to disable server answer echoing to stdout.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: