> In my web app, I load a lot of stuff that I access often into 
> the application scope - numerous queries and such.
> 
> When I update the data behind those queries, I just pass 
> something like
> init=1 to the main url, and that triggers reloading of those 
> queries into the application scope.
> 
> However, now that I'm clustered, I don't know how to do this, 
> because I can't control which instance I'm going to be 
> hitting with my URL request.
> 
> Outside of stopping/restarting each instance.. what can I do 
> to force a reload of these application scoped variables on 
> both instances in the cluster?

Set a flag or flags somewhere that all the servers can see, and have them
check the flag or flags periodically. Alternatively, have each server send
an HTTP request to the others, to have them update their cache. This kind of
thing is well-suited for the event gateway, actually, so that you don't have
to wait for this to be processed to continue with the page in question.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
 
Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore and Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260752
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to