Skip to content

Conversation

mrotondo
Copy link
Contributor

use number of workers to control concurrency of mef jobs, and number of threads to control concurrency of webhook callback jobs

…of threads to control concurrency of webhook callback jobs

Choose a reason for hiding this comment

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

I am curious how you landed on 15 rather than 10 or 20?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The existing value was 5, and I figured that (if I want all connection attempts to succeed immediately) I'm adding 10 new possible threads that might need a DB connection (5 single-threaded workers for the MeF jobs, 1 5-threaded worker for the callbacks).

I'm not actually sure of myself here (maybe the webhook callback worker actually only needs one db connection, since the job doesn't use the db and therefore the only need is for the worker to claim & execute jobs?) but that was my reasoning, faulty or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants