Thank you Dave, what I am trying to do is when I am hitting one of my sites
I want the site to run on particular instance, not just random. I am running
bunch of sites with Model Glue and simply when I make a change to the model
or to the controller I have to go an clear the cache and with adding
?init=true in the url I can do it but only on that instance that I am on it.
And the problem is that I have four instances so I want to be able to target
particular instance and do ?init=true to clear the cache on that instance.
Currently I am doing that by restarting services on all instances. Or is
there a better way to do this in Model Glue...?
Thank you.

On Tue, Jul 6, 2010 at 11:12 AM, Dave Watts <[email protected]> wrote:

>
> > Hi, in my current set up I am in a cluster environment and I have few CF
> instances. Is there a way in this cluster environment to target particular
> instance?
>
> I'm not exactly sure what you mean. Do you want to execute a specific
> request on a specific cluster member?
>
> To support sticky sessions, you can force a request to use a specific
> instance by appending a JSESSIONID to the URL where the first 4
> characters of the JSESSIONID are the same as value for server.id in
> the /SERVER-INF/connector.properties file.
>
> Alternatively, you can provide HTTP access to the individual cluster
> members separate from access to the cluster itself. Typically, I use
> the JRun web server for this. I'll have that enabled for every cluster
> member, and use IIS or Apache for the cluster itself. I think it's
> possible to configure individual cluster members to use IIS or Apache,
> then configure the cluster itself to use the same web server, but it's
> not nearly as easy to do this in my opinion.
>
> If, on the other hand, you simply want to identify which cluster
> member is running the current request, you can include some code for
> that:
>
>
> http://stackoverflow.com/questions/830782/in-coldfusion-is-there-a-way-to-determine-what-server-the-code-is-running-on
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> http://training.figleaf.com/
>
> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
> GSA Schedule, and provides the highest caliber vendor-authorized
> instruction at our training centers, online, or onsite.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335111
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to