Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
6e0d62d7
Unverified
Commit
6e0d62d7
authored
Apr 06, 2026
by
Julien Mancuso
Committed by
GitHub
Apr 06, 2026
Browse files
fix: Fix multinode gang scheduling by setting MinAvailable to replica count on cliques (#7905)
parent
1caf6659
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
deploy/operator/internal/dynamo/graph.go
deploy/operator/internal/dynamo/graph.go
+6
-1
deploy/operator/internal/dynamo/graph_test.go
deploy/operator/internal/dynamo/graph_test.go
+2
-2
No files found.
deploy/operator/internal/dynamo/graph.go
View file @
6e0d62d7
...
...
@@ -1436,12 +1436,17 @@ func GenerateGrovePodCliqueSet(
}
}
minAvailable
:=
int32
(
1
)
if
isMultinode
{
minAvailable
=
r
.
Replicas
}
clique
:=
&
grovev1alpha1
.
PodCliqueTemplateSpec
{
Name
:
strings
.
ToLower
(
r
.
Name
),
Spec
:
grovev1alpha1
.
PodCliqueSpec
{
RoleName
:
strings
.
ToLower
(
r
.
Name
),
Replicas
:
r
.
Replicas
,
MinAvailable
:
ptr
.
To
(
in
t32
(
1
)
),
MinAvailable
:
ptr
.
To
(
m
in
Available
),
PodSpec
:
*
podSpec
,
},
}
...
...
deploy/operator/internal/dynamo/graph_test.go
View file @
6e0d62d7
...
...
@@ -2258,7 +2258,7 @@ func TestGenerateGrovePodCliqueSet(t *testing.T) {
Spec
:
grovev1alpha1
.
PodCliqueSpec
{
RoleName
:
"worker-wkr"
,
Replicas
:
2
,
MinAvailable
:
ptr
.
To
(
int32
(
1
)),
MinAvailable
:
ptr
.
To
(
int32
(
2
)),
// StartsAfter: []string{"worker-ldr"},
PodSpec
:
corev1
.
PodSpec
{
RestartPolicy
:
corev1
.
RestartPolicyAlways
,
...
...
@@ -3256,7 +3256,7 @@ func TestGenerateGrovePodCliqueSet(t *testing.T) {
Spec
:
grovev1alpha1
.
PodCliqueSpec
{
RoleName
:
"worker-wkr"
,
Replicas
:
2
,
MinAvailable
:
ptr
.
To
(
int32
(
1
)),
MinAvailable
:
ptr
.
To
(
int32
(
2
)),
// StartsAfter: []string{"worker-ldr"},
PodSpec
:
corev1
.
PodSpec
{
TerminationGracePeriodSeconds
:
ptr
.
To
(
int64
(
60
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment