Skip to content

Make away node types more configurable#4724

Merged
JamesMurkin merged 8 commits intomasterfrom
configurable_away_scheduling_types
Feb 27, 2026
Merged

Make away node types more configurable#4724
JamesMurkin merged 8 commits intomasterfrom
configurable_away_scheduling_types

Conversation

@JamesMurkin
Copy link
Contributor

An away node type is now:

  • Made up of a list of well known node types
  • Each well known node type can also have conditions that must be met for it to take effect

This allows us to add gpu node taints to cpu jobs conditionally but not inadvertently add all gpu node taints to gpu jobs

Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
An away node type is now:
 - Made up of a list of well known node types
 - Each well known node type can also have conditions that must be met for it to take effect

This allows us to add gpu node taints to cpu jobs conditionally but not inadvertently add all gpu node taints to gpu jobs

Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
@JamesMurkin JamesMurkin marked this pull request as ready for review February 26, 2026 16:06
jobResources: testfixtures.Cpu("2"),
expectMatch: false,
},
// Missing resource treated as zero
Copy link
Member

Choose a reason for hiding this comment

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

redundant comment as the test case name mentions the same

Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>
Signed-off-by: JamesMurkin <jamesmurkin@hotmail.com>

# Conflicts:
#	internal/scheduler/configuration/configuration.go
@JamesMurkin JamesMurkin enabled auto-merge (squash) February 27, 2026 14:10
@JamesMurkin JamesMurkin merged commit 510f1d9 into master Feb 27, 2026
16 checks passed
@JamesMurkin JamesMurkin deleted the configurable_away_scheduling_types branch February 27, 2026 14:13
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