Skip to content

Commit a3642da

Browse files
authored
Merge pull request #484 from vtex-apps/chore/changeCache
Optimize local cache and Change Min number of replicas
2 parents 3a00df7 + 88aebf3 commit a3642da

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Set minimum replicas to 5.
13+
- Increased search cache size.
14+
- Reduced apps cache size.
15+
1016
## [1.74.0] - 2025-01-29
1117

1218
### Changed

node/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ const NINE_SECONDS_MS = 9 * 1000
1717

1818
// Segments are small and immutable.
1919
const segmentCache = new LRUCache<string, Cached>({ max: 1000 })
20-
const searchCache = new LRUCache<string, Cached>({ max: 3000 })
20+
const searchCache = new LRUCache<string, Cached>({ max: 6000 })
2121
const messagesCache = new LRUCache<string, Cached>({ max: 3000 })
2222
const vbaseCache = new LRUCache<string, Cached>({ max: 3000 })
23-
const appsCache = new LRUCache<string, Cached>({ max: 3000 })
23+
const appsCache = new LRUCache<string, Cached>({ max: 1500 })
2424

2525
metrics.trackCache('segment', segmentCache)
2626
metrics.trackCache('search', searchCache)

node/service.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"ttl": 60,
1010
"timeout": 12,
11-
"minReplicas": 10,
11+
"minReplicas": 5,
1212
"maxReplicas": 250,
1313
"workers": 2,
1414
"routes": {

0 commit comments

Comments
 (0)