On Mon, 2005-03-07 at 16:24, Mack.Joseph@xxxxxxxxxxxxxxx wrote:
> > We want to run two web servers on the director: Tomcat as
> > the primary
> > webserver and Apache as the sorry server. We can't run
> > these on the same
> > port, and the local node LVS setup doesn't allow changing
> > ports, so we
> > can't reach both webservers on the local machine.
>
> I still haven't got your problem. I don't mind giving answers,
> but I need the question first. Here's what I guess you might
> be trying to say...
>
Thanks very much for your assistance :-)
> o you have services on the director listening on two ports
> (normal server on 80 and sorry server on 8080) in localnode
>
Other way round. So we have Apache on port 80, Tomcat on port 8080.
> o the client only knows about port 80
Yes.
> o the service on port 80 is operating under localnode on the LVS
> and is the service seen by the client on port 80.
>
Following the instructions at:
http://www.austintek.com/LVS/LVS-HOWTO/HOWTO/LVS-HOWTO.localnode.html#localnode_cant_rewrite_ports
we configured Tomcat to listen on port 8080 and moved the virtual
service to port 8080 (so that localnode would work). We are using
iptables to redirect traffic on port 80 to 8080 to feed http requests
into the LVS.
> o you have scripts which which detect some criterion which are then
> used to direct further connection requests to the sorry server.
>
We are intending to use the local apache instance (on port 80) as the
LVS fallback server, but that doesn't work with localnode because all
requests are coming in on port 8080.
We want to use the fallback functionality as with scripts we'd have to
do our own monitoring of server availability, and if we had to stop
tomcat in order to start apache on the same port, things would be quite
confusing.
Thanks,
Tom Lord.
|