10 messages in ru.sysoev.nginxRe: failover / fault-tolerant configu...
FromSent OnAttachments
alex clemeshaMay 21, 2008 12:22 pm 
J DavisMay 21, 2008 1:24 pm 
CalomelMay 21, 2008 1:34 pm 
alex clemeshaMay 21, 2008 1:41 pm 
J DavisMay 21, 2008 2:28 pm 
Igor ClarkMay 22, 2008 9:35 am 
Pavel GeorgievMay 27, 2008 8:15 am 
Renaud AllardMay 27, 2008 11:58 am 
mikeMay 27, 2008 12:06 pm 
Pavel GeorgievMay 27, 2008 1:49 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: failover / fault-tolerant configurationsActions...
From:Pavel Georgiev (pave@public.gmane.org)
Date:May 27, 2008 1:49:29 pm
List:ru.sysoev.nginx

The thing is I run open source software that I don't want to modify myself (postfixadmin, SquirrelMail), so I`m looking for a solution at the load-balancer level. I know I can do this with Pound, but I already have nginx running and servering few sites (and I`m quite happy with it), so I don't want another load balancer as well.

Can you give some examples of implementing php sessions in mysql, should I decide to go that way?

On Tuesday 27 May 2008 22:07:19 mike wrote:

same here

just a simple drop-in replacement for php sessions that uses 5 functions. nothing special. could be setup to be master/master or anything. it's very simple in php to override normal session management ;)

On 5/27/08, Renaud Allard <rena@public.gmane.org>
wrote:

Pavel Georgiev wrote:

I`m using nginx as a load balances for 2 backend servers that run a php

application. I need session awareness so I`ve enabled ip_hash for the upstream, but in case one node fails, all requests that should go to that node get the error_page.

Is there a way to have session awareness without loosing the redundancy

that 2 backend servers provide?

What I use is session_mysql over a master-master mysql server, this should allow you to get the session hash between both servers.