On Thu, Jul 24, 2014 at 10:21 AM, Udara Liyanage <[email protected]> wrote:
> Hi Akila, > > Yes,we need a patching model. > > However patching by puppet master has a issue, > If agent is down for sometime for patching, AS will terminate the > instance assuming instance is a faulty member.. > > So the patching model should let AS knows that instance is in a patching > mode. > > > Yes, this is what i meant and Dinesh discussed @dev. Here addition to that, What Akila came up with, versioning support from puppet for Cartridge agent, which currently un supported. > > On Thu, Jul 24, 2014 at 9:29 AM, Dinesh Bandara <[email protected]> wrote: > >> I started work on that and initiated a discussion on >> [email protected] with the subject [DISCUSS] Patching exiting >> cartridge instances with updates >> >> >> >> On Thu, Jul 24, 2014 at 9:09 AM, Lakmal Warusawithana <[email protected]> >> wrote: >> >>> Yes, We need to implement patching mode. AFAIK, Dinesh start doing that. >>> >>> >>> >>> On Thu, Jul 24, 2014 at 8:51 AM, Nirmal Fernando <[email protected]> >>> wrote: >>> >>>> 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/ >>>> >>>> >>>> >>> >>> >>> -- >>> Lakmal Warusawithana >>> Vice President, Apache Stratos >>> Director - Cloud Architecture; WSO2 Inc. >>> Mobile : +94714289692 >>> Blog : http://lakmalsview.blogspot.com/ >>> >>> >> >> >> -- >> *Dinesh Bandara* >> >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > > Udara Liyanage > Software Engineer > WSO2, Inc.: http://wso2.com > lean. enterprise. middleware > > web: http://udaraliyanage.wordpress.com > phone: +94 71 443 6897 > -- Lakmal Warusawithana Vice President, Apache Stratos Director - Cloud Architecture; WSO2 Inc. Mobile : +94714289692 Blog : http://lakmalsview.blogspot.com/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
