k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/examples/chaos_monkey_example.yaml (about) 1 # Simple example of the use of chaos monkey measurement. 2 # 3 # Notes on parameters: 4 # failureRate is a percentage of all nodes that could fail simultinously. 5 # interval is the time between node failures. 6 # jitterFactor is a factor used to jitter node failures within [Interval, Interval + (1.0 + JitterFactor)] range. 7 # simulatedDowntime is a duration between node is killed and recreated. 8 9 {{$duration := "60s"}} 10 {{$namespaces := 1}} 11 12 name: chaos-monkey 13 namespace: 14 number: {{$namespaces}} 15 steps: 16 - name: Start chaos monkey 17 measurements: 18 - Identifier: chaosMonkey 19 Method: ChaosMonkey 20 Params: 21 action: start 22 failureRate: 0.1 23 interval: 10s 24 jitterFactor: 0.1 25 simulatedDowntime: 10s 26 - name: Sleep 27 measurements: 28 - Identifier: sleep 29 Method: Sleep 30 Params: 31 duration: {{$duration}} 32 - name: Stop chaos monkey 33 measurements: 34 - Identifier: chaosMonkey 35 Method: ChaosMonkey 36 Params: 37 action: stop 38 # Give nodes time to recover - 'stop chaos monkey' step ends once reboot is triggered, not completed 39 - name: Sleep 40 measurements: 41 - Identifier: sleep 42 Method: Sleep 43 Params: 44 duration: {{$duration}}