TrafeX / docker-php-nginx

Docker image with PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
https://hub.docker.com/r/trafex/php-nginx
MIT License
1.37k stars 736 forks source link

Question about "Optimized for 100 concurrent users" #112

Closed foremtehan closed 1 year ago

foremtehan commented 1 year ago

Hey man first i want to thanks you for working on the repo.

I wanna know about "Optimized for 100 concurrent users" you mentioned in the readme, Does it mean it restricted to only handle 100 concurrent users or is it depends on my resources ?

TrafeX commented 1 year ago

Hi @foremtehan,

That mainly refers to to the max_children setting in PHP-FPM: https://github.com/TrafeX/docker-php-nginx/blob/master/config/fpm-pool.conf#L33 This limits the number of concurrent requests that PHP-FPM can handle to 100. Other factors are in play as well, you indeed need to have enough resources. But that fully depends on the type of application you're running via this container.