You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Imesh Gunaratne <im...@apache.org> on 2015/01/24 05:40:24 UTC

[Discuss] [Improvement] Manage Network Partitions Globally and Reuse them in Deployment Policy

Hi Devs,

I have done an improvement to globally manage Network Partitions after a
discussion we had with Lakmal and Dakshika.

In 4.1.0-Alpha we manage Network Partitions within Deployment Policies.
This makes it difficult to deploy an application via the UI and at the same
time network partitions get duplicated in different deployment policies.

Now we have introduced logic to manage them in the global context in
Autoscaler so that application deployment process can pick network
partitions from the available list. This introduces following REAT API
methods:

POST /networkPartitions -d {networkPartition.json}
GET /networkPartitions
GET /networkPartitions/{networkPartitionId}
DELETE /networkPartitions/{networkPartitionId}

Please note that this improvement has not changed any of the existing API
methods or artifact definitions.

More information can be found in this JIRA:
https://issues.apache.org/jira/browse/STRATOS-1121

Thanks

-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: [Discuss] [Improvement] Manage Network Partitions Globally and Reuse them in Deployment Policy

Posted by Dakshika Jayathilaka <da...@wso2.com>.
Thank you Imesh

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Sun, Jan 25, 2015 at 8:47 AM, Imesh Gunaratne <im...@apache.org> wrote:

> I'm sorry I couldn't send it in the previous mail, you could find it here
> Dakshika:
>
> https://github.com/apache/stratos/blob/master/samples/single-cartridge/mock/artifacts/network-partition.json
>
> We have also added a sample curl command in the above sample application.
>
> Thanks
>
> On Sun, Jan 25, 2015 at 6:44 AM, Dakshika Jayathilaka <da...@wso2.com>
> wrote:
>
>> Hi Imesh,
>>
>> can i have sample for network partition. (networkPartition.json) ?
>>
>> Thank you,
>>
>> *Dakshika Jayathilaka*
>> Software Engineer
>> WSO2, Inc.
>> lean.enterprise.middleware
>> 0771100911
>>
>> On Sat, Jan 24, 2015 at 9:26 PM, Lakmal Warusawithana <la...@wso2.com>
>> wrote:
>>
>>> Thanks Imesh take care if it
>>>
>>>
>>> On Saturday, January 24, 2015, Imesh Gunaratne <im...@apache.org> wrote:
>>>
>>>> I have now added logic to validate partitions of the network partition
>>>> in the following API method:
>>>> POST /networkPartitions -d {networkPartition.json}
>>>>
>>>> Thanks
>>>>
>>>> On Sat, Jan 24, 2015 at 10:10 AM, Imesh Gunaratne <im...@apache.org>
>>>> wrote:
>>>>
>>>>> Hi Devs,
>>>>>
>>>>> I have done an improvement to globally manage Network Partitions after
>>>>> a discussion we had with Lakmal and Dakshika.
>>>>>
>>>>> In 4.1.0-Alpha we manage Network Partitions within Deployment
>>>>> Policies. This makes it difficult to deploy an application via the UI and
>>>>> at the same time network partitions get duplicated in different deployment
>>>>> policies.
>>>>>
>>>>> Now we have introduced logic to manage them in the global context in
>>>>> Autoscaler so that application deployment process can pick network
>>>>> partitions from the available list. This introduces following REAT API
>>>>> methods:
>>>>>
>>>>> POST /networkPartitions -d {networkPartition.json}
>>>>> GET /networkPartitions
>>>>> GET /networkPartitions/{networkPartitionId}
>>>>> DELETE /networkPartitions/{networkPartitionId}
>>>>>
>>>>> Please note that this improvement has not changed any of the existing
>>>>> API methods or artifact definitions.
>>>>>
>>>>> More information can be found in this JIRA:
>>>>> https://issues.apache.org/jira/browse/STRATOS-1121
>>>>>
>>>>> Thanks
>>>>>
>>>>> --
>>>>> Imesh Gunaratne
>>>>>
>>>>> Technical Lead, WSO2
>>>>> Committer & PMC Member, Apache Stratos
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Imesh Gunaratne
>>>>
>>>> Technical Lead, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>
>>>
>>> --
>>> Sent from Gmail Mobile
>>>
>>
>>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>

Re: [Discuss] [Improvement] Manage Network Partitions Globally and Reuse them in Deployment Policy

Posted by Imesh Gunaratne <im...@apache.org>.
I'm sorry I couldn't send it in the previous mail, you could find it here
Dakshika:
https://github.com/apache/stratos/blob/master/samples/single-cartridge/mock/artifacts/network-partition.json

We have also added a sample curl command in the above sample application.

Thanks

On Sun, Jan 25, 2015 at 6:44 AM, Dakshika Jayathilaka <da...@wso2.com>
wrote:

> Hi Imesh,
>
> can i have sample for network partition. (networkPartition.json) ?
>
> Thank you,
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
> On Sat, Jan 24, 2015 at 9:26 PM, Lakmal Warusawithana <la...@wso2.com>
> wrote:
>
>> Thanks Imesh take care if it
>>
>>
>> On Saturday, January 24, 2015, Imesh Gunaratne <im...@apache.org> wrote:
>>
>>> I have now added logic to validate partitions of the network partition
>>> in the following API method:
>>> POST /networkPartitions -d {networkPartition.json}
>>>
>>> Thanks
>>>
>>> On Sat, Jan 24, 2015 at 10:10 AM, Imesh Gunaratne <im...@apache.org>
>>> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> I have done an improvement to globally manage Network Partitions after
>>>> a discussion we had with Lakmal and Dakshika.
>>>>
>>>> In 4.1.0-Alpha we manage Network Partitions within Deployment Policies.
>>>> This makes it difficult to deploy an application via the UI and at the same
>>>> time network partitions get duplicated in different deployment policies.
>>>>
>>>> Now we have introduced logic to manage them in the global context in
>>>> Autoscaler so that application deployment process can pick network
>>>> partitions from the available list. This introduces following REAT API
>>>> methods:
>>>>
>>>> POST /networkPartitions -d {networkPartition.json}
>>>> GET /networkPartitions
>>>> GET /networkPartitions/{networkPartitionId}
>>>> DELETE /networkPartitions/{networkPartitionId}
>>>>
>>>> Please note that this improvement has not changed any of the existing
>>>> API methods or artifact definitions.
>>>>
>>>> More information can be found in this JIRA:
>>>> https://issues.apache.org/jira/browse/STRATOS-1121
>>>>
>>>> Thanks
>>>>
>>>> --
>>>> Imesh Gunaratne
>>>>
>>>> Technical Lead, WSO2
>>>> Committer & PMC Member, Apache Stratos
>>>>
>>>
>>>
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>> --
>> Sent from Gmail Mobile
>>
>
>


-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos

Re: [Discuss] [Improvement] Manage Network Partitions Globally and Reuse them in Deployment Policy

Posted by Dakshika Jayathilaka <da...@wso2.com>.
Hi Imesh,

can i have sample for network partition. (networkPartition.json) ?

Thank you,

*Dakshika Jayathilaka*
Software Engineer
WSO2, Inc.
lean.enterprise.middleware
0771100911

On Sat, Jan 24, 2015 at 9:26 PM, Lakmal Warusawithana <la...@wso2.com>
wrote:

> Thanks Imesh take care if it
>
>
> On Saturday, January 24, 2015, Imesh Gunaratne <im...@apache.org> wrote:
>
>> I have now added logic to validate partitions of the network partition in
>> the following API method:
>> POST /networkPartitions -d {networkPartition.json}
>>
>> Thanks
>>
>> On Sat, Jan 24, 2015 at 10:10 AM, Imesh Gunaratne <im...@apache.org>
>> wrote:
>>
>>> Hi Devs,
>>>
>>> I have done an improvement to globally manage Network Partitions after a
>>> discussion we had with Lakmal and Dakshika.
>>>
>>> In 4.1.0-Alpha we manage Network Partitions within Deployment Policies.
>>> This makes it difficult to deploy an application via the UI and at the same
>>> time network partitions get duplicated in different deployment policies.
>>>
>>> Now we have introduced logic to manage them in the global context in
>>> Autoscaler so that application deployment process can pick network
>>> partitions from the available list. This introduces following REAT API
>>> methods:
>>>
>>> POST /networkPartitions -d {networkPartition.json}
>>> GET /networkPartitions
>>> GET /networkPartitions/{networkPartitionId}
>>> DELETE /networkPartitions/{networkPartitionId}
>>>
>>> Please note that this improvement has not changed any of the existing
>>> API methods or artifact definitions.
>>>
>>> More information can be found in this JIRA:
>>> https://issues.apache.org/jira/browse/STRATOS-1121
>>>
>>> Thanks
>>>
>>> --
>>> Imesh Gunaratne
>>>
>>> Technical Lead, WSO2
>>> Committer & PMC Member, Apache Stratos
>>>
>>
>>
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
> --
> Sent from Gmail Mobile
>

Re: [Discuss] [Improvement] Manage Network Partitions Globally and Reuse them in Deployment Policy

Posted by Lakmal Warusawithana <la...@wso2.com>.
Thanks Imesh take care if it

On Saturday, January 24, 2015, Imesh Gunaratne <im...@apache.org> wrote:

> I have now added logic to validate partitions of the network partition in
> the following API method:
> POST /networkPartitions -d {networkPartition.json}
>
> Thanks
>
> On Sat, Jan 24, 2015 at 10:10 AM, Imesh Gunaratne <imesh@apache.org
> <javascript:_e(%7B%7D,'cvml','imesh@apache.org');>> wrote:
>
>> Hi Devs,
>>
>> I have done an improvement to globally manage Network Partitions after a
>> discussion we had with Lakmal and Dakshika.
>>
>> In 4.1.0-Alpha we manage Network Partitions within Deployment Policies.
>> This makes it difficult to deploy an application via the UI and at the same
>> time network partitions get duplicated in different deployment policies.
>>
>> Now we have introduced logic to manage them in the global context in
>> Autoscaler so that application deployment process can pick network
>> partitions from the available list. This introduces following REAT API
>> methods:
>>
>> POST /networkPartitions -d {networkPartition.json}
>> GET /networkPartitions
>> GET /networkPartitions/{networkPartitionId}
>> DELETE /networkPartitions/{networkPartitionId}
>>
>> Please note that this improvement has not changed any of the existing API
>> methods or artifact definitions.
>>
>> More information can be found in this JIRA:
>> https://issues.apache.org/jira/browse/STRATOS-1121
>>
>> Thanks
>>
>> --
>> Imesh Gunaratne
>>
>> Technical Lead, WSO2
>> Committer & PMC Member, Apache Stratos
>>
>
>
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>


-- 
Sent from Gmail Mobile

Re: [Discuss] [Improvement] Manage Network Partitions Globally and Reuse them in Deployment Policy

Posted by Imesh Gunaratne <im...@apache.org>.
I have now added logic to validate partitions of the network partition in
the following API method:
POST /networkPartitions -d {networkPartition.json}

Thanks

On Sat, Jan 24, 2015 at 10:10 AM, Imesh Gunaratne <im...@apache.org> wrote:

> Hi Devs,
>
> I have done an improvement to globally manage Network Partitions after a
> discussion we had with Lakmal and Dakshika.
>
> In 4.1.0-Alpha we manage Network Partitions within Deployment Policies.
> This makes it difficult to deploy an application via the UI and at the same
> time network partitions get duplicated in different deployment policies.
>
> Now we have introduced logic to manage them in the global context in
> Autoscaler so that application deployment process can pick network
> partitions from the available list. This introduces following REAT API
> methods:
>
> POST /networkPartitions -d {networkPartition.json}
> GET /networkPartitions
> GET /networkPartitions/{networkPartitionId}
> DELETE /networkPartitions/{networkPartitionId}
>
> Please note that this improvement has not changed any of the existing API
> methods or artifact definitions.
>
> More information can be found in this JIRA:
> https://issues.apache.org/jira/browse/STRATOS-1121
>
> Thanks
>
> --
> Imesh Gunaratne
>
> Technical Lead, WSO2
> Committer & PMC Member, Apache Stratos
>



-- 
Imesh Gunaratne

Technical Lead, WSO2
Committer & PMC Member, Apache Stratos