-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcdk-iofaults.yaml
120 lines (112 loc) · 3.27 KB
/
cdk-iofaults.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# https://chaos-mesh.org/docs/simulate-io-chaos-on-kubernetes/
attacknetConfig:
waitBeforeInjectionSeconds: 1
reuseDevnetBetweenRuns: true
existingDevnetNamespace: "kt-cdk"
allowPostFaultInspection: true
# Not used as we're not deploying L1, but otherwise attacknet refuses to start
harnessConfig:
networkConfig: default.yaml
networkType: ethereum
testConfig:
tests:
- testName: sequencer-config
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
apiVersion: chaos-mesh.org/v1alpha1
kind: IOChaos
spec:
action: latency
mode: one
selector:
labelSelectors:
'kurtosistech.com/id': 'sequencer001'
volumePath: /etc/erigon
path: '//etc/erigon/config.yaml'
delay: '500ms'
percent: 50
duration: '30s'
- stepType: waitForFaultCompletion
description: wait for faults to terminate
- testName: sequencer-datastream.bin
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
apiVersion: chaos-mesh.org/v1alpha1
kind: IOChaos
spec:
action: latency
mode: one
selector:
labelSelectors:
'kurtosistech.com/id': 'sequencer001'
volumePath: /datadir
path: '/datadir/data-stream.bin'
delay: '100ms'
percent: 10
duration: '1s'
- stepType: waitForFaultCompletion
description: wait for faults to terminate
- testName: sequencer-chaindata
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
apiVersion: chaos-mesh.org/v1alpha1
kind: IOChaos
spec:
action: latency
mode: one
selector:
labelSelectors:
'kurtosistech.com/id': 'sequencer001'
volumePath: /datadir
path: '/datadir/chaindata/*'
delay: '100ms'
percent: 10
duration: '1s'
- stepType: waitForFaultCompletion
description: wait for faults to terminate
- testName: sequencer-datastream.db
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
apiVersion: chaos-mesh.org/v1alpha1
kind: IOChaos
spec:
action: latency
mode: one
selector:
labelSelectors:
'kurtosistech.com/id': 'sequencer001'
volumePath: /datadir
path: '/datadir/data-stream.db/*'
delay: '500ms'
percent: 50
duration: '5s'
- stepType: waitForFaultCompletion
description: wait for faults to terminate
- testName: sequencer-txpool
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
apiVersion: chaos-mesh.org/v1alpha1
kind: IOChaos
spec:
action: latency
mode: one
selector:
labelSelectors:
'kurtosistech.com/id': 'sequencer001'
volumePath: /datadir
path: '/datadir/txpool/*'
delay: '100ms'
percent: 10
duration: '1s'
- stepType: waitForFaultCompletion
description: wait for faults to terminate