leventov opened a new issue #9283: MonitorScheduler is prone to clock drift
URL: https://github.com/apache/druid/issues/9283
 
 
   
[`MonitorScheduler`](https://github.com/apache/druid/blob/6ee0afa8e5cdfd36409ef78b236bba085c40c892/core/src/main/java/org/apache/druid/java/util/metrics/MonitorScheduler.java)
 emits metrics periodically using a `ScheduledExecutorService`, provided 
`ScheduledThreadPoolExecutor`, which is [prone to unbounded clock 
drift](https://medium.com/@leventov/cronscheduler-a-reliable-java-scheduler-for-external-interactions-cb7ce4a4f2cd).
   
   It's impossible to say whether any of the Monitors intricate time, or any of 
the emitters imply time of the sendings, so to reduce the chance of getting 
unreliable metrics in case of clock drift, I suggest to use 
[CronScheduler](https://github.com/TimeAndSpaceIO/CronScheduler).
   
    

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to