PacketFence - BTS - PacketFence
View Issue Details
0001203PacketFenceperformancepublic2011-03-25 17:532011-10-25 09:03
obilodeau 
 
normalminorN/A
closedwon't fix 
 
 
0001203: Apache in worker mode instead of prefork
After looking more closely at what our default apache configuration file is doing, I realize that we can improve things.

We are running apache in prefork mode where one process handles one request at a time (no threading). We should see if our code works fine in the worker mode. We could serve a lot more requests with the same amount of RAM consumed if it does work.

On CentOS, the /usr/sbin/httpd.worker binary exists, I'm pretty sure that trying it and validating that the captive portal, the web admin and the Web Services back-end all work would be a good start.
No tags attached.
Issue History
2011-03-25 17:53obilodeauNew Issue
2011-03-25 21:39fgaudreaultNote Added: 0002002
2011-04-04 17:18obilodeauNote Added: 0002005
2011-04-04 17:18obilodeauStatusnew => closed
2011-04-04 17:18obilodeauResolutionopen => won't fix
2011-10-25 09:03obilodeauTarget Version+1 =>

Notes
(0002002)
fgaudreault   
2011-03-25 21:39   
You are aware that PHP recommends the usage of Apache Prefork? (Talking about the admin UI) I don't know if it's still the case, but it was writen in their manual for a while.

If you want to use worker MPM, you'll need to compile PHP with Zend Thread Safety. CentOS doesn't compile it in their package. So we will need to either maintain a PHP version, or use another external repo. I don't want to be a pain, but RAM is so cheap these days...
(0002005)
obilodeau   
2011-04-04 17:18   
If this is the case then it's uninteresting for now.