|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
ColdFusion 8 cluster testing for load balancing and failover
Author: Jochem van Dieten
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302762
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
Author: George Lu
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302465
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 -----
Author: Jochem van Dieten
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302410
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
Author: George Lu
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302406
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 -----
Author: James Holmes
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302404
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.
----- Excess quoted text cut - see Original Post for more -----
Author: George Lu
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302403
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 -----
Author: James Holmes
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302402
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.
----- Excess quoted text cut - see Original Post for more -----
--
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
Author: George Lu
Short Link: http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:55826#302401
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
|
May 24, 2012
|
Latest Fusion Authority Articles
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||