Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical Scaling #483

Merged
merged 3 commits into from
Jan 29, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Changed

- Pod scaling configs to use 2 vCPUs and 4Gb of memory.

## [1.73.0] - 2025-01-22

### Changed
Expand Down
4 changes: 2 additions & 2 deletions node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ const SIX_SECONDS_MS = 6 * 1000
const NINE_SECONDS_MS = 9 * 1000

// Segments are small and immutable.
const MAX_SEGMENT_CACHE = 10000
const segmentCache = new LRUCache<string, Cached>({ max: MAX_SEGMENT_CACHE })
const segmentCache = new LRUCache<string, Cached>({ max: 1000 })
const searchCache = new LRUCache<string, Cached>({ max: 3000 })
const messagesCache = new LRUCache<string, Cached>({ max: 3000 })
const vbaseCache = new LRUCache<string, Cached>({ max: 3000 })
Expand All @@ -27,6 +26,7 @@ metrics.trackCache('segment', segmentCache)
metrics.trackCache('search', searchCache)
metrics.trackCache('messages', messagesCache)
metrics.trackCache('vbase', vbaseCache)
metrics.trackCache('apps', appsCache)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was missing


export default new Service<Clients, RecorderState, CustomContext>({
clients: {
Expand Down
10 changes: 5 additions & 5 deletions node/service.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"stack": "nodejs",
"memory": 2048,
"memory": 4096,
"cpu": {
"type": "shared",
"value": 80,
"scalingPercentage": 95
"value": 200,
"scalingPercentage": 80
},
"ttl": 30,
"ttl": 60,
"timeout": 12,
"minReplicas": 30,
"minReplicas": 10,
"maxReplicas": 250,
"workers": 2,
"routes": {
Expand Down
Loading