Hi Gayan,

Thanks for the input.

On Mon, Sep 22, 2014 at 10:36 AM, Gayan Gunarathne <gay...@wso2.com> wrote:

>
> Hi Isuru,
>
> On Sun, Sep 21, 2014 at 1:34 PM, Isuru Haththotuwa <isu...@apache.org>
> wrote:
>
>> Hi Devs,
>>
>> In Service Grouping, a cartridge that is depending on another might need
>> some information (endpoint, etc.) about the latter. AFAIU this information
>> will be specific to a Service in a Group. Therefore, I suggest we add this
>> properties to the cartridges section of the Group definition. I have shown
>> a simple Group Definition with the proposed changes [1].
>>
>> Here, dynamicProperties contains the names of properties of which values
>> should be dynamically picked at the runtime. If a user needs custom
>> properties, we should define a abstraction so that a custom implementation
>> can be loaded at the runtime. The per-defined property name-value pairs are
>> defined in the staticProperties section.
>>
>
> AFAIU dynamic properties are also key value pairs and these values picked
> from the  meta data service.Static properties are pre-defined properties to
> the instance and those values are picked from the group definition.So we
> don't need to published static properties to the meta data service. We only
> need to published the dynamic properties to the meta data service. Is n't?
>
>
What I meant from these two types of properties is the following:

   1. Static Properties: Group level property name - value pairs which will
   not change at the runtime.
   2. Dynamic Properties: Group level property name - value pairs which
   will not change at the runtime. Ex.: an IP address.

Still, we need to publish both of these types to meta data AFAIU so that a
depending instance can pick those properties and handle them. If we do not
publish these to meta data service, the depending instances will not be
able to access them.

>
>> These data can be published to the meta data service. The relevant member
>> instances can query them and get the information about the dependencies.
>> Handling this information would be done at the instance level (using
>> Cartridge Agent, etc.).
>>
> Are we publishing the dynamic properties to the meta data service at the
> instance level?
>
Yes, we might have to AFAIU.

>
>
>>
>> Please share your feedback.
>>
>> [1].
>> {
>>   "name": "group1",
>>   "cartridges": [
>>     {
>>       "type": "mysql",
>>       "dynamicProperties": [
>>         "hostname",
>>         "port"
>>       ],
>>       "staticProperties": [
>>         {
>>           "name": "property1",
>>           "value": "property1_value"
>>         },
>>         {
>>           "name": "property2",
>>           "value": "property2_value"
>>         }
>>       ]
>>     }
>>   ],
>>   "dependencies": {
>>     "killBehaviour": "kill-none"
>>   }
>> }
>>
>> --
>> Thanks and Regards,
>>
>> Isuru H.
>> +94 716 358 048* <http://wso2.com/>*
>>
>>
>>
> Thanks,
> Gayan
>
>

>
> --
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048* <http://wso2.com/>*
>
>
> * <http://wso2.com/>*
>
>
>

Reply via email to