House of Fusion
Home of the ColdFusion Community

Search cf-talk

October 07, 2008

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Subscribe Now
Fusion Authority Quarterly Update - ColdFusion 8 Special Edition
Search over 2,500 ColdFusion resources here  >>>      
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion 8 cluster testing for load balancing and failover

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
George Lu
03/31/2008 10:01 PM

I've installed CF8 using multiserver configuration and created a cluster and added two instances on the same physical box. Then I've used wsconfig.exe to connect the cluster to IIS and remove 'cfusion' from IIS (with help from MrBuzzy). Now I can consider the cluster is successfully installed. However, how can I test the load balancing and failover? If I run CF Admin on one of the instances, how can I add servers (server name? port?) in Multiserver Monitor? Can someone please help? George

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
03/31/2008 10:06 PM

The multiserver monitor is in the cfusion instance you removed from IIS. Regardless, you probably want to look in the individual server monitors to see how many requests each is handling. hit a page on the site, see which server is shows in, hit it again, it should show in the other server. Take one instance down, all the requests should come from one instance. Bring it back, you should see both serving requests again. On Tue, Apr 1, 2008 at 10:01 AM, George Lu <lug668@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
George Lu
03/31/2008 11:24 PM

Well, I can still access the cfusion instance from here: servername:8300/cfide/administrator. I've launched the server monitor from each instance. I hit the index page. What I can see is it created a session under "Active sessions" and nothing under other stats items. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
James Holmes
03/31/2008 11:39 PM

Go to Highest Hit Counts (after restarting the server instances to clear it out) and hit a specific page only. That way it will the the only page to show and you can check the number of hits. On Tue, Apr 1, 2008 at 11:24 AM, George Lu <lug668@gmail.com> wrote: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jochem van Dieten
04/01/2008 04:02 AM

George Lu wrote: > I've installed CF8 using multiserver configuration and created a cluster and > added two instances on the same physical box. Then I've used wsconfig.exe to > connect the cluster to IIS and remove 'cfusion' from IIS (with help from > MrBuzzy). > > Now I can consider the cluster is successfully installed. However, how can I > test the load balancing and failover? I typically start with the following template: <cfoutput> <html><head> <title>#createObject("java", "jrunx.kernel.JRun").getServerName()#</title> <meta http-equiv="refresh" content="2" /> </head><body> #createObject("java", "jrunx.kernel.JRun").getServerName()#<br /> #now()# </body></html> Just open it in a few browser windows and start shutting down / killing instances and see what happens. If you configured session replication just add in a session hitcount and see if it gets reset on a cluster failover. Once that works you need tooling (OpenSTA, jmeter etc.) to start testing real world load and failover behaviour. Jochem

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
George Lu
04/01/2008 06:03 PM

Thank you Jochem! It's a good template. I'm not quite sure about the sticky sessions and replicate sessions. Do I really need to these? George ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Jochem van Dieten
04/04/2008 04:13 PM

George Lu wrote: > Thank you Jochem! It's a good template. > > I'm not quite sure about the sticky sessions and replicate sessions. Do I > really need to these? That follows from your code and business requirements. If you use session variables, you need something to make sure that those variables are present on the cluster instance the request is directed to. That can be stcky sessions (always the same cluster instance), session replication (variables on all instances), or both. Jochem

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
George Lu
04/01/2008 01:03 AM

Yes! I can see them now when I continue to hit different pages. Thank you James for your help. ----- Excess quoted text cut - see Original Post for more -----


<< Previous Thread Today's Threads Next Thread >>

Mailing Lists