Merge "Configure native Gerrit log rotation and cleanup"
This commit is contained in:
commit
e39aab11ba
@ -349,6 +349,8 @@
|
|||||||
|
|
||||||
# Gerrit rotates their own logs, but doesn't clean them out
|
# Gerrit rotates their own logs, but doesn't clean them out
|
||||||
# Delete logs older than a month
|
# 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
|
- name: Set up cron job to clean old gerrit logs
|
||||||
cron:
|
cron:
|
||||||
name: clear-gerrit-logs
|
name: clear-gerrit-logs
|
||||||
|
@ -42,6 +42,10 @@
|
|||||||
javaHome = /usr/lib/jvm/java-17-openjdk-amd64
|
javaHome = /usr/lib/jvm/java-17-openjdk-amd64
|
||||||
javaOptions = "-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance"
|
javaOptions = "-Dflogger.backend_factory=com.google.common.flogger.backend.log4j.Log4jBackendFactory#getInstance"
|
||||||
javaOptions = "-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance"
|
javaOptions = "-Dflogger.logging_context=com.google.gerrit.server.logging.LoggingContext#getInstance"
|
||||||
|
[log]
|
||||||
|
rotate = true
|
||||||
|
compress = true
|
||||||
|
timeToKeep = 30d
|
||||||
[gc]
|
[gc]
|
||||||
[core]
|
[core]
|
||||||
packedGitOpenFiles = {{ gerrit_packed_git_open_files }}
|
packedGitOpenFiles = {{ gerrit_packed_git_open_files }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user