Bug 1506855 - Logging inside the ES pod can result in filling the local docker volume on the pod's host
Summary: Logging inside the ES pod can result in filling the local docker volume on th...
Keywords:
Status: CLOSED DUPLICATE of bug 1568361
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: RFE
Version: 3.7.0
Hardware: All
OS: Linux
high
high
Target Milestone: ---
: 3.8.0
Assignee: Jeff Cantrill
QA Contact: Xiaoli Tian
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-27 02:00 UTC by Peter Portante
Modified: 2018-04-27 20:18 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-27 20:18:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Peter Portante 2017-10-27 02:00:27 UTC
Since 3.4 we have been directing Elasticsearch to only log to a file local to the ES pod.  This behavior was implemented to avoid a feedback loop where logs from the Elasticsearch pod itself caused additional logs to be generated.

However, we recently observed a problem that results from this state.  If an ES pod runs out of disk space for its PV, the Elasticsearch java process can generate a large volume of logs for every operation that fails because of a lack of diskspace.  This filled the local disk holding the docker volumes on the infrastructure node where the ES pod was running.

We propose three steps to address this problem:

1. Log to a location on the persistent volume
2. Use a log4j file handler that will
   rotate the file by size instead of date
   one that will also compress the rotated local file
   one that will also cap the total number of log files kept
3. Provide defaults for the log files of 10 MB cap, keeping at most 10

Comment 1 Jeff Cantrill 2017-10-27 13:15:09 UTC
Captured in card https://trello.com/c/KqWiDOHT/ as an RFE

Comment 2 Jeff Cantrill 2017-10-27 13:39:48 UTC
Targeting for 3.8 as this can be manually worked around by editing the configmap and pointing the log location to the PV

Comment 4 Jeff Cantrill 2018-04-27 20:18:55 UTC

*** This bug has been marked as a duplicate of bug 1568361 ***


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