coldfusion clustering cfmx 7 strange config

hi

we have servers setup as follows 2003 cfmx 7

server A instance 1 and 2

server B instance 3 and 4

I need to share sessions in my cluster - which I am doing 1 2 3 4 are all part of my cluster

BUT

Server A must never connect to instance 3 and 4 AND server B must never connect to instance 1 and 2 unless there own instances are unavailable

is there anyway of configuring this??? its vital that they dont cross onto each other as there writing files on the wrong servers and its a bit pete tong

any help will be greatly appreciated

thanks

LVL 1
Ken-dohAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

trailblazzyr55Commented:
I'm not sure exactly what you mean, but here's an article from macromedia's tech notes, that may provide some assistance..

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17802

regards,
~trail
mmc98dl1Commented:
trail - that article is CF4.5. Mr Nagasaki here is looking at CF7.

You dont want a user to use another physical machine after their first visit because the physical files are different?

mmc98dl1Commented:
It seems to me that your ideal scenario here would be to move the files that can be accessed / written to a network server that is accessible by all clusters. It seems daft to have 2 sets of files.  

Your Guide to Achieving IT Business Success

The IT Service Excellence Tool Kit has best practices to keep your clients happy and business booming. Inside, you’ll find everything you need to increase client satisfaction and retention, become more competitive, and increase your overall success.

Ken-dohAuthor Commented:
that was the ideal scenario - HOWEVER we had problems running in this setup and for some unknown reason coldfusion would start insisting files are not available - when they were and we opened a support call with macromedia, hired 2 consultants and in the end it was decided that we cant run in that setup, some very odd behaviour on our network that we cant locate.

so we settled for file replication - which is so much faster when loading pages, as there is no client server authentication and remote network calls, so its a much better alternative, the only problem is this file issue.

the reason why we want to stay on the same machine is because files are being uploaded in cf to server B  via instance 4- but the user is connected to server A so the file is written on the wrong server, and the page is loaded b4 the replication has occured.

we can just use 2 servers and 2 seperate instances - but we would rather not do that because sessions are lost on fail over and we cache a fair bit of stuff in application and session variables.
mmc98dl1Commented:
mmm I dont think this is possible with the standard CF7 admin tool because the cluster algorithms are filry simple, and all work on a per request basis rather than a per user basis (which I think you want).

From the administrator docs:

    * Round robin (default) — The web server connector sends each request to the next JRun server in the list.  
    *Weighted round robin — The web server connector sends relatively more requests (one after the other) to certain JRun servers, as specified in the serverweight attribute.  
    *Random weighted — The web server connector sends relatively more requests (in a random order) to JRun servers, as specified in the serverweight attribute.  

you may well be able to create the cluster thru JRun instead and tweak it that way to get the result you desire, but thats beyond me.  I dont think JRun was built to be used this way either, http://www.artima.com/intv/clusterP.html quote: "clustering is related to providing high availability, failover, and load balancing" . I think you are outside this realm.

Check out
http://www.jini.org/ 
http://www.sun.com/software/jini/

Maybe your solution lies in another J2EE server with different clustering algorithms.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ken-dohAuthor Commented:
i couldnt see anything in jrun either :(

seems like this is outside of the scope of colfusion - which I expected 2bh

were now looking at using a shared DSN and storing our sessions in there. and running 2 instances on each server and having 2 seperate clusters.

not ideal

but at least there is redundancy, fail over and load balancing :)
mmc98dl1Commented:
sweet - thanks for the points and the pete tong - havent heard that for a while!!!
Ken-dohAuthor Commented:
mmc98dl1 - I dont suppose you know about setting up verity to work with multiple servers do you ???

seems like 7 doesnt want to let me do it

http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=143&threadid=1023848
 
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=7&threadid=1023677
mmc98dl1Commented:
the ideal scenario here would be to set up verity on an external server and have your cluster use that server for verity.

http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001777.htm#1037795

You could however install verity on both machines, then use your file replication to copy the collection between the 2 machines and set up the second machine to use the collection.

http://www.houseoffusion.com/cf_lists/messages.cfm/forumid:4/threadid:38473 
Ken-dohAuthor Commented:
its a nice try
BUT - the external verity only accepts requests from 1 server at a time. so the top solution is out

and coldfusion mx 7 doesnt allow you to use file sharing like this, unless I am doing something wrong

create collection a on server 1 pointing to shared space
create collection b on server 2 pointing to shared space

collection A works collection B does not. it gives an error when ever you query it

its very strange and I am not sure why it behaves this way but cfmx 7 doesnt seem to want to work in that config -

I will be opening a new question shortly when i get more points for that
Ken-dohAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.