reduce logging verbosity of mongodb

Bug #1393400 reported by Matthew Mosesohn
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Matthew Mosesohn
5.1.x
Fix Committed
High
Matthew Mosesohn

Bug Description

The current level in place is extremely verbose and generates logs that can fill up disks rather quickly, even with log rotation. I propose reducing default log level to "1" and debug level to "2". It seems that the current level is 5, whcih includes every single function call performed by mongodb.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/134930

Changed in fuel:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.1)

Fix proposed to branch: stable/5.1
Review: https://review.openstack.org/135024

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/134930
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=fa71590a815707c41b01984f892528c42dd633ba
Submitter: Jenkins
Branch: master

commit fa71590a815707c41b01984f892528c42dd633ba
Author: Matthew Mosesohn <email address hidden>
Date: Mon Nov 17 16:14:24 2014 +0400

    Reduce log level for MongoDB

    adding setParameter=logLevel=1 (or 2 for debug) will reduce
    the level that MongoDB puts into logs. The default level is
    too high and should be lowered.
    Removed verbose logging option because it conflicts with this
    parameter.
    Forked commit b59a9cb11ddbc2260785a58440465fd8b30d7a11 from github.com/puppetlabs/puppetlabs-mongodb repository.

    Change-Id: Ibd55af8d2ef57cd12b71c6e7df26526350b4870b
    Closes-Bug: #1393400

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/5.1)

Reviewed: https://review.openstack.org/135024
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=0cf3e7665a9c4faec03358e7a47f9ece0be77b83
Submitter: Jenkins
Branch: stable/5.1

commit 0cf3e7665a9c4faec03358e7a47f9ece0be77b83
Author: Matthew Mosesohn <email address hidden>
Date: Mon Nov 17 16:14:24 2014 +0400

    Reduce log level for MongoDB

    adding setParameter=logLevel=1 (or 2 for debug) will reduce
    the level that MongoDB puts into logs. The default level is
    too high and should be lowered.
    Removed verbose logging option because it conflicts with this
    parameter.
    Forked commit b59a9cb11ddbc2260785a58440465fd8b30d7a11 from github.com/puppetlabs/puppetlabs-mongodb repository.

    Change-Id: Ibd55af8d2ef57cd12b71c6e7df26526350b4870b
    Closes-Bug: #1393400

Revision history for this message
Sergey Galkin (sgalkin) wrote :
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

the logging verbosity should be lowered even more, see https://bugs.launchpad.net/fuel/+bug/1427197

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/160714

no longer affects: fuel/6.1.x
no longer affects: fuel/6.0.x
Revision history for this message
Tomasz 'Zen' Napierala (tzn) wrote :

Why this is not Fix Released?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/160714
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=3f99d39be882cd6a05d4f07f95c3cc8ffb3f4f00
Submitter: Jenkins
Branch: master

commit 3f99d39be882cd6a05d4f07f95c3cc8ffb3f4f00
Author: Bogdan Dobrelya <email address hidden>
Date: Tue Mar 3 10:28:13 2015 +0100

    Fix mongo logs verbosity

    W/o this patch a mongo logs are too huge to be processed by
    logrotate without issues.

    The solution is to reduce the non debug verbosity level for logs
    and do not log all transactions as well (use the quiet option):
    * Sync the quiet parameter from puppetlabs-mongodb v0.10.0
    * Lower the logs verbosity for a non debug case
    * Use the quiet parameter for a non debug case

    Closes-bug: #1427197
    Related-bug: #1393400

    Change-Id: I3a3ba70029167928565baa46a77a5c0c0dbacbe8
    Signed-off-by: Bogdan Dobrelya <email address hidden>
    Signed-off-by: Sergii Golovatiuk <email address hidden>

Roman Rufanov (rrufanov)
tags: added: customer-found support
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-library (stable/6.0)

Related fix proposed to branch: stable/6.0
Review: https://review.openstack.org/383754

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/6.0)

Change abandoned by Denis V. Meltsaykin (<email address hidden>) on branch: stable/6.0
Review: https://review.openstack.org/383754
Reason: Not going to happen

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.