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

Work on KARAF-4610 started by Jean-Baptiste Onofré.
---------------------------------------------------
> 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)

Reply via email to