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

Modify CN state machine params for prod to improve throughput #3855

Merged
merged 4 commits into from
Sep 12, 2022
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
6 changes: 3 additions & 3 deletions creator-node/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ const config = convict({
doc: 'number of recover-orphaned-data jobs that can run in each interval (0 to pause queue)',
format: 'nat',
env: 'recoverOrphanedDataQueueRateLimitJobsPerInterval',
default: 0
default: 1
},
debounceTime: {
doc: 'sync debounce time in ms',
Expand Down Expand Up @@ -554,13 +554,13 @@ const config = convict({
doc: 'Max bull queue concurrency for recurring sync request jobs',
format: 'nat',
env: 'maxRecurringRequestSyncJobConcurrency',
default: 30
default: 50
},
maxUpdateReplicaSetJobConcurrency: {
doc: 'Max bull queue concurrency for update replica set jobs',
format: 'nat',
env: 'maxUpdateReplicaSetJobConcurrency',
default: 15
default: 25
},
peerHealthCheckRequestTimeout: {
doc: 'Timeout [ms] for checking health check route',
Expand Down
4 changes: 2 additions & 2 deletions creator-node/src/services/stateMachineManager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ class StateMachineManager {
},
[QUEUE_NAMES.RECURRING_SYNC]: {
queue: recurringSyncQueue,
maxWaitingJobs: 10000
maxWaitingJobs: 100000
},
[QUEUE_NAMES.UPDATE_REPLICA_SET]: {
queue: updateReplicaSetQueue,
maxWaitingJobs: 1000
maxWaitingJobs: 10000
},
[QUEUE_NAMES.RECOVER_ORPHANED_DATA]: {
queue: recoverOrphanedDataQueue,
Expand Down