From 360949a2a6e3bdbfe1b49a0efefc4e38bb4aefaf Mon Sep 17 00:00:00 2001 From: Joe Elliott Date: Tue, 12 Nov 2024 14:55:30 -0500 Subject: [PATCH] less memory means less pages Signed-off-by: Joe Elliott --- modules/generator/storage/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/generator/storage/config.go b/modules/generator/storage/config.go index b6879b763db..3e1b6c96da7 100644 --- a/modules/generator/storage/config.go +++ b/modules/generator/storage/config.go @@ -52,7 +52,7 @@ func agentDefaultOptions() agentOptions { WALSegmentSize: defaultOptions.WALSegmentSize, WALCompression: defaultOptions.WALCompression, StripeSize: defaultOptions.StripeSize, - TruncateFrequency: defaultOptions.TruncateFrequency, + TruncateFrequency: 15 * time.Minute, // the default truncate frequency is 2h which consumes a lot of standing memory to store all the series. this means we can incur at most a 15m network outage before data loss MinWALTime: defaultOptions.MinWALTime, MaxWALTime: defaultOptions.MaxWALTime, NoLockfile: defaultOptions.NoLockfile,