-
Notifications
You must be signed in to change notification settings - Fork 54
feat(RHOAIENG-25241): disable ray usage metrics by default #828
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
e372843
to
891024f
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #828 +/- ##
==========================================
+ Coverage 92.45% 92.47% +0.01%
==========================================
Files 24 24
Lines 1419 1421 +2
==========================================
+ Hits 1312 1314 +2
Misses 107 107 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
891024f
to
59e6d6c
Compare
9be39bc
to
48d93e1
Compare
027dd08
to
036fa4b
Compare
036fa4b
to
51f594a
Compare
hey @szaher, I looked at the method you mentioned, to put
If we did it the way you mentioned, they'd need to go and manually edit the RayCluster CR and add the env (I think). Although, since we would be hard coding the env in a python dict, wouldn't it get overwritten to be disabled again by codeflare sdk? Maybe I'm wrong tho, wdyt? |
Issue link
What changes have been made
Made
RAY_USAGE_STATS_ENABLED
default to = 0, which == disabled. Added unit tests to ensure enabledment and disablement. Also did manual testing and verified that a deployed custom build image has a default env var of RAY_USAGE_STATS_ENABLED = 0 on both head and worker podsI verified that the env was present on the cluster
I also deployed a custom codeflare-sdk build on cluster and verified that /tmp/ray/session_xxx/usage_stats.json file does not exist. This is where ray temp writes usage stats to on the head.
Verification steps
Checks