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

add pod affinity and antiffinity rules #202

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

aojea
Copy link
Contributor

@aojea aojea commented Aug 27, 2023

Add soft rules for the Job so Pods prefer to be scheduled on the same zone and not to be scheduled on the same node.

This will improve the performance as pods in the same node will still resources from each other, and pods in different zone will have a performance penalty since networking is most likely to be worse.

Add soft rules for the Job so Pods prefer to be scheduled on the same
zone and not to be scheduled on the same node.

This will improve the performance as pods in the same node will still
resources from each other, and pods in different zone will have a
performance penalty since networking is most likely to be worse.

Signed-off-by: Antonio Ojea <aojea@google.com>
@aojea
Copy link
Contributor Author

aojea commented Aug 27, 2023

/assign @vsoch @alculquicondor

I didn't tested but IIUIC these features will help to improve the placement of the flux pods for maximizing performance.

It requires some testing

@vsoch
Copy link
Member

vsoch commented Aug 27, 2023

This looks OK to me but I'll want to get feedback from @alculquicondor too. I'm not sure if it will muck with testing given we don't actually have different nodes there.

@alculquicondor
Copy link

why just preferred?

@aojea
Copy link
Contributor Author

aojea commented Aug 28, 2023

why just preferred?

because this is backwards compatible, a Job that ran before we'll be able to run after this change, if we make it required it may leave some Pods unschedulable , and it seems flux operator expectation is all pods are available.

@alculquicondor
Copy link

lgtm

@vsoch
Copy link
Member

vsoch commented Aug 28, 2023

This looks fantastic - thank you to you both!

@vsoch vsoch merged commit 155effc into flux-framework:main Aug 28, 2023
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.

3 participants