D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Nginx vs. Apache

 

On 11/05/15 19:45, Matt Stevenson wrote:
Am also thinking about spreading mySQL load over hosts with
master-master setup if this article can be trusted seems to make sense
as rsync will probably not handle locked tables with site mirroring. So
maybe application LB is in order.
http://brendanschwartz.com/post/12702901390/mysql-master-master-replication
Is it true nginx is simpler to configure LB ?

On Monday, May 11, 2015, Matt Stevenson <mrmstevenson@xxxxxxxxx
<mailto:mrmstevenson@xxxxxxxxx>> wrote:
 > Thank you Joseph good comments duly noted.
 > Having seen our Centos servers PHP in top running on fire nearly all
day as it hosts 50 + sites.
 > I’m really curious about running a docker container with NGINX as a
proxy LB and giving NGINX a trial on a cloud server. Just hope I don’t
screw anything up in the process and maybe create some trial sites
first.  ;-)
 >
 > On Monday, May 11, 2015, Joseph Bennie <jay@xxxxxxxxxxx
<mailto:jay@xxxxxxxxxxx>> wrote:
 >>
 >>> On 11 May 2015, at 18:03, Matt Stevenson <mrmstevenson@xxxxxxxxx
<mailto:mrmstevenson@xxxxxxxxx>> wrote:
 >>>
 >>> Hey there
 >>>
 >>> Anyone out there managing cloud web servers got an opinion of Nginx
vs. Apache.
 >>> Performance apparently differs with PHP. We are interested in Nginx
as a LB to our cloud servers.
 >>> Is this easy and good practise.
 >>>
 >>
 >> I haven’t used nginx, but most alternatives are better than stock
apache setup when working with php.
 >>
 >> The trade off is if you don’t need thread safe (most people don’t ,
but think they do) then swapping to apache mpm or nginx will give better
through put and possibly better memory usage. but its no panacea,
profile (just use ‘top' initially) your php memory usage, I recently saw
a centos 6 stock apache setup falling apart with only 12 paralel active
php sessions running.
 >>
 >>> Regards
 >>>
 >>> Matt --
 >>> The Mailing List for the Devon & Cornwall LUG
 >>> http://mailman.dclug.org.uk/listinfo/list
 >>> FAQ: http://www.dcglug.org.uk/listfaq
 >>
 >>
 >> --
 >> The Mailing List for the Devon & Cornwall LUG
 >> http://mailman.dclug.org.uk/listinfo/list
 >> FAQ: http://www.dcglug.org.uk/listfaq
 >>


Mysql has features built in for backup and multimachine hosting which should be used before rsync is considered.
Tom te tom te tom


--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq