martomi / chiadog

A watch dog providing a peace in mind that your Chia farm is running smoothly 24/7.
MIT License
457 stars 120 forks source link

Notify harvest timeout #49

Closed cattivik66 closed 3 years ago

cattivik66 commented 3 years ago

Based on https://chiaforum.com/t/troubleshooting-failure-to-farm-with-lots-of-plots-due-to-harvester-30s-timeout/413/3 and https://github.com/Chia-Network/chia-blockchain/issues/2651 , it seems there could be some troubles if, for any reason, the harvester takes too much time to reply.

2021-04-24T16:03:29.433 harvester chia.harvester.harvester: INFO 3 plots were eligible for farming 1c75d8d21c... Found 0 proofs. Time: 7.92976 s. Total 522 plots

The Time should be, usually, under 5 seconds. So in this example it would be nice to get a notification. It this time is going around 15 seconds there is the risk to miss the rewards. If it is 30 seconds than matematically any possible reward is lost, even if there were some eligible.

martomi commented 3 years ago

There is already a check for that. You can also see it in the example notifications in the README.

The daily stats are also calculating the average and max time to respond over the past 24 hours.

Anyone is welcome to open a PR that also calculated the number of responses > 5 seconds. Alert notifications are currently sent for anything over 20 seconds because that's already risky late.

martomi commented 3 years ago

Thanks @cattivik66 for the suggestions, I've added a statistic for number of occasions > 5 seconds search times happen during the day.

martomi commented 3 years ago

Example of the new daily summary about search times: (this is now in the newest release)

paste