/ Zope / Apsis / Pound Mailing List / Archive / 2009 / 2009-08 / Creating "Pools" of Backend Servers

[ << ] [ >> ]

[ Re: [Pound Mailing List] Path based routing / ... ] [ Mass errors / "Manhart, Alexander" ... ]

Creating "Pools" of Backend Servers
Adam Landry <ALandry(at)csnstores.com>
2009-08-20 00:03:11 [ SNIP ]
I was wondering if Pound supports the creation of a group of backend servers. 
Say I've got a pound server that support 20 websites (unique public IP's / SSL
certs) but I use the same 10 web servers.  Is there a way to avoid having to
list the backend servers for each of the 20 websites?

Thanks,
Adam

Attachments:  
text.html text/html 4516 Bytes

Re: [Pound Mailing List] Creating "Pools" of Backend Servers
Dave Steinberg <dave(at)redterror.net>
2009-08-20 08:10:49 [ SNIP ]
Adam Landry wrote:
> I was wondering if Pound supports the creation of a group of backend
> servers.  Say I've got a pound server that support 20 websites
> (unique public IP's / SSL certs) but I use the same 10 web servers.
> Is there a way to avoid having to list the backend servers for each
> of the 20 websites?

They're not explicitly named "pools", nor are they as formal as you 
describe, but its possible and easy.

Take the following snippit for example:

ListenHTTP
         Address 127.0.0.1
         Port 80
End
ListenHTTP
         Address 127.0.0.2
         Port 80
End
ListenHTTP
         Address 127.0.0.3
         Port 80
End
Service "default"
	Backend
		Address 192.168.1.1
		Port 80
	End
	Backend
		Address 192.168.1.2
		Port 80
	End
	Backend
		Address 192.168.1.3
		Port 80
	End
End

In this example incoming traffic to 127.0.0.{1,2,3} would all be served 
by the group of backends in the "default" service directive.

Pound uses a first-match system, so just put the "default" block last in 
your cfg file and make sure nothing else matches it.

The above may not be 100% ideal, since you may have to repeat yourself a 
little in places, but perl or whatever your favorite scripting language 
is helps there.


-- 
Dave Steinberg
http://www.geekisp.com/
http://www.steinbergcomputing.com/

MailBoxer