linux - Is pm.max_children in php-fpm equal to the maximum number of parallel downloads? -
i'm preparing web server (gentoo linux, nginx, php-fpm, php) website. during configuration came pm.max_children value in fpm config. default 50. if plan serve big files php, each client block whole thread during download? happen 51st client trying open website / start download?
according i've read - 1 child = 1 thread. if run server on let's quad core newest series xeon cpu 32gb ddr3 - how many clients or threads cpu / system survive?
is there limit in linux of maximum open sockets / threads / processes? os gentoo amd64 (fresh installation), nginx 1.4.0, php-5.4
thanks help.
if stream files via php, yes, each download php process. why it's bad idea so. php should used process data comprehensible webpage. serving files webserver. perhaps can rewrite application generate unique files , redirect location , have webserver handle it. number of open sockets configured via limits
on per process basis. sockets count towards number of open files.
Comments
Post a Comment