Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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: 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