Fli
04-29-2015, 05:45 PM
On WHM/cPanel server,
Apache Mod_QoS module requires Apache Worker to be used instead of default Apache Prefork. Apache Prefork MPM (Multi-Processing Module) is set as "recommended" by WHM/cpanel. They say it is because of the stability.
So is it safe to switch to Worker MPM? What are differences?
Prefork MPM uses multiple child processes with one thread each and each process handles one connection at a time.
Worker MPM uses multiple child processes with many threads each. Each thread handles one connection at a time.
Source: http://codebucket.co.in/apache-prefork-or-worker/
So prefork is using one process per one connection, Worker is using one process with multiple "threads" to serve more connections per process.
Worker is said to use less RAM, Prefork to be more "stable" or process "isolated".
Details on both MPM:
Prefork: https://httpd.apache.org/docs/2.2/mod/prefork.html
Worker: https://httpd.apache.org/docs/2.2/mod/worker.html
More description on MPMs, comparison: http://serverfault.com/a/383634
Apache Mod_QoS module requires Apache Worker to be used instead of default Apache Prefork. Apache Prefork MPM (Multi-Processing Module) is set as "recommended" by WHM/cpanel. They say it is because of the stability.
So is it safe to switch to Worker MPM? What are differences?
Prefork MPM uses multiple child processes with one thread each and each process handles one connection at a time.
Worker MPM uses multiple child processes with many threads each. Each thread handles one connection at a time.
Source: http://codebucket.co.in/apache-prefork-or-worker/
So prefork is using one process per one connection, Worker is using one process with multiple "threads" to serve more connections per process.
Worker is said to use less RAM, Prefork to be more "stable" or process "isolated".
Details on both MPM:
Prefork: https://httpd.apache.org/docs/2.2/mod/prefork.html
Worker: https://httpd.apache.org/docs/2.2/mod/worker.html
More description on MPMs, comparison: http://serverfault.com/a/383634