-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add option to log to file #814
Conversation
One downside here is that |
Well that's a pity :/ |
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.
Only looked at the Rust code
@siegfriedweber would you be willing to review this PR? I think you are the best person to do so, as you can best asses the Also you know the vector transformation far better |
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.
Only minor things. The transform rule is implemented very well.
Co-authored-by: Siegfried Weber <mail@siegfriedweber.net>
I just browsed through the comments here but: No rotation by size is a pretty big blocker for me. Is that really the case? |
Currently, yes. :/ Looks like tokio-rs/tracing#2497 is seeing some movement again, but it's still ultimately blocked on upstream tracing actually merging it. Or we could fork it ourselves, technically (sliiightly less of a mess than h2, since this is a direct dependency rather than a transitive one, but still). |
Hmmm....this is only for operators though, correct? I was thinking of stackabletech/issues#574 but for the operators I'm way less worried. Still not great. |
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.
LGTM if no one vetoes it because of size-based rolling.
No veto from me |
Operators and sidecars (like the OPA bundle builder). |
I also wouldn't veto this, but have a somewhat bad feeling about this. The log rate of the bunde-builder is not that high, so it should be fine. My bad feeling can be much improved by having it running for some hours (e.g. in the e2e-security-demo), collect some basic usage numbers and do some napkin math if the emptyDir is big enough ;) |
Generally, bundle builder's log rate depends primarily on how often the regorule configmaps are modified. It should be very quiet for a demo, but I'm not sure how well that correlates to practical user environments. |
Well in practice I'd expect regorules to be fairly static.. After about a minute's hammering (constant writes every ~100ms) the logs grew to ~400KB. Extrapolating from that into the six allowed hourly files, that's ~144MB. Not great, but also hopefully not a super realistic scenario. That said, I agree that, long term, returning to size rotation would be ideal. |
Created #828 for rotation followup. |
Description
Fixes #795
Definition of Done Checklist
Author
Reviewer
Acceptance