stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sajith Kariyawasam <saj...@wso2.com>
Subject Re: Interesting app bursting pattern is implemented in one-after-another algorithm
Date Mon, 09 Mar 2015 06:49:39 GMT
Great! :)

Couldn't we improve that by using '&' for AND and '|' for OR ?
As I understood your implementation supports AND only, and is represented
by '|'.
Couldn't there be a requirement , say, 2nd app burst in either
network-partition-4 *or* network-partition-5 ?


On Mon, Mar 9, 2015 at 12:11 PM, Rajkumar Rajaratnam <rajkumarr@wso2.com>
wrote:

> Hi Devs,
>
> I have extended one-after-another algorithm to support any app bursting
> pattern of your choice.
>
> {
>     "id": "application-policy-4",
>     "algorithm":"one-after-another",
>     "networkPartitions":[
>         "network-partition-1",
>         "network-partition-2",
>         "network-partition-3",
>         "network-partition-4"
>     ],
>     "properties":[
>         {
>             "name": "networkPartitionGroups",
>             "value": "network-partition-1|network-partition-2,
> network-partition-3, network-partition-4|network-partition-5"
>         },
>         {
>             "name": "key-2",
>             "value": "value-2"
>         },
>     ]
> }
>
> The property "networkPartitionGroups" can be used to configure your app
> bursting pattern for one-after-another network partition algorithm. You can
> group network partitions using a pipe character and you can separate
> network partition groups using a comma character. Stratos will create
> application instances in network partition groups in each app bursting
> iteration.
>
> For example, according to above application policy;
>
>    - Initially stratos will create 2 application instances, each in
>    network-partition-1 and network-partition-2
>    - In the 1st app bursting iteration, it will create an application
>    instance in network-partition-3
>    - In the 2nd app bursting iteration, it will create 2 application
>    instances, each in network-partition-4 and network-partition-5
>
> So at the end of 2nd app bursting iteration, we will have 5 application
> instances running. There is no app bursting after that.
> For more information, refer app-bursting-pattern sample application [1]
>
> 1.
> https://github.com/apache/stratos/tree/master/samples/applications/app-bursting-pattern
>
> Thanks.
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>

Mime
View raw message