Closed Bug 834849 Opened 11 years ago Closed 11 years ago

carbon-cache's console.log needs to be rotated regularly

Categories

(mozilla.org Graveyard :: Server Operations, task)

x86
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ericz, Assigned: ericz)

Details

Attachments

(1 file)

Graphite rotates all of it's log except console.log.  This file gets written to frequently and can get quite large.  Right now it's over 3GB on two of our graphite servers.  We should rotate this file regularly.
Attached file logroated config
(In reply to Rick Bryce [:rbryce] from comment #1)
> Created attachment 707180 [details]
> logroated config

ericz - you probably know better how long we need to keep these log file, if it at all.  The attached config should suffice for now.
We probably don't need to keep it very long.  I see now that other carbon logs are being rotated but not cleaned up so we can probably apply a similar logrotate config to them.
console.log is all setup now.  I capped it at a smaller size because logrotate has to restart carbon-cache after rotating the log and while carbon-cache writes out any metrics in it's cache during the restart it is unavailable to accept new metrics, thus we want to minimize that time.

As previously noted the other carbon logs are rotated by carbon but never cleaned up.  I'll make a cron job to clean up those.
Added clean-old-graphite-logs root cron job to delete logs older than 15 days.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: