-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
Synchronous & unbatched audit log writes #67223
Conversation
b738900
to
1989ecb
Compare
Fixed broken tests. |
This could be considered a breaking change as it changes some default flag values. However, I think we should consider it a bug fix since those values didn't make any sense. I regret that we even exposed those options as flags, but we're stuck with them now. |
thanks, bots |
infiniteTimeCh <-chan time.Time = make(chan time.Time) | ||
closedTimeCh = func() <-chan time.Time { | ||
infiniteTimeCh <-chan time.Time | ||
closedTimeCh = func() <-chan time.Time { |
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.
closedTimeCh is not used any more, I think.
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.
Done. Also inlined closedStopCh
.
Copying my question from #61932:
|
Copying my response from #61932 :)
|
/retest |
Thanks! Looks good, please just squash the commits. |
Squashed. /assign @sttts |
/lgtm |
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sttts, tallclair, x13n 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 |
/retest Review the full test history for this PR. Silence the bot with an |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here. |
What this PR does / why we need it:
When enabling buffered audit log file writes to reduce latency under high load, we shouldn't be batching the writes, as the large data write can have an inverse (though unpredictable) impact. Additionally, batched audit log writes should not be done asynchronously, as this just creates lock contention on the log writer.
This is a clean-ed up version of #61217
Which issue(s) this PR fixes
Fixes #61932
Release note:
/sig auth
/priority important-soon
/kind bug
/milestone v1.12