[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Re: [LUG] Nginx vs. Apache
- To: "list@xxxxxxxxxxxxx" <list@xxxxxxxxxxxxx>
- Subject: Re: [LUG] Nginx vs. Apache
- From: Matt Stevenson <mrmstevenson@xxxxxxxxx>
- Date: Mon, 11 May 2015 21:01:23 +0100
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dcglug.org.uk; s=1428397562; h=Sender:Content-Type:List-Subscribe:List-Help:List-Post:List-Unsubscribe:List-Id:Reply-To:Subject:To:From:Message-ID:Date:References:In-Reply-To:MIME-Version; bh=cRhA4uuVxZZs+vvX3LYSeoFHDvyi+Askk5Yimfv+1y4=; b=p7h9zCA/1pGcMfpHIX8burkOQm6CXDh5bM9WWXu58PbyMff0cXUuOqA41vUIBcDyRtyY5mmOSvrbMhJoiD5qEh3Ujq9FdbKQxuISS4roE95yZqMrvOOvzlZC6wvxkBrvP8Hz/PJiL+4jQKXxvGyaxeHJ7uVYIHywatmT3oS6tjY=;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=49+WZNaj0nztD6xBJTXce22bTsqzOSb20ltKGHDbXW4=; b=rFlxLxpfFSn62tsuuQdc973TLciS7DDHOLlpJVWK8gyO3wNzuM+MphpVa+NtReUvps VJDAInSuL2f9FyAs0+UZUiiiMmvrFNQX0bZ26LmU/6ulX+q7LiJZz1mcQ/orzWHV+Yxs AZqfIfA14uLyrp59WhsQ5mZLru8BT4OexlusDFRyBtGzC+3tLZQl6KkRnTPxw7mL8SnU IDQqfFD/ctxCBRBcCDFajg956g0X3pI3tPhXNbyd5sdPyCnjhT2WtxoUc7NuNpBpldmx rnM/ezRukbLghjs44EfgcDeDLGyf/d7haX4GdlOakzCT5CudZ3nn1XdCUAIqBKvdSHUd dFnA==
Thanks Simon valid remarks. We have been monitoring SQL performance logs for a while.
We have tuned up SQL a bit too.
The concept here is scaling up across multiple hosts and whether to split web server LB with nginx and not Apache.
mySQL replication is in our consideration as all the sites are cpanel with mysql / php backends.
Performance hit noted if thats your experience with Master-Master.
Any recommendations on replication as we have read rsync is best avoided with mySQL files.
Still very impressed with Nginx speed of config. very nice indeed.
Any adopters of nginx out there ?
On Monday, May 11, 2015, Simon Waters <simon@xxxxxxxxxxxxxx> wrote:
> I'm skeptical of load balancing for databases.Â
> It makes sense if the goal is robustness, although some big services use other means, like a master/slave model, or just use highly available hardware configurations, with a single simple MySQL instance.
> But the gain from multiple servers is low. With master/master all the transactions may be effectively being applied to both servers anyway, so the performance can go down.
> In contrast even modest database optimisations can reduce effort by orders of magnitude. Not done this sort of stuff so much with MySQL, but I imagine the principles are similar to other relational databases.
> Modern servers can handle thousands or tens of thousands transactions per second.
> What sort of stats do you have for the database. Table sizes, index sizes, transaction mix, cache hit rates etc. if you haven't looked at this you probably need a DBA not hardware.
>
>
> Sent from myMail for iOS
>
>
> Monday, 11 May 2015 19:45 +0100 from Matt Stevenson <mrmstevenson@xxxxxxxxx>:
>
> 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> 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> wrote:
>>>
>>>> On 11 May 2015, at 18:03, Matt Stevenson <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
>>>
> --
> 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