On 03/07/2013 03:45 PM, Grant wrote:
>>> I lowered my MaxClients setting in apache a long time ago after
>>> running out of memory a couple times.  I recently optimized my
>>> website's code and sped the site way up, and now I find myself
>>> periodically up against MaxClients.  Is a RAM upgrade the only
>>> practical way to solve this sort of problem?
>>
>> Use a reverse proxy in caching mode.
>>
>> A request served up by the proxy server is a request not served up by
>> Apache.
>>
>> Squid, nginx and varnish are all decent for the purpose, though squid
>> and nginx are probably the more polished than varnish.
> 
> Thanks Michael, I think I will set up nginx to serve my images.  That
> should take a big load off apache.  Is nginx still beneficial when
> using the Worker MPM?

It...depends?

nginx in reverse caching proxy mode will simply serve up objects before
the httpd it's protecting has to deal with them. Whether the type of an
MPM makes a significant difference on nginx's value depends more on what
kind of work you are (or aren't) asking Apache to do. I really couldn't
answer that for you without knowing the details behind what you're
running on top of Apache.

> 
> Should I be OK with NGINX_MODULES_HTTP="" in /etc/make.conf if I'm
> only serving images?

No idea. I've not used nginx, but it's highly recommended and widely
used for the purpose. You'll have to dig into the docs yourself. :-|



Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to