When /var is full we can't log anything anymore.
I think we need to add a warning message when /var reach 95% of its size.
This should be checked at the webapp start, and logs it as a warning.
I think we could display that warning in the webapp (maybe in the 'administration -> policy server' page)
We should also check that information regularly (every day ? ) and logs it.
To sum up, here are my 3 proposals:
Warning when > 95% /var usage :
- Log at Rudder start
- display inside the policy server page.
- check every Day/hour/month and log if needed
Dennis what do you think about those ideas ? would that answer to your needs about log ?
You're right, determining the size needed by Rudder is very complicated.
The postgres is what take most part of it.
We need to add a way to estimates its growth, I'll open another ticket about that subject and reference it here
Dennis, I have other questions about what's happenning when /var is full:
- Does the webapp is still reachable ? (naviagte through pages ? I think writing new things or access to reporting are broken)
- Is restarting works ?