Merge "Configure native Gerrit log rotation and cleanup"

This commit is contained in:
Zuul 2024-12-04 20:08:24 +00:00 committed by Gerrit Code Review
commit e39aab11ba
2 changed files with 6 additions and 0 deletions

View File

@ -349,6 +349,8 @@
# Gerrit rotates their own logs, but doesn't clean them out
# Delete logs older than a month
# TODO set state to absent then remove entirely after we upgrade to
# Gerrit 3.10 and set log.timeToKeep to do this rotation natively.
- name: Set up cron job to clean old gerrit logs
cron:
name: clear-gerrit-logs

View File

@ -42,6 +42,10 @@
javaHome = /usr/lib/jvm/java-17-openjdk-amd64
javaOptions = "-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance"
javaOptions = "-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance"
[log]
rotate = true
compress = true
timeToKeep = 30d
[gc]
[core]
packedGitOpenFiles = {{ gerrit_packed_git_open_files }}