-
Notifications
You must be signed in to change notification settings - Fork 106
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
CN performance stabilization tweaks #4145
Conversation
creator-node/src/services/stateMachineManager/stateReconciliation/index.js
Show resolved
Hide resolved
@@ -48,7 +48,7 @@ class ClusterUtils { | |||
|
|||
// This is called `cpus()` but it actually returns the # of logical cores, which is possibly higher than # of physical cores if there's hyperthreading | |||
const logicalCores = cpus().length | |||
return config.get('expressAppConcurrency') || logicalCores | |||
return (config.get('expressAppConcurrency') || logicalCores) / 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i was thinking this but w/e
return (config.get('expressAppConcurrency') || logicalCores) / 2 | |
return config.get('expressAppConcurrency') || (logicalCores / 2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah, good point
@@ -48,7 +48,7 @@ class ClusterUtils { | |||
|
|||
// This is called `cpus()` but it actually returns the # of logical cores, which is possibly higher than # of physical cores if there's hyperthreading | |||
const logicalCores = cpus().length | |||
return config.get('expressAppConcurrency') || logicalCores | |||
return (config.get('expressAppConcurrency') || logicalCores) / 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wondering if this should Math.ceil for machines with 1 core so it's not 0.5 which truncates to 0? approving for either way since none of our local, staging, or prod nodes need to worry about that scenario
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, added
Description
maxWaitingJobs
forrecurringSyncQueue
andupdateReplicaSetQueue
by 10xrecurringSyncQueue
andupdateReplicaSetQueue
based on envvarsTests
automated sufficient
also tested manually on staging node
Monitoring - How will this change be monitored? Are there sufficient logs / alerts?
Easy to monitor all above via bull dashboard, grafana bull dashboard, and grafana profiling dashboard