Skip to content
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

[Core] Better log format when show the disk size #46869

Merged
merged 12 commits into from
Oct 30, 2024

Conversation

Bye-legumes
Copy link
Contributor

@Bye-legumes Bye-legumes commented Jul 30, 2024

Why are these changes needed?

As I mentioned in #46868,
When the disk is near full, ray will have log looks like this
image

Since the log is difficult to read, I changed it to read as GB instead of bytes. i.e. (this just show the effect as I doesn't include 1 to show the format)
image

@liuxsh9 @Superskyyy @nemo9cby this will have better log format

Related issue number

Checks

  • [√] I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • [√] I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • [√] I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • [√] Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
@anyscalesam anyscalesam added dashboard Issues specific to the Ray Dashboard triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Aug 6, 2024
@Bye-legumes Bye-legumes changed the title [Core] Use first available as the capacity for file space detection&&Better log format [Core] Better log format when show the disk size Aug 6, 2024
private:
FRIEND_TEST(FileSystemTest, TestOverCapacity);
const std::vector<std::string> paths_;
const double capacity_threshold_;
std::atomic<bool> over_capacity_;
std::atomic<uint64_t> initial_capacity_{0};
Copy link
Contributor

Choose a reason for hiding this comment

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

is this used anywhere?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh. Sorry about that, I just fixed. It's some config that I used to testing. Sorry! Now it fixed now! Thanks!

Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
@anyscalesam anyscalesam added core Issues that should be addressed in Ray Core observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling labels Sep 25, 2024
@jjyao jjyao self-assigned this Oct 28, 2024
@jjyao jjyao removed the triage Needs triage (eg: priority, bug/not-bug, and owning component) label Oct 28, 2024
@jjyao jjyao assigned MengjinYan and unassigned jjyao Oct 28, 2024
Copy link
Collaborator

@MengjinYan MengjinYan left a comment

Choose a reason for hiding this comment

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

Thanks!

@MengjinYan MengjinYan added the go add ONLY when ready to merge, run all tests label Oct 29, 2024
src/ray/common/file_system_monitor.cc Outdated Show resolved Hide resolved
Bye-legumes and others added 5 commits October 29, 2024 13:30
Co-authored-by: Jiajun Yao <jeromeyjj@gmail.com>
Signed-off-by: zhilong <121425509+Bye-legumes@users.noreply.github.com>
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
@jjyao jjyao merged commit 4587b6c into ray-project:master Oct 30, 2024
5 checks passed
Jay-ju pushed a commit to Jay-ju/ray that referenced this pull request Nov 5, 2024
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
JP-sDEV pushed a commit to JP-sDEV/ray that referenced this pull request Nov 14, 2024
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
mohitjain2504 pushed a commit to mohitjain2504/ray that referenced this pull request Nov 15, 2024
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Issues that should be addressed in Ray Core dashboard Issues specific to the Ray Dashboard go add ONLY when ready to merge, run all tests observability Issues related to the Ray Dashboard, Logging, Metrics, Tracing, and/or Profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants