Server optimizations for php

Atif Ghaffar atif.ghaffar at gmail.com
Fri Jan 23 17:24:01 MSK 2009


Hi. Jure,

Thanks for the valuable advice.
I will look in the cool-thread servers from Sun. We are usually buying from
Sun but moslty the x64 server.

The php application is a typical CMS for a hosting company.





On Fri, Jan 23, 2009 at 11:58 AM, Jure Pečar <pegasus at nerv.eu.org> wrote:

> On Fri, 23 Jan 2009 01:24:29 +0100
> Atif Ghaffar <atif.ghaffar at gmail.com> wrote:
>
> > Dear all,
> > Hi,
> >
> > I am planning to move a 16 node php cluster to a couple of  machines.
> >
> > The current machines have 2 GB RAM and they do the task of nginx plus
> they
> > do the task of php.
> > Each machine is running 5 php processes using php-fpm.
> >
> > I would like to move all php requests to machines with 64GB RAM and a few
> > CPU cores 4-8.
> > The systems are running linux.
> >
> > My question is what are the performance settings that I can do on the php
> > processing machines.
>
> Is your application huge data processing with php?
>
> If not, you don't need that ammount of RAM. But you do need at least half
> as much cpu cores as requests you want to handle in parallel.
>
> So you want to be able to handle 32 requests in parallel, you need 16 cores
> and 32*(size of each php process) + some for OS of memory.
>
> If you want to handle more than 32 requests in parallel, check Sun's "cool
> threads" servers. Those can handle 128 threads in parallel per cpu.
>
>
> --
>
> Jure Pečar
> http://jure.pecar.org
> http://f5j.eu
>



-- 
best regards
Atif Ghaffar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090123/5f549a7c/attachment.html>


More information about the nginx mailing list