-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Conversation
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
src/ray/common/file_system_monitor.h
Outdated
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}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this used anywhere?
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
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>
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca>
Signed-off-by: zhilong <zhilong.chen@mail.mcgill.ca> Signed-off-by: mohitjain2504 <mohit.jain@dream11.com>
Why are these changes needed?
As I mentioned in #46868,
When the disk is near full, ray will have log looks like this
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)
@liuxsh9 @Superskyyy @nemo9cby this will have better log format
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.