Hi,

Please refer to the email thread "[DISCUSS] Patching exiting cartridge
instances with updates".

I am copy pasting graceful shutdown section from Lakmal's blog post [1]
since it is better described there.

Gracefully Scale down
When auto-scaler decided to scale down, it will notifier instance via
“instance notifier” topic. Then instance will gracefully shut down its
applications and then update “instance status topic” saying I’m ready to
shut  down. Then CC will get this new instance status, update the topology
and terminate the instance. This will help to do some cleanup, if required,
 before instance going to terminated

[1]
http://lakmalsview.blogspot.com/2013/12/sneak-peek-into-apache-stratos.html


On Wed, Oct 15, 2014 at 8:48 AM, Martin Eppel (meppel) <[email protected]>
wrote:

>  Hi Udara,
>
>
>
> By any chance do you have a reference to the email thread ?
>
> The other question is when an instance goes into maintenance mode, is it
> clean up (for graceful shutdown) or is there other specific “maintenance”
>  processing done ?
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
> *From:* Udara Liyanage [mailto:[email protected]]
> *Sent:* Tuesday, October 14, 2014 8:04 PM
> *To:* dev
> *Subject:* Re: [Question] Maintenance mode in stratos (now and future) ?
>
>
>
> Hi Martin,
>
>
>
> I think this is very similar to the patching model we discussed couple of
> months ago. It is not yet implemented.
>
>
>
> In graceful shutdown mode, an instance is sent to maintenance mode before
> it is terminated. However it is not the maintenance mode you are referring
> to.
>
>  @Reka will be able to provide a better answer about that.
>
>
>
> On Wed, Oct 15, 2014 at 5:51 AM, Martin Eppel (meppel) <[email protected]>
> wrote:
>
> Hi,
>
>
>
> Does stratos has a concept of a maintenance mode, for example, is there a
> way to put a cartridge instance or even the octl in a maintenance mode and
> what will a “user” be able to do in the maintenance mode ?
>
> An example of a maintenance mode would be that the cartridge would be not
> active (for example not taking any service requests) but would also not
> being killed by the octl ? Also, how would a “user” be able to move the
> cartridge back into the active state ?
>
> Is there potentially  programmatic way to move a cartridge into the
> maintenance mode ?
>
>
>
> Thanks
>
>
>
> Martin
>
>
>
>
>
>
>
>
>
> --
>
>
> Udara Liyanage
>
> Software Engineer
>
> WSO2, Inc.: http://wso2.com
>
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
>
> phone: +94 71 443 6897
>



-- 

Udara Liyanage
Software Engineer
WSO2, Inc.: http://wso2.com
lean. enterprise. middleware

web: http://udaraliyanage.wordpress.com
phone: +94 71 443 6897

Reply via email to