Bug 1470191 - ODL Logging configuration needs to be optimized
Summary: ODL Logging configuration needs to be optimized
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: puppet-opendaylight
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 12.0 (Pike)
Assignee: Janki
QA Contact: Itzik Brown
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-12 13:50 UTC by Tim Rozet
Modified: 2018-10-18 07:19 UTC (History)
10 users (show)

Fixed In Version: puppet-opendaylight-4.1.0-0.20170728021921.3768d5e.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
N/A
Last Closed: 2017-12-13 21:40:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenDaylight Bug 8854 0 None None None 2017-07-13 15:07:19 UTC
OpenDaylight gerrit 60294 0 None None None 2017-07-13 15:08:54 UTC
OpenDaylight gerrit 60602 0 None None None 2017-07-26 10:18:53 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Tim Rozet 2017-07-12 13:50:53 UTC
Description of problem:
Right now we configure ODL logging to use 10 karaf files which rotate after one is full.  The size is also too small in comparison to the amount of logging ODL produces.  We should modify the configuration to use a single file and have a very large file limit.  Ideally we want ODL logging to be part of systemd journaling.

Comment 1 Sam Hague 2017-07-12 14:07:35 UTC
We should configure the logging to use a single large file. [1] is the link to the shell script in the upstream job for configuring a single large file. The script sets the size to 30GB but in normal practice it is less than 50MB.

The final config would look like:

modify file: org.ops4j.pax.logging.cfg

log4j.appender.out.maxBackupIndex=1
log4j.appender.out.maxFileSize=30GB

[1] https://github.com/opendaylight/releng-builder/blob/master/jjb/integration/include-raw-integration-configure-clustering.sh#L80

Comment 2 Janki 2017-07-26 10:18:54 UTC
Upstream pacthes cherry-picked for Carbon:
https://git.opendaylight.org/gerrit/#/c/60759/

Comment 7 Michael Vorburger 2017-07-27 16:42:17 UTC
> Ideally we want ODL logging to be part of systemd journaling

==> Bug 1475951 ...

Comment 8 Janki 2017-07-28 05:17:57 UTC
Cherry-pick to stable carbon https://git.opendaylight.org/gerrit/#/c/60816/

Comment 11 Janki 2017-08-16 14:12:06 UTC
With this change, there would be 2 files generated of size 10 GB each.

Comment 12 Itzik Brown 2017-08-21 11:00:08 UTC
Verified with opendaylight-6.1.0-2.el7ost.noarch

Comment 15 errata-xmlrpc 2017-12-13 21:40:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:3462


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