Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Thread Closed 
Upcoming end-of-year release(s)
#11
(11-18-2023, 03:28 PM)the_bertrum Wrote: Love that monitor feature Tim, thanks very much.  If one accepts the default settings (6 second interval and 3 under-run messages) would it take up to 18 seconds to restart?

It depends on how often the xrun messages are written to the MPD log.

Each time the monitor wakes up it reads the messages in the log that were written since the last time it woke up.  If a message is an xrun message a counter is incremented and checked against the threshold to determine whether to restart MPD. The monitor then goes to sleep. 

So basically if threshold number of xrun messages occur in < sleep_interval then MPD restart will occur in max 1 x sleep_interval secs. When I was looking at the MPD log to get a sense of how long to took to see 3 xrun messages during a stalled stream it looked like 6 seconds would be a reasonable default sleep_interval.
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub


Messages In This Thread
Upcoming end-of-year release(s) - by Tim Curtis - 09-30-2023, 06:13 PM
RE: Upcoming end-of-year release(s) - by fdealexa - 10-31-2023, 08:14 PM
RE: Upcoming end-of-year release(s) - by Tim Curtis - 11-18-2023, 05:46 PM
RE: Upcoming end-of-year release(s) - by Nutul - 12-02-2023, 09:35 PM
RE: Upcoming end-of-year release(s) - by Nutul - 12-02-2023, 10:38 PM
RE: Upcoming end-of-year release(s) - by Nutul - 12-03-2023, 12:20 AM
RE: Upcoming end-of-year release(s) - by Nutul - 12-03-2023, 02:51 AM
RE: Upcoming end-of-year release(s) - by mashwell - 12-09-2023, 03:38 PM
RE: Upcoming end-of-year release(s) - by Nutul - 12-09-2023, 09:09 PM

Forum Jump: