-
Notifications
You must be signed in to change notification settings - Fork 543
[POC] RayJob YuniKorn Integration #3379
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: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Troy Chiu <[email protected]>
@@ -77,14 +79,140 @@ func (y *YuniKornScheduler) AddMetadataToPod(ctx context.Context, app *rayv1.Ray | |||
} | |||
} | |||
|
|||
func (y *YuniKornScheduler) isGangSchedulingEnabled(app *rayv1.RayCluster) bool { | |||
_, exist := app.Labels[utils.RayClusterGangSchedulingEnabled] | |||
func collectLabelsFromObject(obj client.Object, labels map[string]string, sourceKey string, targetKey string) { |
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.
Maybe need to rename this func?
I think the name does not reflect what it does.
} | ||
|
||
func (y *YuniKornScheduler) isGangSchedulingEnabled(obj client.Object) bool { | ||
_, exist := obj.GetLabels()[utils.RayClusterGangSchedulingEnabled] | ||
return exist | ||
} | ||
|
||
func (y *YuniKornScheduler) populateTaskGroupsAnnotationToPod(ctx context.Context, app *rayv1.RayCluster, pod *corev1.Pod) { |
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.
I always feel its inconsistent that some where it is named app
while some where it's named cluster
maybe we should make it more consistent?
func (v *VolcanoBatchScheduler) PropagateMetadata(_ context.Context, parent client.Object, groupName string, child client.Object) { | ||
// Only support parent is RayCluster and child is Pod | ||
pod, ok := child.(*corev1.Pod) | ||
if !ok { |
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.
We might need to add some error msg here?
Usage
--set batchScheduler.name=yunikorn
to enable yunikorn as the scheduler.If everything is setup correctly, you should be able to see
Why are these changes needed?
Related issue number
Checks