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:5806 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=89.70.10 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
