Skip to content

Maximize performance for Jobs plugin #1535

Answered by rustatian
Kaspiman asked this question in Q&A
Discussion options

You must be logged in to vote

However, it turns out that the value ofnum_pollersmust be at least one and a half times greater than the value of num_workers. And this still requires verification and selection.

This depends on what your tasks are. How fast your code runs inside a worker, and should be chosen based on your application.

Strange, isn't it?

That is not strange, because prefech is well-known parameter of many queues (sqs, rabbitmq, kafka, etc). Literally the first statement:

AMQP 0-9-1 specifies the basic.qos method to make it possible to [limit the number of unacknowledged messages](https://www.rabbitmq.com/confirms.html) on a channel (or connection) when consuming (aka "prefetch count")

I think that …

Replies: 3 comments 18 replies

Comment options

You must be logged in to vote
11 replies
@Kaspiman
Comment options

@rustatian
Comment options

@Kaspiman
Comment options

@Kaspiman
Comment options

@Kaspiman
Comment options

Comment options

You must be logged in to vote
6 replies
@Kaspiman
Comment options

@rustatian
Comment options

@Kaspiman
Comment options

@rustatian
Comment options

@Kaspiman
Comment options

Comment options

You must be logged in to vote
1 reply
@rustatian
Comment options

Answer selected by rustatian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
R-question Question
2 participants