Cluster creation help!


hi there

 

does 1 have fool-proof document creating , proving 2 server coldfusion 10 cluster? of documents have found missing something. 

 

more specifically, difference between http port , admin component port in remote instance manager?

should cluster manager show on remote node?

is there cluster monitor show's state? there simple test prove works.

 

 

if in remote node server.xml

<engine jvmroute="cfusion" name="catalina" defaulthost="localhost">

should jvmroute value in instance manager should set cfusion?

 

thanks help

 

richard

hi richard

 

two important points coldfusion 10 session replication

 

1> coldfusion 10 servers must enterprise edition

 

2> servers(machines) should under same network (same subnet)

 

below example of 2 ip addresses in same subnet

 

10.40.166.xx (say 34)

10.40.166.xx (say 121)

 

test application.cfc , test.cfm (at bottom)

 

steps perform:

 

enable j2ee session variables both coldfusion servers under memory variables in coldfusion administrator

 

create local instance (say test1) , create remote instance (say test 2) on remote machine.

 

go ahead , register remote instance (test2) in coldfusion administrator . create cluster , add both instances (test1 , test2).

 

now add cluster tag information  in server.xml (between </host> , </engine>) of remote instance using help  document of coldfusion 10 mentioned below

 

http://help.adobe.com/en_us/coldfusion/10.0/admin/wsc3ff6d0ea77859461172e0811cbf363c31-7ff a.html

 

note : make sure change multicast port in server.xml of remote instance multicast port number when create cluster in coldfusion admin console.

 

open context.xml of remote instance (test2) , make sure “manager pathname” comment out.

 

also, make sure in context.xml of local machine instance (test1),  “manager pathname” comment out.

 

stop , start remote instance first (test2) using command prompt , stop , start instance (test1) using command prompt.

 

place app folder in wwwroot of both instances. create cluster using web server configuration tool using cluster , test session replication behavior.

 

also, place .cfc , .cfm in  web root folder  (wwwroot) , try access test.cfm there. note down session id , instance name, refresh page , observe session id same other instance or not. can stop 1 instance , refresh same page check same instance getting same session id or not.

 

application.cfc

 

<cfcomponent>

    <cfset this.name = "sessionapp" />

    <cfset this.sessionmanagement = "true" />

    <cfset this.sessiontimeout = createtimespan(0,5,0,0) />

</cfcomponent>

 

test.cfm

 

<cfset session.svar="test">

<cfdump var="#session#" />

 

 

<cfscript>

hostaddress = createobject("java", "java.net.inetaddress").localhost.gethostaddress();

</cfscript>

ip address: <cfdump var="#hostaddress#"><br />

 

hope helps

vj



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

Adobe Acrobat Pro , Terminal Server Use

Thread: transmission-daemon isn't playing nice: "409: Conflict"

Thread: gpg: Conflicting Commands