-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experiment: job worker stream is resilient to gateway crashes (#453)
Experiment: job worker stream is resilient to gateway crashes
- Loading branch information
Showing
6 changed files
with
320 additions
and
1 deletion.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
go-chaos/internal/chaos-experiments/camunda-cloud/job-push-gateway/restart.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"version": "0.1.0", | ||
"title": "Job push gateway restart gracefully experiment", | ||
"description": "Job workers with streaming enabled should be fault-tolerant. The stream should be recreated and reused to complete instances even after gateway restarts.", | ||
"contributions": { | ||
"performance": "high", | ||
"reliability": "high", | ||
"availability": "high" | ||
}, | ||
"steady-state-hypothesis": { | ||
"title": "Zeebe is alive", | ||
"probes": [ | ||
{ | ||
"name": "All pods should be ready", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "readiness"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy process model", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "process"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy workers", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "worker", "--pollingDelay", "86400000"], | ||
"timeout": 900 | ||
}, | ||
"pauses": { | ||
"after": 5 | ||
} | ||
}, | ||
{ | ||
"name": "Should be able to create process instances", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "instance-creation", "--awaitResult"], | ||
"timeout": 900 | ||
} | ||
} | ||
] | ||
}, | ||
"method": [ | ||
{ | ||
"name": "Restart gateways", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["restart", "gateway", "--all"], | ||
"timeout": 900 | ||
} | ||
} | ||
], | ||
"rollbacks": [] | ||
} |
76 changes: 76 additions & 0 deletions
76
go-chaos/internal/chaos-experiments/camunda-cloud/job-push-gateway/terminate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"version": "0.1.0", | ||
"title": "Job push gateway restart gracefully experiment", | ||
"description": "Job workers with streaming enabled should be fault-tolerant. The stream should be recreated and reused to complete instances even after gateway restarts.", | ||
"contributions": { | ||
"performance": "high", | ||
"reliability": "high", | ||
"availability": "high" | ||
}, | ||
"steady-state-hypothesis": { | ||
"title": "Zeebe is alive", | ||
"probes": [ | ||
{ | ||
"name": "All pods should be ready", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "readiness"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy process model", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "process"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy workers", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "worker", "--pollingDelay", "86400000"], | ||
"timeout": 900 | ||
}, | ||
"pauses": { | ||
"after": 5 | ||
} | ||
}, | ||
{ | ||
"name": "Should be able to create process instances", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "instance-creation", "--awaitResult"], | ||
"timeout": 900 | ||
} | ||
} | ||
] | ||
}, | ||
"method": [ | ||
{ | ||
"name": "Restart gateways", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["terminate", "gateway", "--all"], | ||
"timeout": 900 | ||
} | ||
} | ||
], | ||
"rollbacks": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
go-chaos/internal/chaos-experiments/camunda-cloud/worker-resilience/gateway-restart.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"version": "0.1.0", | ||
"title": "Gateways restart", | ||
"description": "Job workers should be fault-tolerant, even if all gateways are restarted.", | ||
"contributions": { | ||
"reliability": "high", | ||
"availability": "high" | ||
}, | ||
"steady-state-hypothesis": { | ||
"title": "Zeebe is alive", | ||
"probes": [ | ||
{ | ||
"name": "All pods should be ready", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "readiness"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy process model", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "process"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy workers", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "worker"], | ||
"timeout": 900 | ||
}, | ||
"pauses": { | ||
"after": 5 | ||
} | ||
}, | ||
{ | ||
"name": "Should be able to create process instances", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "instance-creation", "--awaitResult"], | ||
"timeout": 900 | ||
} | ||
} | ||
] | ||
}, | ||
"method": [ | ||
{ | ||
"name": "Restart gateways", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["restart", "gateway", "--all"], | ||
"timeout": 900 | ||
} | ||
} | ||
], | ||
"rollbacks": [] | ||
} |
75 changes: 75 additions & 0 deletions
75
go-chaos/internal/chaos-experiments/camunda-cloud/worker-resilience/gateway-terminate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"version": "0.1.0", | ||
"title": "Gateways restart", | ||
"description": "Job workers should be fault-tolerant, even if all gateways crash.", | ||
"contributions": { | ||
"reliability": "high", | ||
"availability": "high" | ||
}, | ||
"steady-state-hypothesis": { | ||
"title": "Zeebe is alive", | ||
"probes": [ | ||
{ | ||
"name": "All pods should be ready", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "readiness"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy process model", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "process"], | ||
"timeout": 900 | ||
} | ||
}, | ||
{ | ||
"name": "Can deploy workers", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["deploy", "worker"], | ||
"timeout": 900 | ||
}, | ||
"pauses": { | ||
"after": 5 | ||
} | ||
}, | ||
{ | ||
"name": "Should be able to create process instances", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["verify", "instance-creation", "--awaitResult"], | ||
"timeout": 900 | ||
} | ||
} | ||
] | ||
}, | ||
"method": [ | ||
{ | ||
"name": "Restart gateways", | ||
"type": "probe", | ||
"tolerance": 0, | ||
"provider": { | ||
"type": "process", | ||
"path": "zbchaos", | ||
"arguments": ["terminate", "gateway", "--all"], | ||
"timeout": 900 | ||
} | ||
} | ||
], | ||
"rollbacks": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters