|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2005
/
2005-04
/
Re: failover/config
[
Break Connection in Pound / Egon ... ]
[
Configuration Problem With Multiple BackEnds - ... ]
Re: failover/config
"Timo Hummel" <timo.hummel(at)4fb.de> |
2005-04-13 16:54:11 |
[ SNIP ]
|
Hi everone,
sorry for picking up a quite old email, but it's really an interesting part.
Currently, pound does balance between all entries given by BackEnd-Entries,
according to their weight. This works well and very relieable in most
situations. However, when managing rather small clusters (e.g. one or two main
servers) it would be desireable to have an option to failover. I think I've got
a pretty easy solution to handle this:
UrlGroup ".*"
# Main Servers
BackEnd 1.2.3.4,80,5
BackEnd 1.2.3.5,80,5
# Backup servers, in case no Main server is available
AlternateBackend 1.2.3.6,80,5
EndGroup
I don't know how much effort this will take to implement, but in theory we only
would have to store the same data as for regular BackEnds, and only switch to
the AlternateBackend list in httpd.c near line 778.
With best regards,
Timo
|
|
|
AW: failover/config
"Timo Hummel" <timo.hummel(at)4fb.de> |
2005-04-13 18:11:15 |
[ SNIP ]
|
Hi everybody,
I've writtten a patch for the concept in my previous email. The idea was the
following:
UrlGroup ".*"
# Main Servers
BackEnd 1.2.3.4,80,5
BackEnd 1.2.3.5,80,5
# Backup servers, in case no Main server is available
AlternateBackend 1.2.3.6,80,5
EndGroup
If no servers are available as BackEnd, pount uses the servers from
AlternateBackend. The big advantage is that you can also have as many servers
for AlternateBackend as you wish.
Please find the patch attached.
cheers,
Timo
|
|
|
Re: AW: failover/config
Robert Segall <roseg(at)apsis.ch> |
2005-04-13 19:14:52 |
[ SNIP ]
|
On Wednesday 13 April 2005 18:11, Timo Hummel wrote:
> Hi everybody,
>
> I've writtten a patch for the concept in my previous email. The idea was
> the following:
>
> UrlGroup ".*"
> # Main Servers
> BackEnd 1.2.3.4,80,5
> BackEnd 1.2.3.5,80,5
>
> # Backup servers, in case no Main server is available
> AlternateBackend 1.2.3.6,80,5
> EndGroup
>
> If no servers are available as BackEnd, pount uses the servers from
> AlternateBackend. The big advantage is that you can also have as many
> servers for AlternateBackend as you wish.
>
> Please find the patch attached.
Thanks for the patch Timo. I'll have a look at it and try to integrate it into
a wider framework which is planned.
--
Robert Segall
Apsis GmbH
Postfach, Uetikon am See, CH-8707
Tel: +41-44-920 4904
|
|
|
|