diff options
| author | Dan Engelbrecht <[email protected]> | 2023-05-16 12:23:42 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-16 12:23:42 +0200 |
| commit | a4ff07d68eeae66c008bfac28cb87c94a92cf257 (patch) | |
| tree | 630940f228c35d29fac31ced2ba7f9fd16fca1c8 /src/zenserver/config.h | |
| parent | Added CHANGELOG.md descriptions for recent changes (diff) | |
| download | zen-a4ff07d68eeae66c008bfac28cb87c94a92cf257.tar.xz zen-a4ff07d68eeae66c008bfac28cb87c94a92cf257.zip | |
Add `--gc-projectstore-duration-seconds` option (#281)
* Add `--gc-projectstore-duration-seconds` option
* Cleanup lua gc options parsing
* Remove dead configuration values
* changelog
Diffstat (limited to 'src/zenserver/config.h')
| -rw-r--r-- | src/zenserver/config.h | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/src/zenserver/config.h b/src/zenserver/config.h index caf4adce7..4f63e2644 100644 --- a/src/zenserver/config.h +++ b/src/zenserver/config.h @@ -69,32 +69,26 @@ struct ZenUpstreamCacheConfig struct ZenCacheEvictionPolicy { - uint64_t DiskSizeLimit = ~uint64_t(0); - uint64_t MemorySizeLimit = 1024 * 1024 * 1024; - int32_t MaxDurationSeconds = 24 * 60 * 60; - uint64_t DiskSizeSoftLimit = 0; - uint64_t MinimumFreeDiskSpaceToAllowWrites = 256u * 1024u * 1024u; - bool Enabled = true; + int32_t MaxDurationSeconds = 24 * 60 * 60; }; -struct ZenCasEvictionPolicy +struct ZenProjectStoreEvictionPolicy { - uint64_t LargeStrategySizeLimit = ~uint64_t(0); - uint64_t SmallStrategySizeLimit = ~uint64_t(0); - uint64_t TinyStrategySizeLimit = ~uint64_t(0); - bool Enabled = true; + int32_t MaxDurationSeconds = 7 * 24 * 60 * 60; }; struct ZenGcConfig { - ZenCasEvictionPolicy Cas; - ZenCacheEvictionPolicy Cache; - int32_t MonitorIntervalSeconds = 30; - int32_t IntervalSeconds = 0; - bool CollectSmallObjects = true; - bool Enabled = true; - uint64_t DiskReserveSize = 1ul << 28; - uint64_t MinimumFreeDiskSpaceToAllowWrites = 1ul << 28; + // ZenCasEvictionPolicy Cas; + ZenCacheEvictionPolicy Cache; + ZenProjectStoreEvictionPolicy ProjectStore; + int32_t MonitorIntervalSeconds = 30; + int32_t IntervalSeconds = 0; + bool CollectSmallObjects = true; + bool Enabled = true; + uint64_t DiskReserveSize = 1ul << 28; + uint64_t DiskSizeSoftLimit = 0; + uint64_t MinimumFreeDiskSpaceToAllowWrites = 1ul << 28; }; struct ZenOpenIdProviderConfig |