You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Pranavan Theivendiram <pr...@cse.mrt.ac.lk> on 2015/07/23 04:43:42 UTC

[Stratos][GSoC-2015] Adding a configurable constant

Hi Devs,

I need to add a configurable constant for stratos. Is there any config file
where I can do $subject?

Thanks
*T. Pranavan*
*BSc Eng Undergraduate| Department of Computer Science & Engineering
,University of Moratuwa*
*Mobile| *0775136836

Re: [Stratos][GSoC-2015] Adding a configurable constant

Posted by Pranavan Theivendiram <pr...@cse.mrt.ac.lk>.
Ok Noted.

*T. Pranavan*
*BSc Eng Undergraduate| Department of Computer Science & Engineering
,University of Moratuwa*
*Mobile| *0775136836

On 23 July 2015 at 15:11, Rajkumar Rajaratnam <ra...@wso2.com> wrote:

>
>
> On Thu, Jul 23, 2015 at 3:09 PM, Pranavan Theivendiram <
> pranavan.11@cse.mrt.ac.lk> wrote:
>
>> Thanks for the info Reka.
>>
>> @Raj,
>>
>> Shall I create a new one or Shall I add in the execution plans as Akila
>> suggested?
>>
>
> Lets pass the ALPHA value from execution plans to the window processor
> without having an additional config file.
>
> Thanks,
> Raj.​
>
>
>>
>> Thanks
>>
>> *T. Pranavan*
>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>> ,University of Moratuwa*
>> *Mobile| *0775136836
>>
>> On 23 July 2015 at 13:48, Akila Ravihansa Perera <ra...@wso2.com>
>> wrote:
>>
>>> Why not keep this in CEP execution plan which calls the relevant Window
>>> processor?
>>>
>>> Adding more config files will increase the configuration management
>>> complexity.
>>>
>>> On Thu, Jul 23, 2015 at 1:36 PM, Rajkumar Rajaratnam <rajkumarr@wso2.com
>>> > wrote:
>>>
>>>> Hi Reka,
>>>>
>>>> He wants to have a configurable constant (ALPHA constant for
>>>> exponential moving average) which will be used in CEP extensions (window
>>>> processors). I don't think we have any unique configuration file CEP
>>>> extensions. Do we need to make one?
>>>>
>>>> Thanks,
>>>> Raj.
>>>>
>>>> On Thu, Jul 23, 2015 at 1:28 PM, Reka Thirunavukkarasu <re...@wso2.com>
>>>> wrote:
>>>>
>>>>> Hi Prananvan,
>>>>>
>>>>> There are different config files and the classes which keep track of
>>>>> constants in cloud-controller, autoscaler and stratos-manager components
>>>>> where these files are read by relevant component in the component
>>>>> initialization time. The components and the config files are as below:
>>>>>
>>>>> autoscaler - autoscaler.xml
>>>>> cloud-controller - cloud-controller.xml
>>>>> stratos-manager/others - cartridge-config.properties
>>>>>
>>>>> All can be found in <STRATOS-HOME>/repository/conf. Also, you can see
>>>>> the relevant Constants classes in each components.
>>>>>
>>>>> Thanks,
>>>>> Reka
>>>>>
>>>>> On Thu, Jul 23, 2015 at 8:13 AM, Pranavan Theivendiram <
>>>>> pranavan.11@cse.mrt.ac.lk> wrote:
>>>>>
>>>>>> Hi Devs,
>>>>>>
>>>>>> I need to add a configurable constant for stratos. Is there any
>>>>>> config file where I can do $subject?
>>>>>>
>>>>>> Thanks
>>>>>> *T. Pranavan*
>>>>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>>>>> ,University of Moratuwa*
>>>>>> *Mobile| *0775136836
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Reka Thirunavukkarasu
>>>>> Senior Software Engineer,
>>>>> WSO2, Inc.:http://wso2.com,
>>>>> Mobile: +94776442007
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> Rajkumar Rajaratnam
>>>> Committer & PMC Member, Apache Stratos
>>>> Software Engineer, WSO2
>>>>
>>>> Mobile : +94777568639
>>>> Blog : rajkumarr.com
>>>>
>>>
>>>
>>>
>>> --
>>> Akila Ravihansa Perera
>>> WSO2 Inc.;  http://wso2.com/
>>>
>>> Blog: http://ravihansa3000.blogspot.com
>>>
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>

Re: [Stratos][GSoC-2015] Adding a configurable constant

Posted by Rajkumar Rajaratnam <ra...@wso2.com>.
On Thu, Jul 23, 2015 at 3:09 PM, Pranavan Theivendiram <
pranavan.11@cse.mrt.ac.lk> wrote:

> Thanks for the info Reka.
>
> @Raj,
>
> Shall I create a new one or Shall I add in the execution plans as Akila
> suggested?
>

Lets pass the ALPHA value from execution plans to the window processor
without having an additional config file.

Thanks,
Raj.​


>
> Thanks
>
> *T. Pranavan*
> *BSc Eng Undergraduate| Department of Computer Science & Engineering
> ,University of Moratuwa*
> *Mobile| *0775136836
>
> On 23 July 2015 at 13:48, Akila Ravihansa Perera <ra...@wso2.com>
> wrote:
>
>> Why not keep this in CEP execution plan which calls the relevant Window
>> processor?
>>
>> Adding more config files will increase the configuration management
>> complexity.
>>
>> On Thu, Jul 23, 2015 at 1:36 PM, Rajkumar Rajaratnam <ra...@wso2.com>
>> wrote:
>>
>>> Hi Reka,
>>>
>>> He wants to have a configurable constant (ALPHA constant for exponential
>>> moving average) which will be used in CEP extensions (window processors). I
>>> don't think we have any unique configuration file CEP extensions. Do we
>>> need to make one?
>>>
>>> Thanks,
>>> Raj.
>>>
>>> On Thu, Jul 23, 2015 at 1:28 PM, Reka Thirunavukkarasu <re...@wso2.com>
>>> wrote:
>>>
>>>> Hi Prananvan,
>>>>
>>>> There are different config files and the classes which keep track of
>>>> constants in cloud-controller, autoscaler and stratos-manager components
>>>> where these files are read by relevant component in the component
>>>> initialization time. The components and the config files are as below:
>>>>
>>>> autoscaler - autoscaler.xml
>>>> cloud-controller - cloud-controller.xml
>>>> stratos-manager/others - cartridge-config.properties
>>>>
>>>> All can be found in <STRATOS-HOME>/repository/conf. Also, you can see
>>>> the relevant Constants classes in each components.
>>>>
>>>> Thanks,
>>>> Reka
>>>>
>>>> On Thu, Jul 23, 2015 at 8:13 AM, Pranavan Theivendiram <
>>>> pranavan.11@cse.mrt.ac.lk> wrote:
>>>>
>>>>> Hi Devs,
>>>>>
>>>>> I need to add a configurable constant for stratos. Is there any config
>>>>> file where I can do $subject?
>>>>>
>>>>> Thanks
>>>>> *T. Pranavan*
>>>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>>>> ,University of Moratuwa*
>>>>> *Mobile| *0775136836
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Reka Thirunavukkarasu
>>>> Senior Software Engineer,
>>>> WSO2, Inc.:http://wso2.com,
>>>> Mobile: +94776442007
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Rajkumar Rajaratnam
>>> Committer & PMC Member, Apache Stratos
>>> Software Engineer, WSO2
>>>
>>> Mobile : +94777568639
>>> Blog : rajkumarr.com
>>>
>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc.;  http://wso2.com/
>>
>> Blog: http://ravihansa3000.blogspot.com
>>
>
>


-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Re: [Stratos][GSoC-2015] Adding a configurable constant

Posted by Pranavan Theivendiram <pr...@cse.mrt.ac.lk>.
Thanks for the info Reka.

@Raj,

Shall I create a new one or Shall I add in the execution plans as Akila
suggested?

Thanks

*T. Pranavan*
*BSc Eng Undergraduate| Department of Computer Science & Engineering
,University of Moratuwa*
*Mobile| *0775136836

On 23 July 2015 at 13:48, Akila Ravihansa Perera <ra...@wso2.com> wrote:

> Why not keep this in CEP execution plan which calls the relevant Window
> processor?
>
> Adding more config files will increase the configuration management
> complexity.
>
> On Thu, Jul 23, 2015 at 1:36 PM, Rajkumar Rajaratnam <ra...@wso2.com>
> wrote:
>
>> Hi Reka,
>>
>> He wants to have a configurable constant (ALPHA constant for exponential
>> moving average) which will be used in CEP extensions (window processors). I
>> don't think we have any unique configuration file CEP extensions. Do we
>> need to make one?
>>
>> Thanks,
>> Raj.
>>
>> On Thu, Jul 23, 2015 at 1:28 PM, Reka Thirunavukkarasu <re...@wso2.com>
>> wrote:
>>
>>> Hi Prananvan,
>>>
>>> There are different config files and the classes which keep track of
>>> constants in cloud-controller, autoscaler and stratos-manager components
>>> where these files are read by relevant component in the component
>>> initialization time. The components and the config files are as below:
>>>
>>> autoscaler - autoscaler.xml
>>> cloud-controller - cloud-controller.xml
>>> stratos-manager/others - cartridge-config.properties
>>>
>>> All can be found in <STRATOS-HOME>/repository/conf. Also, you can see
>>> the relevant Constants classes in each components.
>>>
>>> Thanks,
>>> Reka
>>>
>>> On Thu, Jul 23, 2015 at 8:13 AM, Pranavan Theivendiram <
>>> pranavan.11@cse.mrt.ac.lk> wrote:
>>>
>>>> Hi Devs,
>>>>
>>>> I need to add a configurable constant for stratos. Is there any config
>>>> file where I can do $subject?
>>>>
>>>> Thanks
>>>> *T. Pranavan*
>>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>>> ,University of Moratuwa*
>>>> *Mobile| *0775136836
>>>>
>>>
>>>
>>>
>>> --
>>> Reka Thirunavukkarasu
>>> Senior Software Engineer,
>>> WSO2, Inc.:http://wso2.com,
>>> Mobile: +94776442007
>>>
>>>
>>>
>>
>>
>> --
>> Rajkumar Rajaratnam
>> Committer & PMC Member, Apache Stratos
>> Software Engineer, WSO2
>>
>> Mobile : +94777568639
>> Blog : rajkumarr.com
>>
>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc.;  http://wso2.com/
>
> Blog: http://ravihansa3000.blogspot.com
>

Re: [Stratos][GSoC-2015] Adding a configurable constant

Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Why not keep this in CEP execution plan which calls the relevant Window
processor?

Adding more config files will increase the configuration management
complexity.

On Thu, Jul 23, 2015 at 1:36 PM, Rajkumar Rajaratnam <ra...@wso2.com>
wrote:

> Hi Reka,
>
> He wants to have a configurable constant (ALPHA constant for exponential
> moving average) which will be used in CEP extensions (window processors). I
> don't think we have any unique configuration file CEP extensions. Do we
> need to make one?
>
> Thanks,
> Raj.
>
> On Thu, Jul 23, 2015 at 1:28 PM, Reka Thirunavukkarasu <re...@wso2.com>
> wrote:
>
>> Hi Prananvan,
>>
>> There are different config files and the classes which keep track of
>> constants in cloud-controller, autoscaler and stratos-manager components
>> where these files are read by relevant component in the component
>> initialization time. The components and the config files are as below:
>>
>> autoscaler - autoscaler.xml
>> cloud-controller - cloud-controller.xml
>> stratos-manager/others - cartridge-config.properties
>>
>> All can be found in <STRATOS-HOME>/repository/conf. Also, you can see the
>> relevant Constants classes in each components.
>>
>> Thanks,
>> Reka
>>
>> On Thu, Jul 23, 2015 at 8:13 AM, Pranavan Theivendiram <
>> pranavan.11@cse.mrt.ac.lk> wrote:
>>
>>> Hi Devs,
>>>
>>> I need to add a configurable constant for stratos. Is there any config
>>> file where I can do $subject?
>>>
>>> Thanks
>>> *T. Pranavan*
>>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>>> ,University of Moratuwa*
>>> *Mobile| *0775136836
>>>
>>
>>
>>
>> --
>> Reka Thirunavukkarasu
>> Senior Software Engineer,
>> WSO2, Inc.:http://wso2.com,
>> Mobile: +94776442007
>>
>>
>>
>
>
> --
> Rajkumar Rajaratnam
> Committer & PMC Member, Apache Stratos
> Software Engineer, WSO2
>
> Mobile : +94777568639
> Blog : rajkumarr.com
>



-- 
Akila Ravihansa Perera
WSO2 Inc.;  http://wso2.com/

Blog: http://ravihansa3000.blogspot.com

Re: [Stratos][GSoC-2015] Adding a configurable constant

Posted by Rajkumar Rajaratnam <ra...@wso2.com>.
Hi Reka,

He wants to have a configurable constant (ALPHA constant for exponential
moving average) which will be used in CEP extensions (window processors). I
don't think we have any unique configuration file CEP extensions. Do we
need to make one?

Thanks,
Raj.

On Thu, Jul 23, 2015 at 1:28 PM, Reka Thirunavukkarasu <re...@wso2.com>
wrote:

> Hi Prananvan,
>
> There are different config files and the classes which keep track of
> constants in cloud-controller, autoscaler and stratos-manager components
> where these files are read by relevant component in the component
> initialization time. The components and the config files are as below:
>
> autoscaler - autoscaler.xml
> cloud-controller - cloud-controller.xml
> stratos-manager/others - cartridge-config.properties
>
> All can be found in <STRATOS-HOME>/repository/conf. Also, you can see the
> relevant Constants classes in each components.
>
> Thanks,
> Reka
>
> On Thu, Jul 23, 2015 at 8:13 AM, Pranavan Theivendiram <
> pranavan.11@cse.mrt.ac.lk> wrote:
>
>> Hi Devs,
>>
>> I need to add a configurable constant for stratos. Is there any config
>> file where I can do $subject?
>>
>> Thanks
>> *T. Pranavan*
>> *BSc Eng Undergraduate| Department of Computer Science & Engineering
>> ,University of Moratuwa*
>> *Mobile| *0775136836
>>
>
>
>
> --
> Reka Thirunavukkarasu
> Senior Software Engineer,
> WSO2, Inc.:http://wso2.com,
> Mobile: +94776442007
>
>
>


-- 
Rajkumar Rajaratnam
Committer & PMC Member, Apache Stratos
Software Engineer, WSO2

Mobile : +94777568639
Blog : rajkumarr.com

Re: [Stratos][GSoC-2015] Adding a configurable constant

Posted by Reka Thirunavukkarasu <re...@wso2.com>.
Hi Prananvan,

There are different config files and the classes which keep track of
constants in cloud-controller, autoscaler and stratos-manager components
where these files are read by relevant component in the component
initialization time. The components and the config files are as below:

autoscaler - autoscaler.xml
cloud-controller - cloud-controller.xml
stratos-manager/others - cartridge-config.properties

All can be found in <STRATOS-HOME>/repository/conf. Also, you can see the
relevant Constants classes in each components.

Thanks,
Reka

On Thu, Jul 23, 2015 at 8:13 AM, Pranavan Theivendiram <
pranavan.11@cse.mrt.ac.lk> wrote:

> Hi Devs,
>
> I need to add a configurable constant for stratos. Is there any config
> file where I can do $subject?
>
> Thanks
> *T. Pranavan*
> *BSc Eng Undergraduate| Department of Computer Science & Engineering
> ,University of Moratuwa*
> *Mobile| *0775136836
>



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