aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-10-04 14:43:52 +0200
committerGitHub <[email protected]>2023-10-04 14:43:52 +0200
commit632d8505be910671696fc2e9f5e48364a33f8ebe (patch)
tree784103905c34b7e7af0ffd75db4937e37466d9e4
parent0.2.26-pre1 (diff)
downloadzen-632d8505be910671696fc2e9f5e48364a33f8ebe.tar.xz
zen-632d8505be910671696fc2e9f5e48364a33f8ebe.zip
shared server config (#438)v0.2.26-pre1
Shared instance: - Tweak full GC interval - Add lightweight GC config - Add memlayer GC config
-rw-r--r--upstream-config-templates/zen_config.lua.j212
1 files changed, 9 insertions, 3 deletions
diff --git a/upstream-config-templates/zen_config.lua.j2 b/upstream-config-templates/zen_config.lua.j2
index 3cb0f8331..64d46422b 100644
--- a/upstream-config-templates/zen_config.lua.j2
+++ b/upstream-config-templates/zen_config.lua.j2
@@ -15,9 +15,10 @@ network = {
}
gc = {
- intervalseconds = 86400,
+ intervalseconds = 28800, -- every 8 hour
+ lightweight-interval-seconds = 3600, -- every hour
cache = {
- maxdurationseconds = 864000,
+ maxdurationseconds = 864000, -- 10 days
}
}
@@ -37,4 +38,9 @@ cache = {
ddcnamespace = "ue.ddc",
}
}
-} \ No newline at end of file
+ memlayer = {
+ targetfootprint = 1073741824, -- 1 GB
+ triminterval = 120, -- max every 2 minutes
+ maxage = 172800, -- 2 days
+ }
+}