Red Hat Bugzilla – Bug 1290355
logrotate for /var/log/candlepin should work daily instead of weekly
Last modified: 2017-08-21 07:20:42 EDT
Description of problem:
/var/log/candlepin would contain ~1GB of files on this system with just 30 registered consumers and 500 clients registered via virt-who.
The logs can be compressed excellently, but logrotate is configured to only run weekly. We should do this daily.
Version-Release number of selected component (if applicable):
No changes in 6.1.4. Any ideas to improve this?
If you would like the log rotation to happen more frequently the /etc/logrotate.d/candlepin configuration file can be edited to whatever frequency you would like.
(In reply to Barnaby Court from comment #3)
> If you would like the log rotation to happen more frequently the
> /etc/logrotate.d/candlepin configuration file can be edited to whatever
> frequency you would like.
sure, this is possible. The idea of this BZ was to provide a more sane default for environments bigger than just a couple of machines and to match other rotations we do daily anyways.
Are you sure that logrotation is happening properly on the system? The size system you are referring to should not result in logs that large even with a weeks worth of data. Could this be an instance of BZ 1212955?
Evgeni, one alternative: Would it be acceptable if the Candlepin logrotate just inherited the system default?
(In reply to Barnaby Court from comment #5)
> Are you sure that logrotation is happening properly on the system? The size
> system you are referring to should not result in logs that large even with a
> weeks worth of data. Could this be an instance of BZ 1212955?
Yes, logrotation works (after fixing the permission issue that is deployed by katello-installer and you mention in BZ 1212955).
The original problem here is that we have many hypervisors which get reported by virt-who (~600 ESXi hosts, virt-who sends updates very often, as it is event-triggered by the VMware API). Please see the attached case for the actual numbers of our deployment. This will not happen with 600 regular systems as they do not report as often as virt-who does for hypervisors.
We currently run with
in candlepin.conf, which makes the log per day shrink from 150MB to 5MB.
But our deployment would explode with the default configuration.
System default is also "weekly", so we would not actually get any better default behavior here.
This is already released in 6.2, I am closing this out as Current release. This was fixed as of candlepin-0.9.54.5-1.