4 ms·
Correct me if I'm wrong, but don't modern web servers often use a handful of threads, and use epoll for each thread? If so, could this be a Part VIII?
by bvinc 7y ago
Correct me if I'm wrong, but don't modern web servers often use a handful of threads, and use epoll for each thread? If so, could this be a Part VIII?
- shuss 7y agoYes, IIRC, even Nginx uses the general structure you're describing.
- xorcist 7y agoSo does Apache with mpm_event, which has been around for close to 15 years now. The fact that you can run Apache in a process pool model doesn't mean you should. That mode was mostly kept to support CGI scripts and old style mod_php.
- wolf550e 7y agonginx and others use worker processes instead of worker threads, with epoll in each worker. This is for robustness and garbage collection, AFAIK. https://nginx.org/en/docs/ngx_core_module.html#worker_processes https://nginx.org/en/docs/ngx_core_module.html#worker_proces...