Hi Rasika,

When you disable Metrics, the reporters will not be started and the Metrics
won't be calculated. We cannot avoid the Metrics initialization by
disabling it. So, when you disable Metrics, you will only see logs for
creating the reporters. The reporter starting logs should not be there.

The MSF4J feature is importing the
org.wso2.carbon.metrics.jdbc.core.feature and
org.wso2.carbon.metrics.das.core.feature [1]. The
org.wso2.carbon.metrics.jdbc.core.feature requires a datasource and that's
why you must be seeing a Hikari Pool initializing at the startup. The
org.wso2.carbon.metrics.jdbc.core.feature is importing the datasources
feature, which creates Hikari Pools.

How did you measure the time added by Carbon Metrics feature? In Carbon
Metrics repository, there is a sample distribution [2] and it takes 2
seconds to start the server (in my machine). Will you be able to test the
same distribution and check how long does it take to start the server?

I think we should have included a separate feature for MSF4J analytics. We
already have a separate modules for MSF4J core and MSF4J analytics. So,
there should be a separate feature for MSF4J analytics. When there is a
separate MSF4J analytics feature, the products can include only if the
analytics are required. (MSF4J team, WDYT?).

[1]
https://github.com/wso2/msf4j/blob/v2.0.0-rc4/features/org.wso2.msf4j.feature/pom.xml#L244-L251
[2] https://github.com/wso2/carbon-metrics/tree/v2.0.0/distribution

On Fri, Jul 22, 2016 at 11:05 AM, Rasika Perera <rasi...@wso2.com> wrote:

> ​Hi Isuru & All,
> ​
>
>
>> Why do you want to disable Carbon-Metrics?
>
> In UUF, we are creating a creating a dummy product on top of C5 kernel and
> installing our carbon-uuf features. Carbon-Metrics dependency was added
> since MSF4J recently added it as a dependency. When the pack is starting up
> with carbon-metrics the server startup time goes 4-5 seconds. Apparently
> Carbon-Metrics is creating a Hikari-Pool at the server startup which is
> consuming more time. Hence we need to disable our carbon-metrics.
>
> However when we disabled the carbon-metrics through metrics.yml it should
> honor the configuration property right?
>
> Thank you
>
> On Fri, Jul 22, 2016 at 10:32 AM, Isuru Perera <isu...@wso2.com> wrote:
>
>> Why do you want to disable Carbon-Metrics?
>>
>> On Fri, Jul 22, 2016 at 10:30 AM, Prabushi Samarakoon <prabus...@wso2.com
>> > wrote:
>>
>>> Hi,
>>>
>>> We are trying to disable carbon-metrics from the product UUF. Even
>>> though we set "enabled: false" at UUF_HOME/conf/metrics.yml, it didn't
>>> disable carbon-metrics.
>>>
>>> Is there another way to disable carbon-metrics?
>>>
>>> Thanks and Regards,
>>>
>>> --
>>> *Prabushi Samarakoon*
>>> Software Engineer
>>> Mobile: +94715434580
>>> Email: prabus...@wso2.com
>>>
>>
>>
>>
>> --
>> Isuru Perera
>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/
>> Lean . Enterprise . Middleware
>>
>> about.me/chrishantha
>> Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
>>
>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> [image: wso2-signature-general.png] <https://wso2.com/signature>
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>



-- 
Isuru Perera
Associate Technical Lead | WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware

about.me/chrishantha
Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to