aboutsummaryrefslogtreecommitdiff
path: root/zenserver/config.h
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-12-09 16:17:56 +0100
committerPer Larsson <[email protected]>2021-12-09 16:17:56 +0100
commitd9dad00a33657c8759ca3551de4139136d16143b (patch)
tree2757d5fbf6b442766b4d6ea269ba2ca8cbbe537c /zenserver/config.h
parentGC default off. (diff)
downloadzen-d9dad00a33657c8759ca3551de4139136d16143b.tar.xz
zen-d9dad00a33657c8759ca3551de4139136d16143b.zip
Added options for Z$ max duration and whether to collect small objects.
Diffstat (limited to 'zenserver/config.h')
-rw-r--r--zenserver/config.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/zenserver/config.h b/zenserver/config.h
index 727143489..086f761fc 100644
--- a/zenserver/config.h
+++ b/zenserver/config.h
@@ -57,26 +57,27 @@ struct ZenUpstreamCacheConfig
struct ZenCacheEvictionPolicy
{
- bool Enabled = true;
- uint64_t DiskSizeLimit = ~uint64_t(0);
- uint64_t MemorySizeLimit = 1024 * 1024 * 1024;
+ uint64_t DiskSizeLimit = ~uint64_t(0);
+ uint64_t MemorySizeLimit = 1024 * 1024 * 1024;
+ int32_t MaxDurationSeconds = 24 * 60 * 60;
+ bool Enabled = true;
};
struct ZenCasEvictionPolicy
{
- bool Enabled = true;
- bool ContainerGcEnabled = true;
uint64_t LargeStrategySizeLimit = ~uint64_t(0);
uint64_t SmallStrategySizeLimit = ~uint64_t(0);
uint64_t TinyStrategySizeLimit = ~uint64_t(0);
+ bool Enabled = true;
};
struct ZenGcConfig
{
ZenCasEvictionPolicy Cas;
ZenCacheEvictionPolicy Cache;
- int32_t IntervalSeconds = 60 * 60;
- bool Enabled = false;
+ int32_t IntervalSeconds = 60 * 60;
+ bool CollectSmallObjects = false;
+ bool Enabled = false;
};
struct ZenServerOptions