Skip to content

Improve Disk Monitoring Logic #7421

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: unstable
Choose a base branch
from
Open

Conversation

hqy2000
Copy link

@hqy2000 hqy2000 commented May 8, 2025

Issue Addressed

#6687

Proposed Changes

This PR updates which disk is monitored by the system:

  • Beacon Node: Now uses the datadir from the client's config (which provides a fallback value if not specified in the command line).
  • Validator Client: Now uses the datadir from the command line. If it's not specified, validation_dir is used as a fallback.

Additionally, this PR updates the Observe trait by introducing a new method, observe_with_path, which allows specifying the path to observe. The existing observe method, which monitors the root folder, remains unchanged but is now only used by ProcessHealth, as it does not require disk information.

Additional Info

While this PR addresses disk usage reporting in many cases, it may be necessary to update the API endpoint to support reporting multiple disks. This would be useful for advanced users who split the database across several disks, as discussed in #6687 (comment).

@CLAassistant
Copy link

CLAassistant commented May 8, 2025

CLA assistant check
All committers have signed the CLA.

@hqy2000 hqy2000 marked this pull request as ready for review May 8, 2025 07:16
@hqy2000 hqy2000 changed the base branch from stable to unstable May 10, 2025 06:27
Copy link

mergify bot commented May 10, 2025

This pull request has merge conflicts. Could you please resolve them @hqy2000? 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants