Clark Boylan 8938136179 Configure native Gerrit log rotation and cleanup
Prior to Gerrit 3.10 Gerrit would automatically rotate and compress log
files; however, it would not delete them. With Gerrit 3.10 you can now
configure a time to keep value for rotated log files and Gerrit will
delete files older than the keep value.

Explicitly configure log compression and rotation to true (these are
the defaults but being explicit here makes sense to me if setting time
to keep) and add a 30 day timeToKeep value. This matches our current
Gerrit log pruning cronjob retention period of 30 days. Landing this
under Gerrit 3.9 should be safe then when we upgrade to 3.10 we can
remove our cronjob and rely on Gerrit to do this for us.

Note that cleanup happens in Gerrit at midnight and our cronjob runs at
0600. These should be separated by enough time that we can safely have
both running after the upgrade.

Change-Id: I4219e48c1fab5da97f80130d45badb759af680a1
2024-11-04 10:31:17 -08:00
..