Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

feat: Report open file descriptor count - #58

Merged
lfrancke merged 1 commit into
mainfrom
feat/fd-usage
Apr 7, 2026
Merged

feat: Report open file descriptor count#58
lfrancke merged 1 commit into
mainfrom
feat/fd-usage

Conversation

@lfrancke

@lfranckelfrancke commented Mar 30, 2026

Copy link
Copy Markdown
Member

Summary

  • Add open_files_count field to resources, read from /proc/self/fd - I checked but this seems to be the best way of getting that number. It seems a bit stupid to me counting this but....
  • Returns None gracefully if /proc/self/fd is unavailable even though I believe it should always be available

Test plan

  • cargo test --all-features passes
  • cargo clippy with RUSTFLAGS="-D warnings" passes

Read /proc/self/fd to report the actual number of open file
descriptors alongside the existing limit. Comparing usage vs limit
helps diagnose "too many open files" errors.
@lfranckelfrancke self-assigned this Mar 30, 2026
@lfranckelfrancke moved this to Development: Waiting for Review in Stackable EngineeringMar 30, 2026

@sbernauersbernauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it looks silly, but I couldn't find a better alternative

@lfrancke
lfrancke added this pull request to the merge queueApr 7, 2026
Merged via the queue into main with commit 6f71d96Apr 7, 2026
10 checks passed
@lfrancke
lfrancke deleted the feat/fd-usage branch April 7, 2026 16:42
@sbernauersbernauer moved this from Development: Waiting for Review to Development: Done in Stackable EngineeringApr 8, 2026
@lfranckelfrancke moved this from Development: Done to Done in Stackable EngineeringApr 9, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants

@lfrancke@sbernauer