From 815b5291e034864052771cd3561fea479027e00f Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Mon, 14 Aug 2023 17:08:19 +0100 Subject: [bugfix] fix inconsistent calculated cache sizes (#2115) * use calculated exampleTime instead of `time.Now()` to ensure no locale data, retweak cache ratios * update envparsing test * update default cache memory to 100MiB * fix envparsing with latest cache target default --------- Signed-off-by: kim --- test/envparsing.sh | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'test/envparsing.sh') diff --git a/test/envparsing.sh b/test/envparsing.sh index d9270e7f6..e03dc62f0 100755 --- a/test/envparsing.sh +++ b/test/envparsing.sh @@ -18,32 +18,32 @@ EXPECT=$(cat << "EOF" "application-name": "gts", "bind-address": "127.0.0.1", "cache": { - "account-mem-ratio": 18, - "account-note-mem-ratio": 0.1, + "account-mem-ratio": 5, + "account-note-mem-ratio": 1, "application-mem-ratio": 0.1, "block-mem-ratio": 3, "boost-of-ids-mem-ratio": 3, "emoji-category-mem-ratio": 0.1, "emoji-mem-ratio": 3, "follow-ids-mem-ratio": 4, - "follow-mem-ratio": 4, + "follow-mem-ratio": 2, "follow-request-ids-mem-ratio": 2, "follow-request-mem-ratio": 2, "in-reply-to-ids-mem-ratio": 3, "instance-mem-ratio": 1, - "list-entry-mem-ratio": 3, - "list-mem-ratio": 3, + "list-entry-mem-ratio": 2, + "list-mem-ratio": 1, "marker-mem-ratio": 0.5, "media-mem-ratio": 4, - "memory-target": 209715200, - "mention-mem-ratio": 5, - "notification-mem-ratio": 5, + "memory-target": 104857600, + "mention-mem-ratio": 2, + "notification-mem-ratio": 2, "report-mem-ratio": 1, "status-fave-ids-mem-ratio": 3, - "status-fave-mem-ratio": 5, - "status-mem-ratio": 18, - "tag-mem-ratio": 3, - "tombstone-mem-ratio": 2, + "status-fave-mem-ratio": 2, + "status-mem-ratio": 5, + "tag-mem-ratio": 2, + "tombstone-mem-ratio": 0.5, "user-mem-ratio": 0.25, "visibility-mem-ratio": 2, "webfinger-mem-ratio": 0.1 -- cgit v1.2.3