karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Created] (KARAF-4610) Improve Decanter scheduler to reduce latency
Date Wed, 06 Jul 2016 09:20:10 GMT
Jean-Baptiste Onofré created KARAF-4610:

             Summary: 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:

For 2, we could use: {{java.util.concurrent.Executors.newCachedThreadPool();}}

This message was sent by Atlassian JIRA

View raw message