2 messages in ru.sysoev.nginxnginx to load balance application ser...
FromSent OnAttachments
zimbirti zimbirtiFeb 3, 2009 4:03 am 
dennis caoFeb 3, 2009 7:47 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:nginx to load balance application serversActions...
From:zimbirti zimbirti (zimb@superposta.com)
Date:Feb 3, 2009 4:03:37 am
List:ru.sysoev.nginx

I have a blog system with seperate subdomain and domains and want to use nginx to load balance application servers.

I want to give total number of servers available for example 5 and want to redirect all requests to the same server everytime.

For example

a.blog.com will go to server 1 b.bllog.com => server 2 b.bllog.com/x.html => server 2 xx.com => server 1

and so on.

I am thinking doing this by converting domain name "a.blog.com" to number with crc32 and modulo that number to number of servers (5) and remaining number wiill deceide which server to send this requests.

I wander how to do this. is it through perl or can it be done with config file alone. and how to to it in any way?