Last modified: 2014-07-17 21:42:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T68458, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 66458 - Service diamond creates 500+ MByte /var/log/diamond/diamond.log
Service diamond creates 500+ MByte /var/log/diamond/diamond.log
Status: RESOLVED FIXED
Product: Wikimedia Labs
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-10 22:39 UTC by Tim Landscheidt
Modified: 2014-07-17 21:42 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Tim Landscheidt 2014-06-10 22:39:53 UTC
I had to delete those files and restart the diamond service on the Tools host because they were clogging up /var/log.

Chase explained in #wikimedia-operations:

| <scfc_de> chasemp: What is /var/log/diamond/diamond.log and is it necessary?
| <chasemp> scfc_de: it's the local log of the statistics polling, it's not
|           necessary in that it won't work without it, but it doesn't logging
|           those details to stdout seemingly so upstart logging isn't useful in
|           those cases.  it's handy but not could-never-live-without

So I'd propose that on Labs, by default this log isn't generated.  A Puppet variable could override this default if there is wider demand for that.
Comment 1 Andrew Bogott 2014-07-17 20:43:16 UTC
On a randomly chosen instance, I see:

-rw-r--r--  1 diamond nogroup  9810916 Jul  2 23:59 archive.log.2014-07-02
-rw-r--r--  1 diamond nogroup  9810168 Jul  3 23:59 archive.log.2014-07-03
-rw-r--r--  1 diamond nogroup  9811659 Jul  4 23:59 archive.log.2014-07-04
-rw-r--r--  1 diamond nogroup  9806164 Jul  5 23:59 archive.log.2014-07-05
-rw-r--r--  1 diamond nogroup  9813206 Jul  6 23:59 archive.log.2014-07-06
-rw-r--r--  1 diamond nogroup 16792013 Jul  7 14:06 diamond.log.2014-07-06
-rw-r--r--  1 diamond nogroup  6444463 Jul  7 15:45 archive.log
-rw-r--r--  1 diamond nogroup  1237334 Jul  8 16:46 diamond.log.2014-07-08
drwxr-xr-x  2 diamond root        4096 Jul 11 19:42 .
-rw-r--r--  1 diamond nogroup      126 Jul 11 19:43 diamond.log

Since it's the 17th, I presume this has somehow been fixed?
Comment 2 Tim Landscheidt 2014-07-17 20:51:34 UTC
Yes, Chase and Yuvi fiddled with diamond quite a bit with the conclusion (IIRC) that it doesn't log at all on Labs.
Comment 3 Yuvi Panda 2014-07-17 21:42:37 UTC
It does log, but only logs errors. We killed the archive handler that logged all the *metrics* being sent, which was causing the huge log files.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links