OK, thanks Jochem.  That takes care of several of my burning questions.

I didn't understand that the connector itself is what implants the
selected algorithm.  I figured the connector simply tossed the request
in the general direct of the cluster and JRun took care of the rest.
That helps me to understanding better the role of the WS connector in
the whole process.

~Brad

-----Original Message-----
From: Jochem van Dieten [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 26, 2007 11:11 AM
To: CF-Talk
Subject: Re: Targetting an instance

Brad Wood wrote:
> 
> So, at what level does the cluster "load balancing" occur?
> Does the WS connector "know" what instances are in the cluster?

Yes.


> If I have three instances on three separate servers with three
separate
> IPs all in one cluster, and one web server is connected to that
instance
> (heck let's say its on a separate server too), which IP address does
it
> send the request to?

It sends it to the instance that has a server.id that is identical to 
the first 4 bytes of the jsessionid. (See connector.properties in 
/SERVER-INF/ for the server.id.) If there is no jsessionid it picks one 
according to the defined algorithm.


> What if one physical box goes down?

The connector will detect that and stop sending requests to that 
instance (for some types of failure setting a smaller TCPTimedWaitDelay 
can greatly increase the speed of failure detection, see the MS 
documentation and RFC 793 for the consequences).


> Does the connector know all of the
> ip address for all of the instances in my cluster?

Yes. Check out some of the files in your wsconfig dir, they can be very 
enlightening.

Jochem



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade & integrate Adobe Coldfusion MX7 with Flex 2
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:273743
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to