LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: Fallback Server

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>,<lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Fallback Server
From: "Peter Mueller" <pmueller@xxxxxxxxxxxx>
Date: Wed, 21 Jul 2004 01:54:14 -0700
Sorry, didn't see your post till just now.  It is pretty late over here.  
Someone get me some coffee and scotch.
 
P

________________________________

From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx on behalf of Burian Peter (OI&T 
V)
Sent: Wed 7/21/2004 12:47 AM
To: 'LinuxVirtualServer.org users mailing list.'
Subject: AW: Fallback Server



Hi!

We use ldirectord. What i would like is to use specific "sorry URL" for each
virtual server (=application).

something like this:

# Application1
virtual=10.12.30.58:80
        real=10.225.30.52:8080 masq
        real=10.225.30.53:8080 masq
        service=http
        request="index.html"
        receive="A1"
        scheduler=wlc
        persistent=21600 # 6h
        protocol=tcp
        fallback=127.0.0.1:8080/app1/sorry_app1.html

#Application2
virtual=10.12.30.63:80
        real=10.225.30.57:8080 masq
        real=10.225.30.58:8080 masq
        service=http
        request="index.html"
        receive="A2"
        scheduler=wlc
        persistent=21600 # 6h
        protocol=tcp
        fallback=127.0.0.1:8080/app2/sorry_app2.html

It means, if application1 failed, will the URL "sorry_app1.html" appear to
the user and the URL "sorry_app2.html" will appear in case the application2
failed.

But this is not a valid syntax. Should be just:
fallback = ip_address|hostname[:portnumber|sercvicename]

One possibility could be to configure the local Apache to hear on multiple
ports with different document roots. For example:
#App1
fallback=127.0.0.1:8080 -> document_root: .../app1
#App2
fallback=127.0.0.1:8081 -> document_root: .../app2

In such case will the site "index.html" from different directories appear to
the user.

Any other idea?

Thanks.

Peter

-----Ursprüngliche Nachricht-----
Von: Horms [mailto:horms@xxxxxxxxxxxx]
Gesendet: Mittwoch, 21. Juli 2004 03:37
An: LinuxVirtualServer.org users mailing list.
Betreff: Re: Fallback Server


On Tue, Jul 20, 2004 at 06:24:46PM +0200, Burian Peter (OI&T V) wrote:
> Hi all!
>
> we are using LVS for multiple applications. It funcs vary well. There is a
> possibility to define a fallback server for each virtual server. It is
> suggested to use local Apache e.g "fallback = 127.0.0.1". It means, that
all
> apllications will use the same URL. We would like to use different URLs.
In
> other words, each virtual server should use its own, specific URL.
>
> Is there any possibility to solve this problem?

I am not sure that I understand the problem.
I am assuming that you are using ldirectord.
Ldirectord allows you to define a gloabal
fallback server and override this with
per-virtual fallback servers.

Does this resolve your problem?
If not could you please describe it in more depth.

Thanks

--
Horms
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


Wurde auf Viren ueberprueft !!!
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users


<Prev in Thread] Current Thread [Next in Thread>