Re: Running Apache in Single Process Mode for Docker Container?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Oct 25, 2015 at 9:09 PM, David Aronchick <aronchick@xxxxxxxxx> wrote:
I hadn't thought of the fact that apache would be architected to use its multiple threads as an internal housekeeping (instead of just to allow parallelization of requests). 

You misunderstood me. I don't know that the extra threads you're seeing are housekeeping threads. That is simply one plausible explanation.
 
My motivation behind moving the processes to be so low is that I'm trying to explore Apache's suitability for use in a Docker container, in the "Docker way" - minimal processes per containers, that, when the process failed for any reason, the entire container is killed, and you spin up many containers to accommodate that. I think this is the point where I give up, and just spend the time porting this app to nginx. 

I don't understand what the problem is. If you're starting a single-program to do exactly one task (e.g., server individual HTTP requests serially) then what does it matter if the program requires one, two or three threads to do the job? What if performing the desired task required two cooperating processes? It seems to me you're confusing a guideline (e.g., minimize the number of processes per container) for a mandate (e.g., have only one process per container).

--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux