You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2016/07/31 05:46:20 UTC

[jira] [Resolved] (KARAF-4610) Improve Decanter scheduler to reduce latency

     [ https://issues.apache.org/jira/browse/KARAF-4610?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-4610.
-----------------------------------------
    Resolution: Fixed

> Improve Decanter scheduler to reduce latency
> --------------------------------------------
>
>                 Key: KARAF-4610
>                 URL: https://issues.apache.org/jira/browse/KARAF-4610
>             Project: Karaf
>          Issue Type: Improvement
>          Components: decanter
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: decanter-1.1.1
>
>
> The Decanter simple scheduler is actually a bit too simple ;)
> All Runnable Collectors are executed sequentially within the same thread in the simple scheduler.
> This way we may have big delays in the results. The scheduler is configured to run every 60 seconds. But for some JMX metricts the execution interval is rather 78 seconds or even more.
> 1) Instead of sleeping a fix time the scheduler should restart at a fix interval (even if the collectors need a longer time to execute).
> 2) Runnable Collectors should be executed in parallel.
> For 1, we could use:
> {{java.util.concurrent.Executors.newSingleThreadScheduledExecutor();}}
> For 2, we could use: {{java.util.concurrent.Executors.newCachedThreadPool();}}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)