-
Notifications
You must be signed in to change notification settings - Fork 543
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
[foreman] Size limit production.log and ssl logs #3821
base: main
Are you sure you want to change the base?
Conversation
Adds a (high) default sizelimit to `production.log` and foreman `*ssl.log` collections to avoid potentially causing out of space issues on systems with large active logs. Signed-off-by: Jake Hunsaker <[email protected]>
@pmoravec let's chat about this before merging anywhere. I understand this log is very verbose and big, hence the current "collect it all" posture. However, I just ran into a situation where collecting an sos report on our (thankfully, lab) Satellite caused an out-of-space issue due to our production.log being over 1.5GB and having a relatively small /var/tmp partition per policy. So, I'd like to add at least some kind of bounding here, but I get that it needs to be unusually (for sos) high for a default limit for it to be of any use to support engineers. 500 was a bit of an off the hip number, so happy to discuss raising or lowering it. |
Congratulations! One of the builds has completed. 🍾 You can install the built RPMs by following these steps:
Please note that the RPMs should be used only in a testing environment. |
Cc @pafernanr who knows more about max sizes of the logfile(s). I hit some customers who disabled logrotation and had either of the two files really / ridiculously huge. So some limit makes sense. Let me do some checks internally, we should reply in a week or two. Preliminary check on some sosreports: the biggest My stats are based on few tens of sosreports only. But on the scale from "get all data required for investigation, whatever size it is" via "get reasonable data of reasonable size" to "get some data of sosreport size suitable every time", the compromise of 500MB seems a good value to me. Raw data of filesizes in bytes:
and:
|
Hello, I think I will be able to provide valuable stats for Regards, |
Find below inittial stats for over 200 sos reports (included @pmoravec and other colleagues) access.log (100Mb increment)Mb(>) count production.log (100Mb increment)Mb(>) count I'm still trying to get more accurate stats for production.log. Let's see what can be done. |
@pmoravec @pafernanr - any preferences based on that data? It looks like 500 would get the majority, but I am also open to raising it a bit further. |
Hello @TurboTurtle, Setting it to 500 is a good choice IMO. The extra time/resource consumption should be asumible for those big-foreman-infrastructure users, and that file size should contain most than enough time range to look at any "recent" issue. @pmoravec ¿? |
+1 for 500, seems as the best compromise. |
Adds a (high) default sizelimit to
production.log
and foreman*ssl.log
collections to avoid potentially causing out of space issues on systems with large active logs.Please place an 'X' inside each '[]' to confirm you adhere to our Contributor Guidelines