Skip to content

Commit

Permalink
refactor: maximize affinities
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Sep 27, 2024
1 parent 4026f7a commit 277056a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions etc/modules/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ job "module-${JOB_UUID}" {
attribute = "${meta.namespace}"
operator = "regexp"
value = "ai4eosc"
weight = -50 # anti-affinity for ai4eosc clients
weight = -100 # anti-affinity for ai4eosc clients
}

# CPU-only jobs should deploy *preferably* on CPU clients (affinity) to avoid
Expand All @@ -62,7 +62,7 @@ job "module-${JOB_UUID}" {
attribute = "${meta.tags}"
operator = "regexp"
value = "cpu"
weight = 50
weight = 100
}

# Avoid rescheduling the job on **other** nodes during a network cut
Expand Down
4 changes: 2 additions & 2 deletions etc/tools/ai4os-federated-server/nomad.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ job "tool-fl-${JOB_UUID}" {
attribute = "${meta.namespace}"
operator = "regexp"
value = "ai4eosc"
weight = -50 # anti-affinity for ai4eosc clients
weight = -100 # anti-affinity for ai4eosc clients
}

# CPU-only jobs should deploy *preferably* on CPU clients (affinity) to avoid
Expand All @@ -62,7 +62,7 @@ job "tool-fl-${JOB_UUID}" {
attribute = "${meta.tags}"
operator = "regexp"
value = "cpu"
weight = 50
weight = 100
}

# Avoid rescheduling the job on **other** nodes during a network cut
Expand Down

0 comments on commit 277056a

Please sign in to comment.