Repository: kafka Updated Branches: refs/heads/trunk 4a6bbd5f1 -> 8d7492016
KAFKA-3754; Add GC log retention policy to limit size of log Add a default log retention policy to keep GC logs from growing too large Author: Ryan P <ryan.n.pridg...@gmail.com> Reviewers: Ismael Juma <ism...@juma.me.uk> Closes #1431 from rnpridgeon/KAFKA-3754 Project: http://git-wip-us.apache.org/repos/asf/kafka/repo Commit: http://git-wip-us.apache.org/repos/asf/kafka/commit/8d749201 Tree: http://git-wip-us.apache.org/repos/asf/kafka/tree/8d749201 Diff: http://git-wip-us.apache.org/repos/asf/kafka/diff/8d749201 Branch: refs/heads/trunk Commit: 8d749201632618e66fbc7077d730e5fac5e157a5 Parents: 4a6bbd5 Author: Ryan P <ryan.n.pridg...@gmail.com> Authored: Wed May 3 10:43:34 2017 +0100 Committer: Ismael Juma <ism...@juma.me.uk> Committed: Wed May 3 10:51:32 2017 +0100 ---------------------------------------------------------------------- bin/kafka-run-class.sh | 2 +- docs/upgrade.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/kafka/blob/8d749201/bin/kafka-run-class.sh ---------------------------------------------------------------------- diff --git a/bin/kafka-run-class.sh b/bin/kafka-run-class.sh index af10f61..cdd0483 100755 --- a/bin/kafka-run-class.sh +++ b/bin/kafka-run-class.sh @@ -245,7 +245,7 @@ GC_FILE_SUFFIX='-gc.log' GC_LOG_FILE_NAME='' if [ "x$GC_LOG_ENABLED" = "xtrue" ]; then GC_LOG_FILE_NAME=$DAEMON_NAME$GC_FILE_SUFFIX - KAFKA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps " + KAFKA_GC_LOG_OPTS="-Xloggc:$LOG_DIR/$GC_LOG_FILE_NAME -verbose:gc -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M" fi # If Cygwin is detected, classpath is converted to Windows format. http://git-wip-us.apache.org/repos/asf/kafka/blob/8d749201/docs/upgrade.html ---------------------------------------------------------------------- diff --git a/docs/upgrade.html b/docs/upgrade.html index ee8ab0e..227c728 100644 --- a/docs/upgrade.html +++ b/docs/upgrade.html @@ -65,6 +65,7 @@ the change is minor since a message batch may consist of only a single message, so the limitation on the size of individual messages is only reduced by the overhead of the batch format. This similarly affects the producer's <code>batch.size</code> configuration.</li> + <li>GC log rotation is enabled by default, see KAFKA-3754 for details.</li> </ul> <h5><a id="upgrade_1100_new_protocols" href="#upgrade_1100_new_protocols">New Protocol Versions</a></h5>