Skip to content

[Q] no free workers in the pool error on long requests #799

Discussion options

You must be logged in to vote

@stl-victor-sudakov Unfortunately no :( . That heavily depends on the particular use-cases. But the general advice is the following:

  1. Track the CPU load. If you see, that the CPU consumption is less than 85-90% (constantly, not spikes), increase the number of workers.
  2. If that is possible, split fast and slow request paths to different RR instances (pods). Fast may have a smaller number of workers with a smaller allocate_timeout value. While the slow path may have a relatively bigger number of workers to handle a batch of the requests in parralel.
  3. Use etags for the static. You may also use weak etags calculations.
  4. Personally, I have a bad experience with the ab, I prefer using the wrk

Replies: 9 comments 24 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rustatian
Comment options

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

Comment options

You must be logged in to vote
18 replies
@rustatian
Comment options

@victor-sudakov
Comment options

@rustatian
Comment options

@victor-sudakov
Comment options

@victor-sudakov
Comment options

Comment options

You must be logged in to vote
5 replies
@victor-sudakov
Comment options

@rustatian
Comment options

@victor-sudakov
Comment options

@rustatian
Comment options

@victor-sudakov
Comment options

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
3 participants
Converted from issue

This discussion was converted from issue #798 on September 15, 2021 08:13.