This is how it is already done in most of the carbon servers
(wso2carbon.lck file). But this is not always doable. For an example, you
can't restart Stratos Agent as of now , if you do so, there's a possibility
that Stratos would detect this as a node failure and terminate the instance
and respin.

But we of course had this idea of applying patches, by moving the subjected
node to a maintenance state before agent restarts.


On Thu, Jul 24, 2014 at 8:14 AM, Akila Ravihansa Perera <[email protected]>
wrote:

> Hi Isuru,
>
> >
> > +1. AFAIK puppet can apply any changes in the master configs
> periodically to
> > the relevant instances. The ideal way would be to apply the patches and
> > restart the server from puppet itself. However, since we use Cartridge
> Agent
> > to start the server, we might have to find a workaround for that.
> >>
>
> We can place a marker file to notify the agent to restart the server.
> For eg. when a patch is copied to a WSO2 ESB cartridge instance, we
> create a marker file in <agent_home>/esb.dorestart. Agent should
> periodically check for the time stamp of last modification for this
> marker file. If it is modified, it should restart the product server.
>
> This is just a suggestion. We need to think the best alternative to do
> this.
>
> >>
> >> Yeah, nice thinking will go for that.
> >>
> >>>
> >>>
> >>> --
> >>> Akila Ravihansa Perera
> >>> Software Engineer
> >>> WSO2 Inc.
> >>> http://wso2.com
> >>>
> >>> Phone: +94 77 64 154 38
> >>> Blog: http://ravihansa3000.blogspot.com
> >>
> >>
> >>
> >>
> >> --
> >> Lakmal Warusawithana
> >> Vice President, Apache Stratos
> >> Director - Cloud Architecture; WSO2 Inc.
> >> Mobile : +94714289692
> >> Blog : http://lakmalsview.blogspot.com/
> >>
> >
> >
> >
> > --
> > Thanks and Regards,
> >
> > Isuru H.
> > +94 716 358 048
> >
> >
>
>
>
> --
> Akila Ravihansa Perera
> Software Engineer
> WSO2 Inc.
> http://wso2.com
>
> Phone: +94 77 64 154 38
> Blog: http://ravihansa3000.blogspot.com
>



-- 

Thanks & regards,
Nirmal

Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
Mobile: +94715779733
Blog: http://nirmalfdo.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to