Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PHP-FPM software Architecture
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Fleshdoom
n00b
n00b


Joined: 14 May 2013
Posts: 3

PostPosted: Tue May 14, 2013 9:49 am    Post subject: PHP-FPM software Architecture Reply with quote

Hello all, does anybody have a documentation which describes PHP-FPM software architecture?
I have some doubts concerning pools and master process interactions...

In particular, I noticed that all process of certain pool write at their FD 3 when a request for that pool comes. ltrace clearly shows that only one process writes an HTML page, but strace instead shows a really confused output. I have also noticed that also PHP-FPM master process listens to the same port of the pool, I think it does this, on order to know when spawn dynamic process.

What I have found about PHP-FPM process interaction on the web, presents a too high-level description, mostly oriented to web developers. FPM official page describes only module directives. I would like instead to know how things are really working.

Regards.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5595

PostPosted: Tue May 14, 2013 5:45 pm    Post subject: Reply with quote

It's multiple FastCGI worker processes listening on a single unix or TCP socket using accept(2), like every other web app. There's nothing complicated or magic going on.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum