Open LeonardoDaga opened 2 years ago
Unfortunately it's not possible by Hangfire to signal about all the issues down the stack, so the absence of warnings doesn't mean that everything is fine. Databases are very complex techs and it's very difficult to implement a reliable "success" metric, because any mistake in the code will compromise it.
You can also ask this question in the GitHub repository of the MySql storage package you are using (the best way is to look on NuGet.org where its repository is located), since it's a community-based storage.
I've setup a simple .netcore 3.1 web application, based on Ubuntu 16.04 Server with Mysql 8.0.25 and Hangfire 1.7.30 for scheduled activities. I'm actually struggling in understanding how scheduling activities should be made. In the actual version of the SW, I've created up to 8 asynchronous scheduled tasks managed by Hangfire, all of them structured as follow:
All these scheduling activities query the mysql DB, that's why I've made them asynchronous. One of these 8 services is quite frequent (Cron.Minutely()) and takes few seconds to be executed. I'm wondering if I'm doing something wrong, because I see in the app log many consecutive messages like:
sometimes for a total of 9000-10000 recurring jobs processed. Furthermore, after moving from Mysql 5.7.3 to 8.0.25, I've noticed a sharp increase of mysql binlogs (up to 6Gb generated in two days), all of them because of multiple logs like this (generated at the same second):
To be noted that the Hangfire Dashboard panel signals no issues and I know that I could simply deactivate binlog generation, but I would like to understand if I'm doing something wrong with Hangfire/Mysql and how I can make everything work without a so huge waste of diskspace due to binlog generation.