Skip to content

If my program connects only to a single origin, is there a difference between max_concurrent_requests and pool_options.max_connections_per_origin? #68

Closed Answered by HoneyryderChuck
alexeyr-ci asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, "max connections per origin" will be the maximum number of connections, in a given pool/session, connecting to an origin, I.e. if you use the same session across N threads (sidekiq workers for example), and N > max connections per origin M, if at a given point M workers are busy waiting on a response from the origin, the M + 1 worker will wait for one of them to be released before proceeding (or time out is reached).

Max concurrent requests is for the number of simultaneous requests you can send at once on 1 connection; this only is taken into account if requests can be sent concurrently, I.e. in HTTP/2 they can be mhltiplexed, in HTTP/1 they can be pipelined.

Hope that clarifies.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@alexeyr-ci
Comment options

@HoneyryderChuck
Comment options

@alexeyr-ci
Comment options

Answer selected by alexeyr-ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants