On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <nir...@wso2.com> wrote:
> Hi Lakmal, > > > On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <lak...@wso2.com> > wrote: > >> I think we need to understand terminology correctly. >> >> - Application create - create application json >> >> If the > >> >> - deployment policy - deployment pattens of the application >> >> shouldn't we remove the deployment policy, once the application > undeployed ? > +1 > >> - application deploy - combine application json+deployment policy. - >> this is the time we are actually spin instances/containers. >> - application un deploy - remove all instances/containers/monitors >> >> Are we clear now? >> >> >> On Wed, Dec 3, 2014 at 10:48 AM, Reka Thirunavukkarasu <r...@wso2.com> >> wrote: >> >>> Hi All, >>> >>> As from earlier model, we were wiping out the monitors when we undeploy >>> the application. But we are currently starting the monitors when we deploy >>> the deployment policy. So, when undeploying the policy only, we will have >>> to wipe out all the clusters and the monitors. In that case, the flow for >>> the undeployment of the policy will be as below: >>> >>> Undeployment of policy >>> ------------------------------ >>> >>> - Update the application monitor with the flag saying terminating=true >>> - All Application instances will get updated as state = terminating >>> - Underlying groups instances and cluster instances will be updated as >>> state = terminating by the parent notification >>> - Upon cluster instance terminating event, all the members will get to >>> wiped out in the cluster instance >>> - Cluster Instance will get to Terminated once all the members are wiped >>> out >>> - Once all the clusters instances are wiped out, cluster monitor will >>> get wiped out >>> - Upon cluster Instance terminated, group instance and then application >>> instance will be terminated >>> - Once all the application instances are wiped out, app monitor will get >>> to removed and send application Terminated event. >>> - Call CC to remove all the clusters related to application in Topology >>> - Autosclaer will remove the in-memory clusters upon Topology >>> ClustersRemovedEvent >>> >>> Please share your concerns whether we can go ahead with this flow. >>> >>> Thanks, >>> Reka >>> >>> -- >>> Reka Thirunavukkarasu >>> Senior Software Engineer, >>> WSO2, Inc.:http://wso2.com, >>> Mobile: +94776442007 >>> >>> >>> >> >> >> -- >> Lakmal Warusawithana >> Vice President, Apache Stratos >> Director - Cloud Architecture; WSO2 Inc. >> Mobile : +94714289692 >> Blog : http://lakmalsview.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/