Skip to content
Discussion options

You must be logged in to vote

Yes when there are 10 threads and no autoscaling, the maximum number of requests PHP can handle is 10. All other requests will be queued until a PHP thread becomes free. You can also configure max_wait_time to set how long these requests are allowed to wait for a thread before just being rejected with 503.

If you have max_threads (autoscaling) configured, new threads will be spawned up to that limit as long as requests are queued for long enough. So the maximum number of concurrent requests PHP can handle is max_threads.

If you have certain requests that are interacting with a very slow external API, you can also split the threadpool by path to limit concurrency to certain endpoints.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Vectorial1024
Comment options

@dunglas
Comment options

@Vectorial1024
Comment options

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