Hi Roy,

These are just off the top of my head ideas and i'm not very familiar with
load balancing with cf/jrun, so no idea if they will work, are practical or
advisable..

Is it possible to access the each cluster instance via a non load balanced
connection, for example on a private port.  If so you could have each
instance register itself when it starts, then when you call init=true have
some procedure that looks up each registered instance and uses a cfhttp call
to the private port to reload each app

Or, when an instance receives an init=true call set a flag in a shared
location (db, filesystem, external cache) and have each instance check the
flag, either in onRequestStart, or using a scheduled task

Not sure if either of those help, but maybe food for thought

Chris


On 1 October 2010 19:35, Roy Martin <[email protected]> wrote:

> That's certainly what we do for our traditional deployments. Since the
> instance is clustered the instances respond on a weighed round-robin. So I
> can fire the reload=true, but it will only fire for the instance that I was
> load balanced to, leaving the other instances out of date. So we are
> currently pulling the instances offline and restarting them, which causes
> the application to reload on startup.
>
> Ideally if there was a way to fire off the init=true to the instances
> individually that would work, but I haven't figured out a way
> to guarantee that the call would be to the specific instance.
>
> For a little more background the server is setup as follows:
> 1. All instances are currently hosted on the same box
> 2. There are 5 instances that make-up a cluster
> 3. The clustered is using software weighted round-robin that is built into
> ColdFusion Administrator.
>
> The problem specifically is how to invoke the reload=true, or equivalent of
> for all of the instances to call the update.
>
> Thanks,
> Roy
>
>
> On Fri, Oct 1, 2010 at 11:26 AM, Dan Wilson <[email protected]> wrote:
>
>> What happens when you use the reload=true feature of Model Glue?
>>
>>
>> DW
>>
>> On Fri, Oct 1, 2010 at 2:08 PM, Roy Martin <[email protected]> wrote:
>>
>>> We have a few MG applications that we are deploying to a cluster with 5
>>> instances. The problem is that every time we deploy updates we need to
>>> re-initialize the application and the only way we've been able to accomplish
>>> this at this point is to stop each instance and restart it. What's the best
>>> way to accomplish the re-initialize (init=true) on each instance?
>>>
>>> Thanks,
>>> Roy
>>>
>>> --
>>> Model-Glue Sites:
>>> Home Page: http://www.model-glue.com
>>> Documentation: http://docs.model-glue.com
>>> Bug Tracker: http://bugs.model-glue.com
>>> Blog: http://www.model-glue.com/blog
>>>
>>> You received this message because you are subscribed to the Google
>>> Groups "model-glue" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]<model-glue%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/model-glue?hl=en
>>
>>
>>
>>
>> --
>> William Osler - "We are here to add what we can to life, not to get what
>> we can from life."
>>
>> --
>> Model-Glue Sites:
>> Home Page: http://www.model-glue.com
>> Documentation: http://docs.model-glue.com
>> Bug Tracker: http://bugs.model-glue.com
>> Blog: http://www.model-glue.com/blog
>>
>> You received this message because you are subscribed to the Google
>> Groups "model-glue" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<model-glue%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/model-glue?hl=en
>
>
>  --
> Model-Glue Sites:
> Home Page: http://www.model-glue.com
> Documentation: http://docs.model-glue.com
> Bug Tracker: http://bugs.model-glue.com
> Blog: http://www.model-glue.com/blog
>
> You received this message because you are subscribed to the Google
> Groups "model-glue" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<model-glue%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/model-glue?hl=en
>

-- 
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Reply via email to