stratos-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reka Thirunavukkarasu <r...@wso2.com>
Subject Re: Partition definition should just have set of properties (1..n)
Date Thu, 21 Nov 2013 23:45:49 GMT
Hi

Why i introduced scope is that when Autoscaler calls to start or terminate
an instance by specifying a partition, then CC can decide the level of
partition from the scope and act accordingly.

Thanks,
Reka

On Thu, Nov 21, 2013 at 9:59 AM, Nirmal Fernando <nirmal070125@gmail.com>wrote:

> Yes, I realized the same, when I go thru Reka's email to dev@.
>
>
> On Thu, Nov 21, 2013 at 8:44 PM, Imesh Gunaratne <imesh@apache.org> wrote:
>
>> Thanks, I think how Reka designed this was as follows:
>>
>> - IaaS provider information is defined in cloud-controller.xml, so that
>> partitions could refer to them using the provider name.
>>  - Then partitions could be defined for IaaS Providers, Regions, Zones,
>> etc. This is defined as a enumeration and its called Scope.
>> - If Scope = PROVIDER then the partitions should provide the provider
>> name. Here I think the region would be the region defined in the given
>> provider.
>> - If Scope = REGION then the partition should provide the provider name
>> and the region name. Here the region defined in the provider would get
>> overridden.
>> - If Scope = ZONE then the partition should provide the provider name,
>> region and zone. Similarly the region and the zone defined in the provider
>> would get overridden.
>>
>> Thanks
>>
>>
>>
>> On Thu, Nov 21, 2013 at 7:24 PM, Nirmal Fernando <nirmal070125@gmail.com>wrote:
>>
>>> Hi Imesh,
>>>
>>>
>>> On Thu, Nov 21, 2013 at 6:46 PM, Imesh Gunaratne <imesh@apache.org>wrote:
>>>
>>>> I think what was meant by scope is the same:
>>>>
>>>>  <partition>
>>>>
>>>>       <id>P1</id>
>>>>
>>>>       <scope>PROVIDER</scope>
>>>>
>>>>      <property name="provider" value="ec2"/>
>>>>
>>>> <property name="region" value="us-east-1" />
>>>> </partition>
>>>>
>>>
>>> Part that I don't understand is the rationale behind scope. If I take
>>> the sample you've given, it says scope is 'Provider', what does it means
>>> here? What if I provide scope as 'Region' here? What is the difference to
>>> the final outcome?
>>>
>>>>
>>>> However I think your suggestion looks much cleaner +1
>>>>
>>>>
>>> Great.
>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>>> On Wed, Nov 20, 2013 at 9:37 PM, Nirmal Fernando <
>>>> nirmal070125@gmail.com> wrote:
>>>>
>>>>> All,
>>>>>
>>>>> IMO $Subject. It's not correct to have a scope. In my view expectation
>>>>> of a Partition can be "I want my instances in *EC2* IaaS and in
>>>>> *us-east-1* region".
>>>>>
>>>>> <partition id="p1">
>>>>>      <property name="PROVIDER" value="ec2"/>
>>>>>      <property name="REGION" value="us-east-1"/>
>>>>> ....
>>>>> </partition>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards,
>>>>> Nirmal
>>>>>
>>>>> Nirmal Fernando.
>>>>> PPMC Member & Committer of Apache Stratos,
>>>>> Senior Software Engineer, WSO2 Inc.
>>>>>
>>>>> Blog: http://nirmalfdo.blogspot.com/
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Best Regards,
>>> Nirmal
>>>
>>> Nirmal Fernando.
>>> PPMC Member & Committer of Apache Stratos,
>>> Senior Software Engineer, WSO2 Inc.
>>>
>>> Blog: http://nirmalfdo.blogspot.com/
>>>
>>
>>
>
>
> --
> Best Regards,
> Nirmal
>
> Nirmal Fernando.
> PPMC Member & Committer of Apache Stratos,
> Senior Software Engineer, WSO2 Inc.
>
> Blog: http://nirmalfdo.blogspot.com/
>



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

Mime
View raw message