-
Notifications
You must be signed in to change notification settings - Fork 76
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
Create more or faster workers #533
Comments
Right now, I think a Backend worker can wait up to 25 seconds to check for work to do: central-backend/lib/worker/worker.js Lines 81 to 98 in c90025b
25 seconds seems like a fair amount of time to wait. Though it's also not common for a user to be actively waiting for an event to be processed: most of the time, async work isn't needed immediately. But should we decrease 25 to a smaller number? Maybe that wouldn't be needed if we added more workers, as that would decrease the average wait time. |
At the moment,
run-server.js
spins up just one worker (I think). However, we wantrun-server.js
to spin up multiple workers. (We've talked about 4 being a good number.)On most machines,
start-odk.sh
in thecentral
repository will usepm2
to spin up multiple instances. However, it seems like it'd be good to have more than one worker per instance.The text was updated successfully, but these errors were encountered: