LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: multiple vips and apache

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx, abambala@xxxxxxxxxx
Subject: Re: multiple vips and apache
From: Joseph Mack <mack.joseph@xxxxxxx>
Date: Mon, 09 Jul 2001 08:30:56 -0400
karkoma wrote:

> What I pretend is that requests coming to VIP1 (193.a.b.c) goes to
> apache virtual host with the IP 192.168.3.1 on the real server, VIP2
> (193.d.e.f) to apache vh 192.168.3.51 and VIP3 to apache vh 192.168.3.61
> (this three IPs on the same machine). Basically what I want to do is
> send requests that need session to an IP (apache-tomcat virtual host)
> and others that do not need session to another IP (another apache
> virtual host).


I don't know about the session stuff, but let's see if I've got
the VIP part.

You have several real-servers. Each real-server has 3 RIPs (if doing
VS-NAT) or 3 different VIPs (if you're doing VS-DR) and you have copies
of the httpd listening to each of these 3 IPs (you check with netstat -an).
You test that the real-server is working by itself,
by running a browser on the real-server an connecting 
to each one of the IPs and to the urls by name.
 
You then setup the director with 3 VIPs and each VIP forwards to one of the IPs 
on 
each of the real-servers. You check that the LVS works for each VIP
by telnet'ing to VIP:80 from a client and you do this for each VIP and
you do it enough times that you connect to each of the real-servers.

Then you connect with a regular browser from a client and what happens?

Joe
-- 
Joseph Mack PhD, Senior Systems Engineer, Lockheed Martin
contractor to the National Environmental Supercomputer Center, 
mailto:mack.joseph@xxxxxxx ph# 919-541-0007, RTP, NC, USA


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