aspnet / Diagnostics

[Archived] Diagnostics middleware for reporting info and handling exceptions and errors in ASP.NET Core, and diagnosing Entity Framework Core migrations errors. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
213 stars 111 forks source link

Alive check, readiness check... where is the busy check? #476

Closed naymore closed 5 years ago

naymore commented 6 years ago

I recently wondered if service fabric shuts down service instances (stateless) gracefully. It doesn't. I am aware of the health checking features in k8s and wondered why nobody sees any benefit in checking a service instance's (pod) busy state. For example if a service instance is drained but is still processing requests the orchestrator should wait until all pending jobs finished gracefully. Or be forcefully killed after a certain amount of time.

chuanboz commented 6 years ago

Service Fabric has load reporting and load metric, have you considered using that for busy load ballance? that's natively supported by service fabric.

glennc commented 5 years ago

@naymore That functionality is kind of built into the stack already. Once ASP.NET gets a shutdown notification from the orchestrator it will attempt to drain all requests before terminating. Once the timeout has expired they will be killed and the process end. Is there something more that you would expect here?

natemcmaster commented 5 years ago

I'm closing as there doesn't appear to be any action item. We're going to archive this repo which makes this read-only. If you have additional feedback on this subject, please use https://github.com/aspnet/AspNetCore