Skip to content

Commit

Permalink
adding charts
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Chaudhary <[email protected]>
  • Loading branch information
ispeakc0de committed Nov 17, 2022
1 parent 5871cce commit 8e351d6
Show file tree
Hide file tree
Showing 11 changed files with 91 additions and 132 deletions.
74 changes: 0 additions & 74 deletions .idea/workspace.xml

This file was deleted.

10 changes: 3 additions & 7 deletions charts/spring-boot/spring-boot-app-kill/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,9 @@ spec:
spec:
components:
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: '30'

# Cron expression like */1 * * * * ? can be set to enable chaos monkey AppKiller assault on a schedule
- name: CM_KILL_APPLICATION_CRON
value: '*/1 * * * * ?'
# port of the spring boot application
- name: CM_PORT
value: ''

## percentage of total pods to target
- name: PODS_AFFECTED_PERC
Expand Down
15 changes: 10 additions & 5 deletions charts/spring-boot/spring-boot-app-kill/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,24 @@ spec:
command:
- /bin/bash
env:
# port of the spring boot application
- name: CM_PORT
value: ''

#it contains number of requests are to be attacked
# n value means nth request will be affected
- name: CM_LEVEL
value: '1'

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

# provide name of watcher
# it supports controller, restController, service, repository, component, webClient
- name: CM_WATCHERS
value: 'restController'

- name: TOTAL_CHAOS_DURATION
value: '30'

## percentage of total pods to target
- name: PODS_AFFECTED_PERC
value: ''
Expand Down
13 changes: 7 additions & 6 deletions charts/spring-boot/spring-boot-cpu-stress/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ spec:
- name: TOTAL_CHAOS_DURATION
value: '30'

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

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

## percentage of total pods to target
- name: PODS_AFFECTED_PERC
Expand Down
22 changes: 14 additions & 8 deletions charts/spring-boot/spring-boot-cpu-stress/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,23 @@ spec:
- /bin/bash
env:

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

# port of the spring boot application
- name: CM_PORT
value: ''

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

# Final fraction of used cpu by assault. 0.95 equals 95 %.
- name: CM_CPU_LOAD_TARGET_FRACTION
value: '0.95'
# it limits watched packages/classes/methods
- name: CM_WATCHED_CUSTOM_SERVICES
value: ''

# provide name of watcher
# it supports controller, restController, service, repository, component, webClient
Expand Down
4 changes: 4 additions & 0 deletions charts/spring-boot/spring-boot-exceptions/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ spec:
- name: CM_EXCEPTIONS_ARGUMENTS
value: 'java.lang.String:custom illegal argument exception'

# port of the spring boot application
- name: CM_PORT
value: ''

## percentage of total pods to target
- name: PODS_AFFECTED_PERC
value: ''
Expand Down
13 changes: 13 additions & 0 deletions charts/spring-boot/spring-boot-exceptions/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ spec:
- name: CM_EXCEPTIONS_ARGUMENTS
value: 'java.lang.String:custom illegal argument exception'

# port of the spring boot application
- name: CM_PORT
value: ''

#it contains number of requests are to be attacked
# n value means nth request will be affected
- name: CM_LEVEL
value: '1'

# it limits watched packages/classes/methods
- name: CM_WATCHED_CUSTOM_SERVICES
value: ''

# provide name of watcher
# it supports controller, restController, service, repository, component, webClient
- name: CM_WATCHERS
Expand Down
10 changes: 5 additions & 5 deletions charts/spring-boot/spring-boot-latency/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ spec:
- name: TOTAL_CHAOS_DURATION
value: '30'

# Minimum latency (ms)
- name: CM_LATENCY_RANGE_START
# provide the latency (ms)
- name: LATENCY
value: '2000'

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

## percentage of total pods to target
- name: PODS_AFFECTED_PERC
Expand Down
19 changes: 14 additions & 5 deletions charts/spring-boot/spring-boot-latency/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,22 @@ spec:
- /bin/bash
env:

# Minimum latency (ms)
- name: CM_LATENCY_RANGE_START
# provide the latency (ms)
- name: LATENCY
value: '2000'

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

# it contains number of requests are to be attacked
# n value means nth request will be affected
- name: CM_LEVEL
value: '1'

# it limits watched packages/classes/methods
- name: CM_WATCHED_CUSTOM_SERVICES
value: ''

# provide name of watcher
# it supports controller, restController, service, repository, component, webClient
Expand Down
13 changes: 7 additions & 6 deletions charts/spring-boot/spring-boot-memory-stress/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ spec:
- name: TOTAL_CHAOS_DURATION
value: '30'

# Cron expression like */1 * * * * ? can be set to enable chaos monkey memory assault on a schedule
- name: CM_MEMORY_CRON
value: '*/1 * * * * ?'

# Final fraction of used memory by assault. 0.95 equals 95 %.
- name: CM_MEMORY_FILL_TARGET_FRACTION
# it contains fraction of used cpu. 0.70 equals 70%.
# it supports value in range [0.01,0.95]
- name: MEMORY_FILL_FRACTION
value: '0.70'

# port of the spring boot application
- name: CM_PORT
value: ''

## percentage of total pods to target
- name: PODS_AFFECTED_PERC
value: ''
Expand Down
30 changes: 14 additions & 16 deletions charts/spring-boot/spring-boot-memory-stress/experiment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,25 +47,23 @@ spec:
- /bin/bash
env:

# Cron expression like */1 * * * * ? can be set to enable chaos monkey memory assault on a schedule
- name: CM_MEMORY_CRON
value: '*/1 * * * * ?'

# Duration to assault memory when requested load is reached in ms.
- name: CM_MEMORY_MS_HOLD_FILLED_MEM
value: '30000'
# it contains fraction of used cpu. 0.70 equals 70%.
# it supports value in range [0.01,0.95]
- name: MEMORY_FILL_FRACTION
value: '0.70'

# Time in ms between increases of memory usage.
- name: CM_MEMORY_MS_NEXT_INCREASE
value: '5000'
# port of the spring boot application
- name: CM_PORT
value: ''

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

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

# provide name of watcher
# it supports controller, restController, service, repository, component, webClient
Expand Down

0 comments on commit 8e351d6

Please sign in to comment.