11 messages in ru.sysoev.nginxRe: HTTP load balancing algorithm
FromSent OnAttachments
Florian MunzJan 22, 2007 11:41 am 
Igor SysoevJan 22, 2007 12:28 pm 
Jonathan VanascoJan 22, 2007 12:43 pm 
Ezra ZygmuntowiczJan 22, 2007 1:01 pm 
Florian MunzJan 22, 2007 1:10 pm 
Igor SysoevJan 22, 2007 1:11 pm 
Igor SysoevJan 22, 2007 1:15 pm 
Ezra ZygmuntowiczJan 22, 2007 1:19 pm 
Bob IppolitoJan 22, 2007 1:21 pm 
Aleksandar LazicJan 22, 2007 11:22 pm 
Jure PečarJan 23, 2007 12:27 am 
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: HTTP load balancing algorithmActions...
From:Aleksandar Lazic (al-n@public.gmane.org)
Date:Jan 22, 2007 11:22:30 pm
List:ru.sysoev.nginx

On Mon 22.01.2007 20:42, Florian Munz wrote:

I was wondering if nginx has a smarter way of distributing the httpd requests than apache and could help me here?

for such a setup I used the following solution:

--- clients | | V nginx (upstream to haproxy) | | V haproxy (http://haproxy.1wt.eu/) | | V appserver

---

Yes that isn't a easy setup but you have following benefits with haproxy at the moment http://haproxy.1wt.eu/download/1.3/doc/haproxy-en.txt :

per listener: cookie sticky appcookie sticky

3.2) Redistribute connections in case of failure

------------------------------------------------ In HTTP mode, if a server designated by a cookie does not respond, the clients may definitely stick to it because they cannot flush the cookie, so they will not be able to access the service anymore. Specifying 'redispatch' will allow the proxy to break their persistence and redistribute them to working servers.

---

per server: 3.3) Assigning different weights to servers 3.4) Limiting the number of concurrent sessions on each server

----

Ym2c

Aleks