Azure / Azure/azure-functions-host

Add heartbeat process to detect thread pool exhaustion

Open
#9,144 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

#### What problem would the feature you're requesting solve? Please describe.
Currently, there is no automated diagnostic in place that would detect deadlock/thread pool exhaustion in the Host. The only mode we have right now to detect thread pool exhaustion is by manually capturing and examining a memory dump.

#### Describe the solution you'd like
Add a heartbeat monitor process that pings the host on a regular schedule, and detects thread pool exhaustion scenarios.

#### Additional context
Once the heartbeat is in place, we will add one of two options for mitigation of the condition detected:

1. Auto-restart the host
or
2. Report this information through the status API's to the Antares platform for auto-mitigation/ memory dump collection.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Begin by identifying the Host entry point and its existing status API, then determine how a scheduled heartbeat should detect thread-pool exhaustion. Done should include a defined detection signal and an agreed mitigation path: host restart or reporting the condition through the status APIs.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.