Xabaril / AspNetCore.Diagnostics.HealthChecks

Enterprise HealthChecks for ASP.NET Core Diagnostics Package
Apache License 2.0
3.98k stars 770 forks source link

Configure a higher thread priority for health checks #2235

Open mbfis opened 3 weeks ago

mbfis commented 3 weeks ago

What would you like to be added: I'm not sure if such a feature already exists, but it would be convenient that health check threads can be configured with a higher priority, comparing to other threads, in order to make them unaffected with current cpu usage

Why is this needed: In some situations, where there exist other worker threads consuming quite a bit of cpu (like zipping something), we'd like our health check probes not to timeout, giving us a false positive on the health of, say Kafka, or PgSql or whatever else, unrelated to our cpu usage.