-
Notifications
You must be signed in to change notification settings - Fork 3.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
logconfig: update file sink log validation config #132742
Conversation
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @aa-joshi and @arjunmahishi)
-- commits
line 8 at r1:
Missing release note describing the change, this is required here because docs need to be updated and it's user-facing.
pkg/util/log/logconfig/validate.go
line 377 at r1 (raw file):
if *fc.Auditable { return errors.Newf(`File-based audit logging cannot coexist with buffered writes. ` + `Disable either the buffered-writes or auditable log configuration.`)
nit: should we put buffered-writes
or auditable
in quotes like above to signify that they're literal values in the yaml?
3c731b6
to
6513cfc
Compare
Previously, you can configure auditable & buffered sink at once in file sink log config. These configuration shouldn't co-exist. To address this, we have added a validation that both these configuration shouldn't co-exist. Epic: CRDB-37534 Release note (ops change): Added log file sink validation for co-existing of audit logging & buffering configurations. This validation makes sure that only one of them should present.
6513cfc
to
56c0f1e
Compare
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.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @arjunmahishi and @dhartunian)
Previously, dhartunian (David Hartunian) wrote…
Missing release note describing the change, this is required here because docs need to be updated and it's user-facing.
Done.
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.
Reviewed 2 of 2 files at r2, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @arjunmahishi)
TFTR! bors r+ |
Previously we added a file sink log validation (cockroachdb#132742). This change updates message so that message is clear to the user. Epic: CRDB-37534 Release note (ops change): Updated the file sink log validation message. This would give clear indication to user about the expected valid configuration.
Previously we added a file sink log validation (cockroachdb#132742). This change updates message so that message is clear to the user. Epic: CRDB-37534 Release note (ops change): Updated the file sink log validation message. This would give clear indication to user about the expected valid configuration.
Previously we added a file sink log validation (cockroachdb#132742). This change updates message so that message is clear to the user. Epic: CRDB-37534 Release note (ops change): Updated the file sink log validation message. This would give clear indication to user about the expected valid configuration.
132899: logconfig: update file sink log validation message r=aa-joshi a=aa-joshi Previously we added a file sink log validation (#132742). This change updates message so that message is clear to the user. Epic: CRDB-37534 Release note (ops change): Updated the file sink log validation message. This would give clear indication to user about the expected valid configuration. Co-authored-by: Akshay Joshi <akshay@cockroachlabs.com>
Update the default logging configuration used for roachprod clusters to disable auditable logs on logs going to file sinks. Some roachtests use the buffered:true configuration to withstand disk stall events. This setting is incompatible with auditable logs on file sinks and recently introduced validation (cockroachdb#132742) prohibits the settings from being used together. Release note: none Informs cockroachdb#129922. Informs cockroachdb#132988. Epic: none
132916: kvserver: clear rac2 token metrics prior to integration testing r=sumeerbhola a=kvoli `TestFlowControl.*V2` tests assert on exact counters. This can be problematic if benign deltas occur while setting up the test, such a send queue forming when adding a new learner, but being quickly resolved. Clear the token metrics prior to commencing these tests, in order to prevent flakes that result from such deltas in setup. Fixes: #132642 Release note: None 133089: roachprod: update default CockroachDB logging configuration r=dhartunian a=jbowens Update the default logging configuration used for roachprod clusters to disable auditable logs on logs going to file sinks. Some roachtests use the buffered:true configuration to withstand disk stall events. This setting is incompatible with auditable logs on file sinks and recently introduced validation (#132742) prohibits the settings from being used together. Release note: none Informs #129922. Informs #132988. Epic: none Co-authored-by: Austen McClernon <austen@cockroachlabs.com> Co-authored-by: Jackson Owens <jackson@cockroachlabs.com>
Update the default logging configuration used for roachprod clusters to disable auditable logs on logs going to file sinks. Some roachtests use the buffered:true configuration to withstand disk stall events. This setting is incompatible with auditable logs on file sinks and recently introduced validation (#132742) prohibits the settings from being used together. Release note: none Informs #129922. Informs #132988. Epic: none
Previously, you can configure auditable & buffered sink at once in file sink log config. These configuration shouldn't co-exist. To address this, we have added a validation that both these configuration shouldn't co-exist.
Epic: CRDB-37534
Sample onfiguration & error message:
file-defaults: dir: cockroach-data/logs max-file-size: 10MiB max-group-size: 100MiB buffered-writes: false filter: INFO format: crdb-v2 redact: false redactable: true exit-on-error: true auditable: true buffering: max-staleness: 1s flush-trigger-size: 256KiB max-buffer-size: 50MiB