|
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
ColdFusion 8 cluster testing for load balancing and failover
I've installed CF8 using multiserver configuration and created a cluster andGeorge Lu 03/31/08 10:01 P The multiserver monitor is in the cfusion instance you removed from IIS.James Holmes 03/31/08 10:06 P Well, I can still access the cfusion instance from here:George Lu 03/31/08 11:24 P Go to Highest Hit Counts (after restarting the server instances toJames Holmes 03/31/08 11:39 P George Lu wrote:Jochem van Dieten 04/01/08 04:02 A Thank you Jochem! It's a good template.George Lu 04/01/08 06:03 P George Lu wrote:Jochem van Dieten 04/04/08 04:13 P Yes! I can see them now when I continue to hit different pages. Thank youGeorge Lu 04/01/08 01:03 A 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 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/ 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 ----- 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 ----- 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 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 ----- 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 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 -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
||||||