chaostoolkit / chaostoolkit-documentation

The Chaos Toolkit documentation
https://chaostoolkit.org
Apache License 2.0
19 stars 32 forks source link

While execution the below code we getting this error in command prompt "unknown provider type 'shell'" #164

Closed saimaheshk closed 7 months ago

saimaheshk commented 9 months ago

{ "title": "Controlled CPU Spike Experiment", "description": "Injects a low-intensity CPU spike for 5 minutes", "hypothesis": { "type": "steady-state", "title": "System performance remains stable under low CPU load", "probes": [ { "type": "action", "name": "cpu-usage", "provider": { "type": "shell", "arguments": "mpstat 1" } }, { "type": "service", "name": "web-service", "provider": { "type": "http", "url": "http://127.0.0.1:5000/" } } ] }, "method": [ { "type": "action", "name": "cpu-spike", "provider": { "type": "action", "path": "stress", "arguments": "-c 2" }, "duration": 300 } ] , "steady-state-hypothesis": { "type": "steady-state", "title": "System performance recovers after CPU spike", "probes": [ { "type": "action", "name": "cpu-usage", "provider": { "type": "shell", "arguments": "mpstat 1" } }, { "type": "service", "name": "web-service", "provider": { "type": "http", "url": "http://127.0.0.1:5000/" } } ] } }

Lawouach commented 7 months ago

Hello,

There is no shell provider. In your case, it would be process instead.

If you've seen shell in the documentation, it's a mistake indeed.