Skip to content

Commit

Permalink
feat: migrate multi leader restart (#279)
Browse files Browse the repository at this point in the history
related to #237 


Similar to the other migrated experiments I followed same approach as
described here #268


> The experiment was executed and verified via the integration test
against a self-managed cluster.
> 
> I moved the experiment into the chaos-experiments/camunda-cloud/test/
folder and migrated it, with that approach I was able to execute the
experiment with eze and running against my self-managed zell-chaos zeebe
cluster.
  • Loading branch information
ChrisKujawa authored Dec 8, 2022
2 parents 3bdb41d + b002103 commit fe140f1
Showing 1 changed file with 35 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,30 @@
"tolerance": 0,
"provider": {
"type": "process",
"path": "verify-readiness.sh",
"path": "zbchaos",
"arguments": ["verify", "readiness"],
"timeout": 900
}
},
{
"name": "Should be able to create process instances on partition one",
"name": "Can deploy process model",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "verify-steady-state.sh",
"arguments": "1",
"path": "zbchaos",
"arguments": ["deploy", "process"],
"timeout": 900
}
},
{
"name": "Should be able to create process instances on partition 1",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"timeout": 900
}
}
Expand All @@ -35,12 +47,11 @@
"method": [
{
"type": "action",
"name": "Terminate leader of partition one",
"name": "Terminate leader of partition 1 non-gracefully",
"provider": {
"type": "process",
"path": "terminate-partition.sh",
"arguments": ["Leader", "1"],
"status": "0"
"path": "zbchaos",
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "1"]
}
},
{
Expand All @@ -49,29 +60,29 @@
"tolerance": 0,
"provider": {
"type": "process",
"path": "verify-readiness.sh",
"path": "zbchaos",
"arguments": ["verify", "readiness"],
"timeout": 900
}
},
{
"name": "Should be able to create process instances on partition one",
"name": "Should be able to create process instances on partition 1",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "verify-steady-state.sh",
"arguments": "1",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"timeout": 900
}
},
{
"type": "action",
"name": "Terminate leader of partition one",
"name": "Terminate leader of partition 1 non-gracefully",
"provider": {
"type": "process",
"path": "terminate-partition.sh",
"arguments": ["Leader", "1"],
"status": "0"
"path": "zbchaos",
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "1"]
}
},
{
Expand All @@ -80,29 +91,29 @@
"tolerance": 0,
"provider": {
"type": "process",
"path": "verify-readiness.sh",
"path": "zbchaos",
"arguments": ["verify", "readiness"],
"timeout": 900
}
},
{
"name": "Should be able to create process instances on partition one",
"name": "Should be able to create process instances on partition 1",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "verify-steady-state.sh",
"arguments": "1",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"timeout": 900
}
},
{
"type": "action",
"name": "Terminate leader of partition one",
"name": "Terminate leader of partition 1 non-gracefully",
"provider": {
"type": "process",
"path": "terminate-partition.sh",
"arguments": ["Leader", "1"],
"status": "0"
"path": "zbchaos",
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "1"]
}
}
],
Expand Down

0 comments on commit fe140f1

Please sign in to comment.