Skip to content

Commit fd009ab

Browse files
authored
Merge pull request #485 from vtex-apps/chore/temporaryRevertScalingChanges
Temporary revert scaling changes
2 parents 3a5a712 + 3e6562e commit fd009ab

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
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+
- Pod scaling configs to use 0.8 vCPUs and 2Gb of memory.
13+
- Increase minimum to 30.
14+
- Reduce search-cache to 3000 items.
15+
1016
## [1.75.0] - 2025-02-04
1117

1218
### Changed

node/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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: 6000 })
20+
const searchCache = new LRUCache<string, Cached>({ max: 3000 })
2121
const messagesCache = new LRUCache<string, Cached>({ max: 3000 })
2222
const vbaseCache = new LRUCache<string, Cached>({ max: 3000 })
2323
const appsCache = new LRUCache<string, Cached>({ max: 1500 })

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": 4096,
3+
"memory": 2048,
44
"cpu": {
55
"type": "shared",
6-
"value": 200,
7-
"scalingPercentage": 80
6+
"value": 80,
7+
"scalingPercentage": 95
88
},
9-
"ttl": 60,
9+
"ttl": 30,
1010
"timeout": 12,
11-
"minReplicas": 5,
11+
"minReplicas": 30,
1212
"maxReplicas": 250,
1313
"workers": 2,
1414
"routes": {

0 commit comments

Comments
 (0)