|
2 | 2 | Output docs/img/entropy-demo.gif |
3 | 3 |
|
4 | 4 | # Visual settings |
5 | | -Set FontSize 22 |
| 5 | +Set FontSize 18 |
6 | 6 | Set Width 1200 |
7 | | -Set Height 600 |
| 7 | +Set Height 650 |
8 | 8 | Set Padding 40 |
9 | 9 | Set Theme "Catppuccin Macchiato" |
10 | 10 |
|
11 | | -# --- Scenario Starts --- |
12 | | - |
13 | | -# Step 0: Move to the example directory where docker-compose.yml exists |
| 11 | +# Setup environment |
| 12 | +Hide |
| 13 | +Type "export PATH=$PATH:$(go env GOPATH)/bin" |
| 14 | +Enter |
14 | 15 | Type "cd examples/demo-distributed" |
15 | 16 | Enter |
16 | | -Sleep 1s |
17 | 17 | Ctrl+L |
| 18 | +Show |
| 19 | + |
| 20 | +# --- Scenario Starts --- |
18 | 21 |
|
19 | | -# Step 1: Init command (Auto-discovery) |
| 22 | +# Step 1: Auto-discovery |
20 | 23 | Type "entropy init" |
21 | 24 | Sleep 500ms |
22 | 25 | Enter |
23 | | -Sleep 2s |
| 26 | +Sleep 1.5s |
24 | 27 |
|
25 | | -# Step 2: Topology visualization |
| 28 | +# Step 2: Validation (NEW!) |
| 29 | +Type "entropy validate chaos.yaml" |
| 30 | +Sleep 500ms |
| 31 | +Enter |
| 32 | +Sleep 1.5s |
| 33 | + |
| 34 | +# Step 3: Topology visualization |
26 | 35 | Type "entropy topology" |
27 | 36 | Sleep 500ms |
28 | 37 | Enter |
29 | | -Sleep 3s |
| 38 | +Sleep 2s |
30 | 39 |
|
31 | | -# Step 3: Entropy Doctor (Resilience Analysis) |
| 40 | +# Step 4: Resilience Analysis |
32 | 41 | Type "entropy doctor" |
33 | 42 | Sleep 500ms |
34 | 43 | Enter |
35 | | -Sleep 4s |
| 44 | +Sleep 3s |
36 | 45 |
|
37 | | -# Clear screen |
38 | 46 | Ctrl+L |
39 | 47 |
|
40 | | -# Step 4: Random Fault Injection (Background Engine) |
| 48 | +# Step 5: Random Chaos Engine |
41 | 49 | Type "entropy start --detach" |
42 | 50 | Sleep 500ms |
43 | 51 | Enter |
44 | | -Sleep 2s |
| 52 | +Sleep 1.5s |
45 | 53 | Type "entropy status" |
46 | 54 | Sleep 500ms |
47 | 55 | Enter |
48 | | -Sleep 3s |
| 56 | +Sleep 1.5s |
| 57 | +Type "entropy logs & sleep 3; kill $!" |
| 58 | +Sleep 500ms |
| 59 | +Enter |
| 60 | +Sleep 3.5s |
49 | 61 | Type "entropy stop" |
50 | 62 | Sleep 500ms |
51 | 63 | Enter |
| 64 | +Sleep 1s |
| 65 | + |
| 66 | +# Step 6: Emergency Cleanup (RESTORED!) |
| 67 | +Type "entropy cleanup" |
| 68 | +Sleep 500ms |
| 69 | +Enter |
52 | 70 | Sleep 2s |
53 | 71 |
|
54 | | -# Clear screen for the main event |
55 | 72 | Ctrl+L |
56 | 73 |
|
57 | | -# Step 5: Run a deterministic chaos scenario |
| 74 | +# Step 7: Deterministic Scenario Execution |
58 | 75 | Type "entropy scenario run ../../chaos-scenario.example.yaml" |
59 | 76 | Sleep 1s |
60 | 77 | Enter |
61 | | -# Wait for the scenario to complete (approx 15-20s) |
62 | | -Sleep 20s |
| 78 | +Sleep 12s |
63 | 79 |
|
64 | 80 | # Conclusion |
65 | | -Type "# Ready for controlled chaos! 🌀" |
| 81 | +Type "# 🌀 Entropy: Developer-first Chaos Engineering" |
66 | 82 | Sleep 3s |
0 commit comments