-
Notifications
You must be signed in to change notification settings - Fork 85
[WIP] filter job by topology - step 1 #334
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
749d1cf
to
12aafda
Compare
pkg/scheduler/plugins/topology/topology_plugin_job_filtering.go
Outdated
Show resolved
Hide resolved
t.calcTreeAlocationData(job, topologyTree) | ||
|
||
// Get best domains for the job | ||
jobAllocateableDomain, err := t.getBestjobAllocateableDomains(job, topologyTree) | ||
if err != nil { | ||
return err | ||
} |
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 there any case where these two are not called together? If not, just call calcTreeAlocationData
from inside getBestjobAllocateableDomains
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 think that it makes sense to separate them as 2 different steps in the proccess:
1- Get matching topology
2- See if we have the result in cache
3- Calculate allocation data for the given job on all tree nodes
4- Get the domains which satisfies all the requirments
5- Save to cache
pkg/scheduler/plugins/topology/topology_plugin_job_filtering.go
Outdated
Show resolved
Hide resolved
30b5497
to
388fe85
Compare
Merging this branch will decrease overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
Merging this branch will decrease overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
pkg/scheduler/plugins/topology/topology_plugin_job_filtering.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/plugins/topology/topology_plugin_job_filtering.go
Outdated
Show resolved
Hide resolved
pkg/scheduler/plugins/topology/topology_plugin_job_filtering.go
Outdated
Show resolved
Hide resolved
Known issue: wrong distance calculation
ed5440a
to
4cd88c1
Compare
Merging this branch will decrease overall coverage
Coverage by fileChanged files (no unit tests)
Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code. Changed unit test files
|
Base code fro prePredicate with node allocation checks instead of domain sum