Skip to content

Commit 686ff09

Browse files
authored
Merge pull request #483 from vtex-apps/chore/changeScaling
Vertical Scaling
2 parents 8df0fc8 + 73c34e3 commit 686ff09

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

CHANGELOG.md

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

88
## [Unreleased]
99

10+
### Changed
11+
12+
- Pod scaling configs to use 2 vCPUs and 4Gb of memory.
13+
1014
## [1.73.0] - 2025-01-22
1115

1216
### Changed

node/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ const SIX_SECONDS_MS = 6 * 1000
1616
const NINE_SECONDS_MS = 9 * 1000
1717

1818
// Segments are small and immutable.
19-
const MAX_SEGMENT_CACHE = 10000
20-
const segmentCache = new LRUCache<string, Cached>({ max: MAX_SEGMENT_CACHE })
19+
const segmentCache = new LRUCache<string, Cached>({ max: 1000 })
2120
const searchCache = new LRUCache<string, Cached>({ max: 3000 })
2221
const messagesCache = new LRUCache<string, Cached>({ max: 3000 })
2322
const vbaseCache = new LRUCache<string, Cached>({ max: 3000 })
@@ -27,6 +26,7 @@ metrics.trackCache('segment', segmentCache)
2726
metrics.trackCache('search', searchCache)
2827
metrics.trackCache('messages', messagesCache)
2928
metrics.trackCache('vbase', vbaseCache)
29+
metrics.trackCache('apps', appsCache)
3030

3131
export default new Service<Clients, RecorderState, CustomContext>({
3232
clients: {

node/service.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"stack": "nodejs",
3-
"memory": 2048,
3+
"memory": 4096,
44
"cpu": {
55
"type": "shared",
6-
"value": 80,
7-
"scalingPercentage": 95
6+
"value": 200,
7+
"scalingPercentage": 80
88
},
9-
"ttl": 30,
9+
"ttl": 60,
1010
"timeout": 12,
11-
"minReplicas": 30,
11+
"minReplicas": 10,
1212
"maxReplicas": 250,
1313
"workers": 2,
1414
"routes": {

0 commit comments

Comments
 (0)