You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Reka Thirunavukkarasu <re...@wso2.com> on 2014/12/03 06:18:36 UTC

Undeployment of Application or Application Deployment Policy

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

Re: Undeployment of Application or Application Deployment Policy

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Hi

On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@wso2.com>
wrote:

> I think we need to understand terminology correctly.
>
>    - Application create - create application json
>    - deployment policy - deployment pattens of the application
>    - 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?
>
Thanks for the clarification. yah..It is more clear now..


Thanks,
Reka

>
>
> On Wed, Dec 3, 2014 at 10:48 AM, Reka Thirunavukkarasu <re...@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/
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Re: Undeployment of Application or Application Deployment Policy

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Hi

On Wed, Dec 3, 2014 at 2:27 PM, Lakmal Warusawithana <la...@wso2.com>
wrote:

>
>
> On Wed, Dec 3, 2014 at 2:24 PM, Lakmal Warusawithana <la...@wso2.com>
> wrote:
>
>>
>>
>> On Wed, Dec 3, 2014 at 2:23 PM, Reka Thirunavukkarasu <re...@wso2.com>
>> wrote:
>>
>>> Hi
>>>
>>> On Wed, Dec 3, 2014 at 2:19 PM, Lakmal Warusawithana <la...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <ni...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Lakmal,
>>>>>
>>>>>
>>>>> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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
>>>>
>>>
>>> We are removing the deployment policy once the application is
>>> underplayed.
>>>
>>> Another thing is that, can the users be able to remove the created
>>> application at some point?
>>>
>>
>> Yes, IMO.
>>
>
> Shall we have another action
>
>    - application delete. -which will delete application
>
> application un deploy only remove deployment policy? wdyt ?
>

+1. sure.  I already implemented like that..Will update REST EP with the
correct terminology.

Thanks,
Reka

>
>
>
>>
>>
>>>
>>> Thanks,
>>> Reka
>>>
>>>>
>>>>
>>>>>
>>>>>>    - 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 <reka@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/
>>>>
>>>>
>>>
>>>
>>> --
>>> 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/
>>
>>
>
>
> --
> Lakmal Warusawithana
> Vice President, Apache Stratos
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Re: Undeployment of Application or Application Deployment Policy

Posted by Nirmal Fernando <ni...@wso2.com>.
Agree, AFAIS this will allow us to plugin a new deployment policy for an
application.

On Wed, Dec 3, 2014 at 2:27 PM, Lakmal Warusawithana <la...@wso2.com>
wrote:

>
>
> On Wed, Dec 3, 2014 at 2:24 PM, Lakmal Warusawithana <la...@wso2.com>
> wrote:
>
>>
>>
>> On Wed, Dec 3, 2014 at 2:23 PM, Reka Thirunavukkarasu <re...@wso2.com>
>> wrote:
>>
>>> Hi
>>>
>>> On Wed, Dec 3, 2014 at 2:19 PM, Lakmal Warusawithana <la...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <ni...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Lakmal,
>>>>>
>>>>>
>>>>> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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
>>>>
>>>
>>> We are removing the deployment policy once the application is
>>> underplayed.
>>>
>>> Another thing is that, can the users be able to remove the created
>>> application at some point?
>>>
>>
>> Yes, IMO.
>>
>
> Shall we have another action
>
>    - application delete. -which will delete application
>
> application un deploy only remove deployment policy? wdyt ?
>
>
>
>>
>>
>>>
>>> Thanks,
>>> Reka
>>>
>>>>
>>>>
>>>>>
>>>>>>    - 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 <reka@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/
>>>>
>>>>
>>>
>>>
>>> --
>>> 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/
>>
>>
>
>
> --
> 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/

Re: Undeployment of Application or Application Deployment Policy

Posted by Lahiru Sandaruwan <la...@wso2.com>.
On Wed, Dec 3, 2014 at 2:27 PM, Lakmal Warusawithana <la...@wso2.com>
wrote:

>
>
> On Wed, Dec 3, 2014 at 2:24 PM, Lakmal Warusawithana <la...@wso2.com>
> wrote:
>
>>
>>
>> On Wed, Dec 3, 2014 at 2:23 PM, Reka Thirunavukkarasu <re...@wso2.com>
>> wrote:
>>
>>> Hi
>>>
>>> On Wed, Dec 3, 2014 at 2:19 PM, Lakmal Warusawithana <la...@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <ni...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Lakmal,
>>>>>
>>>>>
>>>>> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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
>>>>
>>>
>>> We are removing the deployment policy once the application is
>>> underplayed.
>>>
>>> Another thing is that, can the users be able to remove the created
>>> application at some point?
>>>
>>
>> Yes, IMO.
>>
>
> Shall we have another action
>
>    - application delete. -which will delete application
>
> application un deploy only remove deployment policy? wdyt ?
>
>
+1. This was my understanding as well.

>
>
>>
>>
>>>
>>> Thanks,
>>> Reka
>>>
>>>>
>>>>
>>>>>
>>>>>>    - 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 <reka@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/
>>>>
>>>>
>>>
>>>
>>> --
>>> 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/
>>
>>
>
>
> --
> Lakmal Warusawithana
> Vice President, Apache Stratos
> Director - Cloud Architecture; WSO2 Inc.
> Mobile : +94714289692
> Blog : http://lakmalsview.blogspot.com/
>
>


-- 
--
Lahiru Sandaruwan
Committer and PMC member, Apache Stratos,
Senior Software Engineer,
WSO2 Inc., http://wso2.com
lean.enterprise.middleware

email: lahirus@wso2.com blog: http://lahiruwrites.blogspot.com/
linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146

Re: Undeployment of Application or Application Deployment Policy

Posted by Lakmal Warusawithana <la...@wso2.com>.
On Wed, Dec 3, 2014 at 2:24 PM, Lakmal Warusawithana <la...@wso2.com>
wrote:

>
>
> On Wed, Dec 3, 2014 at 2:23 PM, Reka Thirunavukkarasu <re...@wso2.com>
> wrote:
>
>> Hi
>>
>> On Wed, Dec 3, 2014 at 2:19 PM, Lakmal Warusawithana <la...@wso2.com>
>> wrote:
>>
>>>
>>>
>>> On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <ni...@wso2.com> wrote:
>>>
>>>> Hi Lakmal,
>>>>
>>>>
>>>> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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
>>>
>>
>> We are removing the deployment policy once the application is underplayed.
>>
>> Another thing is that, can the users be able to remove the created
>> application at some point?
>>
>
> Yes, IMO.
>

Shall we have another action

   - application delete. -which will delete application

application un deploy only remove deployment policy? wdyt ?



>
>
>>
>> Thanks,
>> Reka
>>
>>>
>>>
>>>>
>>>>>    - 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 <re...@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/
>>>
>>>
>>
>>
>> --
>> 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/
>
>


-- 
Lakmal Warusawithana
Vice President, Apache Stratos
Director - Cloud Architecture; WSO2 Inc.
Mobile : +94714289692
Blog : http://lakmalsview.blogspot.com/

Re: Undeployment of Application or Application Deployment Policy

Posted by Lakmal Warusawithana <la...@wso2.com>.
On Wed, Dec 3, 2014 at 2:23 PM, Reka Thirunavukkarasu <re...@wso2.com> wrote:

> Hi
>
> On Wed, Dec 3, 2014 at 2:19 PM, Lakmal Warusawithana <la...@wso2.com>
> wrote:
>
>>
>>
>> On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <ni...@wso2.com> wrote:
>>
>>> Hi Lakmal,
>>>
>>>
>>> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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
>>
>
> We are removing the deployment policy once the application is underplayed.
>
> Another thing is that, can the users be able to remove the created
> application at some point?
>

Yes, IMO.


>
> Thanks,
> Reka
>
>>
>>
>>>
>>>>    - 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 <re...@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/
>>
>>
>
>
> --
> 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/

Re: Undeployment of Application or Application Deployment Policy

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Hi

On Wed, Dec 3, 2014 at 2:19 PM, Lakmal Warusawithana <la...@wso2.com>
wrote:

>
>
> On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <ni...@wso2.com> wrote:
>
>> Hi Lakmal,
>>
>>
>> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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
>

We are removing the deployment policy once the application is underplayed.

Another thing is that, can the users be able to remove the created
application at some point?

Thanks,
Reka

>
>
>>
>>>    - 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 <re...@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/
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007

Re: Undeployment of Application or Application Deployment Policy

Posted by Lakmal Warusawithana <la...@wso2.com>.
On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <ni...@wso2.com> wrote:

> Hi Lakmal,
>
>
> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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 <re...@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/

Re: Undeployment of Application or Application Deployment Policy

Posted by Nirmal Fernando <ni...@wso2.com>.
Hi Lakmal,


On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <la...@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
?

>
>    - 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 <re...@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/

Re: Undeployment of Application or Application Deployment Policy

Posted by Lakmal Warusawithana <la...@wso2.com>.
I think we need to understand terminology correctly.

   - Application create - create application json
   - deployment policy - deployment pattens of the application
   - 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 <re...@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/

Re: Undeployment of Application or Application Deployment Policy

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
One more thing, at last the deployment policy will get removed.

On Wed, Dec 3, 2014 at 10:48 AM, Reka Thirunavukkarasu <re...@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
>
>
>


-- 
Reka Thirunavukkarasu
Senior Software Engineer,
WSO2, Inc.:http://wso2.com,
Mobile: +94776442007