Skip to content

Commit

Permalink
fix: adjust experiments to not always target one broker (#300)
Browse files Browse the repository at this point in the history
In order to make our experiments more stable we are not always targeting
the same broker.
  • Loading branch information
ChrisKujawa authored Dec 21, 2022
2 parents 1aa1b5a + db2e494 commit 25d2389
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
}
},
{
"name": "Should be able to create process instances on partition 1",
"name": "Should be able to create process instances on partition three",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"arguments": ["verify", "instance-creation", "--partitionId", "3"],
"timeout": 900
}
}
Expand All @@ -47,11 +47,11 @@
"method": [
{
"type": "action",
"name": "Restart leader of partition 1",
"name": "Restart leader of partition three",
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["restart", "broker", "--role", "LEADER", "--partitionId", "1"]
"arguments": ["restart", "broker", "--role", "LEADER", "--partitionId", "3"]
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
}
},
{
"name": "Should be able to create process instances on partition 1",
"name": "Should be able to create process instances on partition two",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"arguments": ["verify", "instance-creation", "--partitionId", "2"],
"timeout": 900
}
}
Expand All @@ -47,11 +47,11 @@
"method": [
{
"type": "action",
"name": "Terminate leader of partition 1 non-gracefully",
"name": "Terminate leader of partition two non-gracefully",
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "1"]
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "2"]
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@
}
},
{
"name": "Should be able to create process instances on partition 1",
"name": "Should be able to create process instances on partition two",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"arguments": ["verify", "instance-creation", "--partitionId", "2"],
"timeout": 900
}
}
Expand All @@ -47,11 +47,11 @@
"method": [
{
"type": "action",
"name": "Terminate leader of partition 1 non-gracefully",
"name": "Terminate leader of partition two non-gracefully",
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "1"]
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "2"]
}
},
{
Expand All @@ -66,23 +66,23 @@
}
},
{
"name": "Should be able to create process instances on partition 1",
"name": "Should be able to create process instances on partition two",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"arguments": ["verify", "instance-creation", "--partitionId", "2"],
"timeout": 900
}
},
{
"type": "action",
"name": "Terminate leader of partition 1 non-gracefully",
"name": "Terminate leader of partition two non-gracefully",
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "1"]
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "2"]
}
},
{
Expand All @@ -97,23 +97,23 @@
}
},
{
"name": "Should be able to create process instances on partition 1",
"name": "Should be able to create process instances on partition two",
"type": "probe",
"tolerance": 0,
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["verify", "instance-creation", "--partitionId", "1"],
"arguments": ["verify", "instance-creation", "--partitionId", "2"],
"timeout": 900
}
},
{
"type": "action",
"name": "Terminate leader of partition 1 non-gracefully",
"name": "Terminate leader of partition two non-gracefully",
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "1"]
"arguments": ["terminate", "broker", "--role", "LEADER", "--partitionId", "2"]
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"provider": {
"type": "process",
"path": "zbchaos",
"arguments": ["stress", "broker", "--cpu"]
"arguments": ["stress", "broker", "--cpu", "--role=LEADER", "--partitionId=3"]
},
"pauses": {
"after": 30
Expand Down

0 comments on commit 25d2389

Please sign in to comment.