From fd7c0cdf8ff7f93d2eefa97b825ed0ec23ccb33f Mon Sep 17 00:00:00 2001 From: Felipe Sales Date: Wed, 29 Jan 2025 14:49:50 -0300 Subject: [PATCH 1/3] Change minReplicas to 5 --- node/service.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/service.json b/node/service.json index d5261efc..159648b3 100644 --- a/node/service.json +++ b/node/service.json @@ -8,7 +8,7 @@ }, "ttl": 60, "timeout": 12, - "minReplicas": 10, + "minReplicas": 5, "maxReplicas": 250, "workers": 2, "routes": { From d814c45a141de0534371a568f9d6018f782578c7 Mon Sep 17 00:00:00 2001 From: Felipe Sales Date: Wed, 29 Jan 2025 14:52:55 -0300 Subject: [PATCH 2/3] Change cache configs to better reflect the actual usage --- node/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/index.ts b/node/index.ts index 3d5675da..d64359fa 100644 --- a/node/index.ts +++ b/node/index.ts @@ -17,10 +17,10 @@ const NINE_SECONDS_MS = 9 * 1000 // Segments are small and immutable. const segmentCache = new LRUCache({ max: 1000 }) -const searchCache = new LRUCache({ max: 3000 }) +const searchCache = new LRUCache({ max: 6000 }) const messagesCache = new LRUCache({ max: 3000 }) const vbaseCache = new LRUCache({ max: 3000 }) -const appsCache = new LRUCache({ max: 3000 }) +const appsCache = new LRUCache({ max: 1500 }) metrics.trackCache('segment', segmentCache) metrics.trackCache('search', searchCache) From 88aebf32e4f40f16f679f5c8aed29de1658ab2af Mon Sep 17 00:00:00 2001 From: Felipe Sales Date: Wed, 29 Jan 2025 14:54:43 -0300 Subject: [PATCH 3/3] Update changelog --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e4c4ee9..87605bd5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Changed + +- Set minimum replicas to 5. +- Increased search cache size. +- Reduced apps cache size. + ## [1.74.0] - 2025-01-29 ### Changed