stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reka Thirunavukkarasu <r...@wso2.com>
Subject Re: Undeployment of Application or Application Deployment Policy
Date Wed, 03 Dec 2014 09:00:05 GMT
Hi

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

>
>
> On Wed, Dec 3, 2014 at 2:24 PM, Lakmal Warusawithana <lakmal@wso2.com>
> wrote:
>
>>
>>
>> On Wed, Dec 3, 2014 at 2:23 PM, Reka Thirunavukkarasu <reka@wso2.com>
>> wrote:
>>
>>> Hi
>>>
>>> On Wed, Dec 3, 2014 at 2:19 PM, Lakmal Warusawithana <lakmal@wso2.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Dec 3, 2014 at 2:18 PM, Nirmal Fernando <nirmal@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Lakmal,
>>>>>
>>>>>
>>>>> On Wed, Dec 3, 2014 at 2:14 PM, Lakmal Warusawithana <lakmal@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

Mime
View raw message