Skip to content

Commit e7a2e75

Browse files
committed
adding charts
Signed-off-by: Shubham Chaudhary <[email protected]>
1 parent 5871cce commit e7a2e75

File tree

11 files changed

+91
-132
lines changed

11 files changed

+91
-132
lines changed

.idea/workspace.xml

-74
This file was deleted.

charts/spring-boot/spring-boot-app-kill/engine.yaml

+3-7
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,9 @@ spec:
1616
spec:
1717
components:
1818
env:
19-
# set chaos duration (in sec) as desired
20-
- name: TOTAL_CHAOS_DURATION
21-
value: '30'
22-
23-
# Cron expression like */1 * * * * ? can be set to enable chaos monkey AppKiller assault on a schedule
24-
- name: CM_KILL_APPLICATION_CRON
25-
value: '*/1 * * * * ?'
19+
# port of the spring boot application
20+
- name: CM_PORT
21+
value: ''
2622

2723
## percentage of total pods to target
2824
- name: PODS_AFFECTED_PERC

charts/spring-boot/spring-boot-app-kill/experiment.yaml

+10-5
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,24 @@ spec:
4646
command:
4747
- /bin/bash
4848
env:
49+
# port of the spring boot application
50+
- name: CM_PORT
51+
value: ''
52+
53+
#it contains number of requests are to be attacked
54+
# n value means nth request will be affected
55+
- name: CM_LEVEL
56+
value: '1'
4957

50-
# Cron expression like */1 * * * * ? can be set to enable chaos monkey AppKiller assault on a schedule
51-
- name: CM_KILL_APPLICATION_CRON
58+
# it limits watched packages/classes/methods
59+
- name: CM_WATCHED_CUSTOM_SERVICES
5260
value: ''
5361

5462
# provide name of watcher
5563
# it supports controller, restController, service, repository, component, webClient
5664
- name: CM_WATCHERS
5765
value: 'restController'
5866

59-
- name: TOTAL_CHAOS_DURATION
60-
value: '30'
61-
6267
## percentage of total pods to target
6368
- name: PODS_AFFECTED_PERC
6469
value: ''

charts/spring-boot/spring-boot-cpu-stress/engine.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ spec:
2020
- name: TOTAL_CHAOS_DURATION
2121
value: '30'
2222

23-
# Cron expression like */1 * * * * ? can be set to enable cpu assault on a schedule
24-
- name: CM_CPU_CRON
25-
value: '*/1 * * * * ?'
23+
# it contains fraction of used cpu. 0.95 equals 95%.
24+
# it supports value in range [0.1,1.0]
25+
- name: CPU_LOAD_FRACTION
26+
value: '0.9'
2627

27-
# Final fraction of used cpu by assault. 0.95 equals 95 %.
28-
- name: CM_CPU_LOAD_TARGET_FRACTION
29-
value: '0.8'
28+
# port of the spring boot application
29+
- name: CM_PORT
30+
value: ''
3031

3132
## percentage of total pods to target
3233
- name: PODS_AFFECTED_PERC

charts/spring-boot/spring-boot-cpu-stress/experiment.yaml

+14-8
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,23 @@ spec:
4747
- /bin/bash
4848
env:
4949

50-
# Cron expression like */1 * * * * ? can be set to enable cpu assault on a schedule
51-
- name: CM_CPU_CRON
50+
# it contains fraction of cpu to be stressed(0.95 equals 95%)
51+
# it supports value in range [0.1,1.0]
52+
- name: CPU_LOAD_FRACTION
53+
value: '0.9'
54+
55+
# port of the spring boot application
56+
- name: CM_PORT
5257
value: ''
5358

54-
# Duration to assault cpu when requested load is reached in ms.
55-
- name: CM_CPU_MS_HOLD_LOAD
56-
value: '15000'
59+
#it contains number of requests are to be attacked
60+
# n value means nth request will be affected
61+
- name: CM_LEVEL
62+
value: '1'
5763

58-
# Final fraction of used cpu by assault. 0.95 equals 95 %.
59-
- name: CM_CPU_LOAD_TARGET_FRACTION
60-
value: '0.95'
64+
# it limits watched packages/classes/methods
65+
- name: CM_WATCHED_CUSTOM_SERVICES
66+
value: ''
6167

6268
# provide name of watcher
6369
# it supports controller, restController, service, repository, component, webClient

charts/spring-boot/spring-boot-exceptions/engine.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ spec:
2828
- name: CM_EXCEPTIONS_ARGUMENTS
2929
value: 'java.lang.String:custom illegal argument exception'
3030

31+
# port of the spring boot application
32+
- name: CM_PORT
33+
value: ''
34+
3135
## percentage of total pods to target
3236
- name: PODS_AFFECTED_PERC
3337
value: ''

charts/spring-boot/spring-boot-exceptions/experiment.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,19 @@ spec:
5555
- name: CM_EXCEPTIONS_ARGUMENTS
5656
value: 'java.lang.String:custom illegal argument exception'
5757

58+
# port of the spring boot application
59+
- name: CM_PORT
60+
value: ''
61+
62+
#it contains number of requests are to be attacked
63+
# n value means nth request will be affected
64+
- name: CM_LEVEL
65+
value: '1'
66+
67+
# it limits watched packages/classes/methods
68+
- name: CM_WATCHED_CUSTOM_SERVICES
69+
value: ''
70+
5871
# provide name of watcher
5972
# it supports controller, restController, service, repository, component, webClient
6073
- name: CM_WATCHERS

charts/spring-boot/spring-boot-latency/engine.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ spec:
2020
- name: TOTAL_CHAOS_DURATION
2121
value: '30'
2222

23-
# Minimum latency (ms)
24-
- name: CM_LATENCY_RANGE_START
23+
# provide the latency (ms)
24+
- name: LATENCY
2525
value: '2000'
2626

27-
# Maximum latency (ms)
28-
- name: CM_LATENCY_RANGE_END
29-
value: '5000'
27+
# port of the spring boot application
28+
- name: CM_PORT
29+
value: ''
3030

3131
## percentage of total pods to target
3232
- name: PODS_AFFECTED_PERC

charts/spring-boot/spring-boot-latency/experiment.yaml

+14-5
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,22 @@ spec:
4747
- /bin/bash
4848
env:
4949

50-
# Minimum latency (ms)
51-
- name: CM_LATENCY_RANGE_START
50+
# provide the latency (ms)
51+
- name: LATENCY
5252
value: '2000'
5353

54-
# Maximum latency (ms)
55-
- name: CM_LATENCY_RANGE_END
56-
value: '5000'
54+
# port of the spring boot application
55+
- name: CM_PORT
56+
value: ''
57+
58+
# it contains number of requests are to be attacked
59+
# n value means nth request will be affected
60+
- name: CM_LEVEL
61+
value: '1'
62+
63+
# it limits watched packages/classes/methods
64+
- name: CM_WATCHED_CUSTOM_SERVICES
65+
value: ''
5766

5867
# provide name of watcher
5968
# it supports controller, restController, service, repository, component, webClient

charts/spring-boot/spring-boot-memory-stress/engine.yaml

+7-6
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ spec:
2020
- name: TOTAL_CHAOS_DURATION
2121
value: '30'
2222

23-
# Cron expression like */1 * * * * ? can be set to enable chaos monkey memory assault on a schedule
24-
- name: CM_MEMORY_CRON
25-
value: '*/1 * * * * ?'
26-
27-
# Final fraction of used memory by assault. 0.95 equals 95 %.
28-
- name: CM_MEMORY_FILL_TARGET_FRACTION
23+
# it contains fraction of used cpu. 0.70 equals 70%.
24+
# it supports value in range [0.01,0.95]
25+
- name: MEMORY_FILL_FRACTION
2926
value: '0.70'
3027

28+
# port of the spring boot application
29+
- name: CM_PORT
30+
value: ''
31+
3132
## percentage of total pods to target
3233
- name: PODS_AFFECTED_PERC
3334
value: ''

charts/spring-boot/spring-boot-memory-stress/experiment.yaml

+14-16
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,23 @@ spec:
4747
- /bin/bash
4848
env:
4949

50-
# Cron expression like */1 * * * * ? can be set to enable chaos monkey memory assault on a schedule
51-
- name: CM_MEMORY_CRON
52-
value: '*/1 * * * * ?'
53-
54-
# Duration to assault memory when requested load is reached in ms.
55-
- name: CM_MEMORY_MS_HOLD_FILLED_MEM
56-
value: '30000'
50+
# it contains fraction of memory to be stressed(0.70 equals 70%)
51+
# it supports value in range [0.01,0.95]
52+
- name: MEMORY_FILL_FRACTION
53+
value: '0.70'
5754

58-
# Time in ms between increases of memory usage.
59-
- name: CM_MEMORY_MS_NEXT_INCREASE
60-
value: '5000'
55+
# port of the spring boot application
56+
- name: CM_PORT
57+
value: ''
6158

62-
# Fraction of one individual memory increase iteration. 1.0 equals 100 %.
63-
- name: CM_MEMORY_FILL_INC_FRACTION
64-
value: '1.0'
59+
# it contains number of requests are to be attacked
60+
# n value means nth request will be affected
61+
- name: CM_LEVEL
62+
value: '1'
6563

66-
# Final fraction of used memory by assault. 0.95 equals 95 %.
67-
- name: CM_MEMORY_FILL_TARGET_FRACTION
68-
value: '0.70'
64+
# it limits watched packages/classes/methods
65+
- name: CM_WATCHED_CUSTOM_SERVICES
66+
value: ''
6967

7068
# provide name of watcher
7169
# it supports controller, restController, service, repository, component, webClient

0 commit comments

Comments
 (0)