Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-8357

enable rolling in default log settings

    XMLWordPrintableJSON

Details

    • Hide
      The default log4j configuration has changed: Besides the existing rolling of log files on startup of Flink, they also roll once they've reached a size of 100MB. Flink keeps a total of 10 log files, effectively limiting the total size of the log directory to 1GB (per Flink service logging to that directory)
      Show
      The default log4j configuration has changed: Besides the existing rolling of log files on startup of Flink, they also roll once they've reached a size of 100MB. Flink keeps a total of 10 log files, effectively limiting the total size of the log directory to 1GB (per Flink service logging to that directory)

    Description

      The release packages uses org.apache.log4j.FileAppender for log4j and ch.qos.logback.core.FileAppender for logback, which could results in very large log files.

      For most cases, if not all, we need to enable rotation in a production cluster, and I suppose it's a good idea to make rotation as default.

      Attachments

        Issue Links

          Activity

            People

              joern Jörn Kottmann
              mingmxu Mingmin Xu
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m