From 632d8505be910671696fc2e9f5e48364a33f8ebe Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Wed, 4 Oct 2023 14:43:52 +0200 Subject: shared server config (#438) Shared instance: - Tweak full GC interval - Add lightweight GC config - Add memlayer GC config --- upstream-config-templates/zen_config.lua.j2 | 12 +++++++++--- 1 file 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 + } +} -- cgit v1.2.3