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

[Feature][autoscaler v2] Set RAY_NODE_TYPE_NAME when starting ray node #1973

Merged
merged 1 commit into from
Mar 7, 2024

Conversation

kevin85421
Copy link
Member

@kevin85421 kevin85421 commented Mar 7, 2024

Why are these changes needed?

Related issue number

Closes #1965

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

I manually tested this PR with this gist.
Screen Shot 2024-03-07 at 2 28 27 PM

@@ -343,6 +315,7 @@ func TestBuildPod(t *testing.T) {
checkContainerEnv(t, rayContainer, utils.RAY_USAGE_STATS_KUBERAY_IN_USE, "1")
checkContainerEnv(t, rayContainer, utils.RAY_CLUSTER_NAME, fmt.Sprintf("metadata.labels['%s']", utils.RayClusterLabelKey))
checkContainerEnv(t, rayContainer, utils.RAY_DASHBOARD_ENABLE_K8S_DISK_USAGE, "1")
checkContainerEnv(t, rayContainer, utils.RAY_NODE_TYPE_NAME, fmt.Sprintf("metadata.labels['%s']", utils.RayNodeGroupLabelKey))
Copy link
Member Author

Choose a reason for hiding this comment

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

The test for this PR is confined to TestBuildPod. All other changes in this file are solely for refactoring purposes.

@kevin85421 kevin85421 marked this pull request as ready for review March 7, 2024 22:29
@kevin85421 kevin85421 requested a review from rickyyx March 7, 2024 22:29
Copy link
Contributor

@rickyyx rickyyx left a comment

Choose a reason for hiding this comment

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


via GIPHY

@kevin85421 kevin85421 merged commit 72e9933 into ray-project:master Mar 7, 2024
23 checks passed
@kevin85421 kevin85421 assigned kevin85421 and unassigned rickyyx Mar 7, 2024
kevin85421 added a commit that referenced this pull request Mar 15, 2024
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.

[ray][autoscaler v2] Set RAY_NODE_TYPE_NAME when starting ray node
2 participants