lib/db: Configurable block GC time (#6295)

Also retain the interval over restarts by storing last GC time in the
database. This to make sure that GC eventually happens even if the
interval is configured to a long time (say, a month).
This commit is contained in:
Jakob Borg
2020-01-26 15:13:28 +01:00
committed by GitHub
parent 8fc2dfad0c
commit bf4c8439e8
3 changed files with 40 additions and 2 deletions
+4
View File
@@ -119,6 +119,10 @@ are mostly useful for developers. Use with care.
"h", "m" and "s" abbreviations for hours minutes and seconds.
Valid values are like "720h", "30s", etc.
STGCBLOCKSEVERY Set to a time interval to override the default database
block GC interval of 13 hours. Same format as the
STRECHECKDBEVERY variable.
GOMAXPROCS Set the maximum number of CPU cores to use. Defaults to all
available CPU cores.