preforking

Prefork MPM configuration not in httpd.conf

不想你离开。 提交于 2020-01-01 18:04:20
问题 I have a memory problem with my EC2 Micro instance which is causing it to terminate my MySQL process. I've read a lot about tuning Apache to limit the memory consumption and am looking to edit the Prefork MPM settings. Catch is - when I go into httpd.conf, I see no mention of any MPM modules. I've been looking around and the only reference I can find to it is in /etc/httpd/conf.modules.d/00-mpm.conf where I can see that the prefork module is supposed to be loaded. (LoadModule mpm_prefork

FastCGI / SCGI pre-fork

随声附和 提交于 2019-12-24 02:18:21
问题 I've been trying to implement a web server gateway (for fun and educational purposes) and I have some questions about the core architecture behind FastCGI/SCGI with respect to the pre-fork model. How do FastCGI/SCGI implementations handle communication in pre-fork scenarios? AFAIK, the gateway only has one socket to connect to the FastCGI server. Normally, there is a parent process that accepts connections from the gateway and hands off the work to one of the pre-forked workers. Since the

accept() with sockets shared between multiple processes (based on Apache preforking)

 ̄綄美尐妖づ 提交于 2019-12-17 22:16:07
问题 I'm working on some Python code modeled on Apache's MPM prefork server. I am more an applications programmer than a network programmer and it's been 10 years since I read Stevens, so I'm trying to get up to speed in understanding the code. I found a short description of how Apache's prefork code works, by Sander Temme. The parent process, which typically runs as root, binds to a socket (usually port 80 or 443). It spawns children, which inherit the open file descriptor for the socket, and

What exactly is a pre-fork web server model?

隐身守侯 提交于 2019-12-03 01:59:45
问题 I want to know what exactly it means when a web server describes itself as a pre-fork web server. I have a few examples such as unicorn for ruby and gunicorn for python. More specifically, these are the questions: What problem does this model solve? What happens when a pre-fork web server is initially started? How does it handle request? Also, a more specific question for unicorn/gunicorn: Let's say that I have a webapp that I want to run with (g)unicorn. On initialization, the webapp will do