RE: [squid-users] Reverse Proxy Multiple IP Addresses

From: Brad Taylor <btaylor@dont-contact.us>
Date: Thu, 1 Sep 2005 19:52:32 -0400

Anyone know of a redirector that can do sessioning? Client needs to be
sent to the same back end server.

-----Original Message-----
From: Jerry Thomas [mailto:thomasj@scoregroup.com]
Sent: Wednesday, August 31, 2005 4:25 PM
To: Brad Taylor
Subject: RE: [squid-users] Reverse Proxy Multiple IP Addresses

Hi Brad,

Ahh ok so you also need sessioning.

It gets complicated here.

I believe there are redirectors that will allow you to do sessioning.

The though would have to be based on your application or the previous
way you were segmenting the traffic across the servers. I haven't gotten
in to the that aspect so I will defer to someone else on the list.

Check out the ACLs though, I think you can define classes based on the
destination.

Good Luck,
Jerry

On Wed, 2005-08-31 at 15:11 -0400, Brad Taylor wrote:
> Jerry,
>
> That is true the servers are the same but each client needs to return
> the same backend server each time. Could that be done?
>
> Brad
>
> -----Original Message-----
> From: Jerry Thomas [mailto:thomasj@scoregroup.com]
> Sent: Wednesday, August 31, 2005 2:34 PM
> To: Brad Taylor
> Subject: RE: [squid-users] Reverse Proxy Multiple IP Addresses
>
> Hi Brad,
>
> I thought in your previous email you said that the 3 servers were
> essentially the same, they were serving the same content? If so then I
> would assign those three IPs to the squid boxe. If not I would still
> assign those 3 ips to the squid server and use a redirector instead of
> the 3 separate squid instances.
>
> Jerry
>
> On Wed, 2005-08-31 at 14:12 -0400, Brad Taylor wrote:
> > The problem with that is the 3 IPs need to proxy for 3 different web
> > servers (3 IPs).
> >
> > -----Original Message-----
> > From: Jerry Thomas [mailto:thomasj@scoregroup.com]
> > Sent: Wednesday, August 31, 2005 1:55 PM
> > To: Brad Taylor
> > Cc: Squid Users
> > Subject: RE: [squid-users] Reverse Proxy Multiple IP Addresses
> >
> > Hi Brad,
> >
> > I am a little confused it sounds like you are just try to put a
squid
> > server in front of 3 apache servers. I guess they used to be LB'd
> > somehow.
> >
> > When I said:
> > Configure the squid server to listen to the 3 ips, I meant to set up
> ip
> > aliasing on the particular ethernet interface. Then just set
http_port
> > to 80.
> >
> > This will be incredibly more efficient than running 3 squids
> processes.
> >
> > >From my personal experience I had 8 dedicated apache servers
running
> a
> > cluster. I was able to get it down to 2 servers running a custom
> > compiled squid and two apache backend servers.
> >
> > I had to have the second apache in case of issues but they were both
> > lightly loaded. Hopefully you will be able to do the same.
> >
> > Jerry
> >
> > On Wed, 2005-08-31 at 12:30 -0400, Brad Taylor wrote:
> > > Thanks.
> > >
> > > I'm replying so this gets put in the archives.
> > >
> > > I think you also need to add something about the PID in the conf
> file
> > so
> > > squid will run under a different PID #
> > >
> > > -----Original Message-----
> > > From: Jerry Thomas [mailto:thomasj@scoregroup.com]
> > > Sent: Wednesday, August 24, 2005 12:17 PM
> > > To: Brad Taylor
> > > Subject: Re: [squid-users] Reverse Proxy Multiple IP Addresses
> > >
> > > Hi,
> > >
> > > Reassign the ips of the real servers.
> > >
> > > Configure the squid server to listen to the 3 ips this has to be
> done
> > in
> > > your OS.
> > >
> > > If you can just set http_port to 80 squid will listen and answer
all
> > > requests on all interfaces/ips.
> > >
> > > if not set http_port like so:
> > >
> > > http_port 172.16.0.2:80 172.16.0.3:80 172.16.0.4:80
> > >
> > > If the squid is set up correctly and you don't have too many
dynamic
> > > objects one dedicated squid and one dedicated apache will handle
the
> > > load fine.
> > >
> > > If not you will need to set up 3 dns records for all the
accelerated
> > > servers and use round robin LB.
> > >
> > > like so:
> > >
> > > accelhost 172.16.0.5
> > > accelhost 172.16.0.6
> > > accelhost 172.16.0.7
> > >
> > > then set
> > >
> > > httpd_accel_host accelhost
> > >
> > > I had some issues with the round robin LB but I was trying o do it
> > with
> > > the hosts file so you should look into this.
> > >
> > > Good Luck,
> > > Jerry
> > >
> > > On Wed, 2005-08-24 at 11:05 -0400, Brad Taylor wrote:
> > > > I'd like to know how to reverse proxy multiple IP addresses or
run
> > > > multiple squids on one box to do this. They are not different
> > domains
> > > so
> > > > I can't use host headers. Basically I'd like Squid to accept
http
> > > > requests on 3 different IP addresses and proxy for 3 different
IP
> > > > addresses (3 real servers). The 3 real servers have the same
> content
> > > so
> > > > I would like to not have to have 3 separate squid boxes.
> > > >
> > > > Can Squid do this, I'm not able to find it anywhere in the FAQ
or
> > the
> > > > Squid book. Thanks your any help.
> > > >

-- 
Jerry Thomas            thomasj@scoregroup.com
I.T. Director           ph. 305-662-5959 ext. 242
The SCORE Group         fax 305-662-8922
Received on Thu Sep 01 2005 - 17:52:20 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Oct 01 2005 - 12:00:03 MDT