Skip to content

Commit

Permalink
fix: do not wait for change to complete during scale up
Browse files Browse the repository at this point in the history
Add it as a separate step, because this can take longer than the default 5 minutes. When the whole operation is retried
scale up request fails because there is an ongoing change. By splitting up into two steps, only query has to be retried.
  • Loading branch information
deepthidevaki committed Mar 14, 2024
1 parent a7bef87 commit 0321ed2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion go-chaos/cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func scaleUpBrokers(k8Client internal.K8Client, port int, brokers int, replicati
ensureNoError(err)
_, err = k8Client.ScaleZeebeCluster(brokers)
ensureNoError(err)
waitForChange(port, changeResponse.ChangeId)
return changeResponse, nil
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@
"arguments": ["cluster", "scale", "--brokers", "5"]
}
},
{
"type": "action",
"name": "Wait for scale up to complete",
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["cluster", "wait"],
"timeout": 900
}
},
{
"name": "All pods should be ready",
"type": "probe",
Expand Down

0 comments on commit 0321ed2

Please sign in to comment.