Sticky sessions in a load balanced environment (round robin) will do the
trick - hardware based with say a Content Redirector.





"This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions." 
Visit our website at http://www.reedexpo.com

-----Original Message-----
From: Russ <[EMAIL PROTECTED]>
To: CF-Server <[email protected]>
Sent: Thu Jan 19 05:28:04 2006
Subject: RE: access individual instances in a cluster

I'm setting up a n-tier load balanced configuration as described here
http://www.macromedia.com/devnet/coldfusion/j2ee/articles/balancing_j2ee.htm
l.  I have 2 apache front end servers and 2 cf back end servers.  We have a
hardware load balancer, but it doesn't look like that's working that well
with the apache connectors from the front end web servers to the cf back end
servers.  

I am thinking of using redirects with proxying to do the same task, but the
problem here seems to be that CF only sees the ip of the apache servers, not
the ip of the client.  So if I wanted to turn on debugging, it would be
impossible.  

I also have apache installed on the local cf servers.  I want to make sure
that when I hit those servers locally I only hit the local server, and never
the second cf server.  This is needed for load balancing health checks to
work properly and in general for the hardware lb to work properly.  

Either way I need some way to make sure that I am only hitting the local
server, and not the secondary one.  I am willing to disable clustering if
needed, but I would like session replication to work.  

I have been experimenting with the MIN loadbalancing algorithm using a
custom java filter that I wrote based on the sample one in the docs.  I
think if I can get the IP of the apache connector (which I'm not sure is
available), I can return a really high number for a remote connection and a
low number for a local connection, forcing the load balancing algorithm to
use the local server.  

Either way it seems like a hack.  I was hoping that there would be an easier
way to do this.  I have tried using the built in web server, but it's a
little weird to set up since you have to use CF's built in web root, and you
don't have a notion of a default document.  Plus this still has the problem
of the server not seeing the client IP's if used through a proxy from the
front end servers as in the articles.  

Surely somebody has implemented a similar configuration and can offer some
advice?

Russ

> -----Original Message-----
> From: Douglas Knudsen [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, January 18, 2006 9:22 PM
> To: CF-Server
> Subject: Re: access individual instances in a cluster
> 
> Is a instance that belongs to a cluster available on its own for this?
>  You know, I don't believe it is via wsconfig.  That aside, by cluster
> what do you mean?  J2EE based or hardware based?  You can turn on the
> internal server and use that, but it depends on why you need this.
> 
> DK
> 
> 
> On 1/18/06, Russ <[EMAIL PROTECTED]> wrote:
> > I have 2 CFMX 7 servers.  Each of those servers has an apache instance
> > running on it.  I would like to use that apache instance to access the
> local
> > CF server, and never to forward requests to the second CF server.  Is
> this
> > possible?  I am having trouble setting this up properly.
> >
> >
> >
> > I know it's possible if you take them out of the cluster, but I'd like
> to
> > have session replication working as well.
> >
> >
> >
> > Russ
> >
> >
> >
> >
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:10:5807
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/10
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:10
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.10
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to