I dont know what TQ is, but there isnt another var eing added in to
give any indication of which instance is doing the business.

We are using the same code base, but Scott, that really is dodge -
hopefully you wont be offended if I dont take up your suggestion..

getServerName() works like a charm. 


On 4/20/05, Scott Barnes <[EMAIL PROTECTED]> wrote:
> I know at TQ, the clustering config used to attach a s1,s2 etc
> variable in the url scope automatically.. not sure on how that will
> translate but the concept applies.
> 
> If you feed off the one file source, then in each instance you have
> you could define a mapping that points to a file
> 
> yourdomain/whoami/index.cfm
> 
> then yoursetup would be
> 
> s1
> /whoami = /s1/index.cfm
> 
> s2
> /whoami = /s2/index.cfm
> 
> its dodge but if the below doesn't work that could..
> 
> bah i'm out of my depth on this one.
> 
> 
> On 4/20/05, Jason Sheedy <[EMAIL PROTECTED]> wrote:
> > Hi Duncan,
> > you could use the following code to tell which server you're on.
> >
> > <cfobject action="create" type="java" class="jrunx.kernel.JRun" name="jr">
> > <cfset servername = jr.getServerName()>
> >
> > --
> > Jason Sheedy
> > www.jmpj.net
> >
> >
> > On 4/20/05, Duncan <[EMAIL PROTECTED]> wrote:
> > > Say you have 2 instances in a cluster, one of them goes kaput for
> > > whatever reason, and the other starts to take all the traffic. Great,
> > > site still up and everyone is happy.
> > > How on earth do we tell when an instance goes down? How do we tell
> > > which one to restart? Is there a way to tell which instance of a
> > > server in a cluster you are currently looking at when using an app?
> > > TIA!
> >
> > ---
> > You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> > To unsubscribe send a blank email to [EMAIL PROTECTED]
> > Aussie Macromedia Developers: http://lists.daemon.com.au/
> >
> 
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com (Coming Soon)
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 


-- 
Duncan I Loxton
www.sixfive.co.uk
[EMAIL PROTECTED]

"I can only please one person per day. Today is not looking good. 
Tomorrow  isn't looking much better." Dilbert

---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to