From 2442eaeb1f7959cc511512427adb15afe9113270 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Wed, 4 Mar 2020 20:43:09 +0530 Subject: [PATCH] feat(experiments): Make the time-duration consistent(in seconds) at every place (#160) Signed-off-by: shubhamchaudhary --- charts/generic/pod-cpu-hog/engine.yaml | 11 +++++++---- charts/generic/pod-cpu-hog/experiment.yaml | 2 +- .../generic/pod-network-corruption/engine.yaml | 12 +++++++----- .../pod-network-corruption/experiment.yaml | 4 ++-- charts/generic/pod-network-latency/engine.yaml | 18 +++++++++--------- .../pod-network-latency/experiment.yaml | 4 ++-- charts/generic/pod-network-loss/engine.yaml | 17 +++++++++-------- .../generic/pod-network-loss/experiment.yaml | 4 ++-- .../openebs-pool-network-delay/engine.yaml | 3 +-- .../openebs-pool-network-delay/experiment.yaml | 3 +-- .../openebs-pool-network-loss/engine.yaml | 2 +- .../openebs-pool-network-loss/experiment.yaml | 2 +- .../openebs-target-network-delay/engine.yaml | 8 ++++++-- .../experiment.yaml | 2 +- .../openebs-target-network-loss/engine.yaml | 9 ++++++--- .../experiment.yaml | 2 +- 16 files changed, 57 insertions(+), 46 deletions(-) diff --git a/charts/generic/pod-cpu-hog/engine.yaml b/charts/generic/pod-cpu-hog/engine.yaml index 697ef4e..b24244f 100644 --- a/charts/generic/pod-cpu-hog/engine.yaml +++ b/charts/generic/pod-cpu-hog/engine.yaml @@ -23,13 +23,16 @@ spec: spec: components: env: + # Provide name of target container + # where chaos has to be injected - name: TARGET_CONTAINER value: 'nginx' - #number of cpu cores to be consumed - #verify the resources the app has been launched with + + #number of cpu cores to be consumed + #verify the resources the app has been launched with - name: CPU_CORES value: '1' - # in ms + - name: TOTAL_CHAOS_DURATION - value: '60000' + value: '60' # in seconds \ No newline at end of file diff --git a/charts/generic/pod-cpu-hog/experiment.yaml b/charts/generic/pod-cpu-hog/experiment.yaml index 1c809fb..71c6947 100644 --- a/charts/generic/pod-cpu-hog/experiment.yaml +++ b/charts/generic/pod-cpu-hog/experiment.yaml @@ -44,7 +44,7 @@ spec: value: '1' - name: TOTAL_CHAOS_DURATION - value: '60000' #in ms + value: '60' # in seconds # Period to wait before injection of chaos in sec - name: RAMP_TIME diff --git a/charts/generic/pod-network-corruption/engine.yaml b/charts/generic/pod-network-corruption/engine.yaml index fb258b1..0951bee 100644 --- a/charts/generic/pod-network-corruption/engine.yaml +++ b/charts/generic/pod-network-corruption/engine.yaml @@ -24,11 +24,13 @@ spec: spec: components: env: - - name: ANSIBLE_STDOUT_CALLBACK - value: 'default' - #Container name where chaos has to be injected + #Container name where chaos has to be injected - name: TARGET_CONTAINER value: 'nginx' - #Network interface inside target container + + #Network interface inside target container - name: NETWORK_INTERFACE - value: 'eth0' \ No newline at end of file + value: 'eth0' + + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds \ No newline at end of file diff --git a/charts/generic/pod-network-corruption/experiment.yaml b/charts/generic/pod-network-corruption/experiment.yaml index e926b8e..44ae54b 100644 --- a/charts/generic/pod-network-corruption/experiment.yaml +++ b/charts/generic/pod-network-corruption/experiment.yaml @@ -51,9 +51,9 @@ spec: value: '100' #in PERCENTAGE - name: TOTAL_CHAOS_DURATION - value: '60000' #in ms + value: '60' # in seconds - # Period to wait before injection of chaos in sec + # Time period to wait before injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/pod-network-latency/engine.yaml b/charts/generic/pod-network-latency/engine.yaml index 2bfbd22..c56694c 100644 --- a/charts/generic/pod-network-latency/engine.yaml +++ b/charts/generic/pod-network-latency/engine.yaml @@ -24,19 +24,19 @@ spec: spec: components: env: - - name: ANSIBLE_STDOUT_CALLBACK - value: 'default' - #Container name where chaos has to be injected + #Container name where chaos has to be injected - name: TARGET_CONTAINER value: 'nginx' - #Network interface inside target container + + #Network interface inside target container - name: NETWORK_INTERFACE - value: 'eth0' + value: 'eth0' + - name: LIB_IMAGE value: 'gaiaadm/pumba:0.6.5' + - name: NETWORK_LATENCY - value: '2000' - - name: TOTAL_CHAOS_DURATION value: '60000' - - name: LIB - value: 'pumba' \ No newline at end of file + + - name: TOTAL_CHAOS_DURATION + value: '60' # in seconds diff --git a/charts/generic/pod-network-latency/experiment.yaml b/charts/generic/pod-network-latency/experiment.yaml index 9407e70..2af752c 100644 --- a/charts/generic/pod-network-latency/experiment.yaml +++ b/charts/generic/pod-network-latency/experiment.yaml @@ -51,9 +51,9 @@ spec: value: '60000' #in ms - name: TOTAL_CHAOS_DURATION - value: '60000' #in ms + value: '60' # in seconds - # Period to wait before injection of chaos in sec + # Time period to wait before injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/generic/pod-network-loss/engine.yaml b/charts/generic/pod-network-loss/engine.yaml index f8d964d..cb0cc37 100644 --- a/charts/generic/pod-network-loss/engine.yaml +++ b/charts/generic/pod-network-loss/engine.yaml @@ -25,19 +25,20 @@ spec: spec: components: env: - - name: ANSIBLE_STDOUT_CALLBACK - value: 'default' - #Container name where chaos has to be injected + #Container name where chaos has to be injected - name: TARGET_CONTAINER value: 'nginx' + - name: LIB_IMAGE value: 'gaiaadm/pumba:0.6.5' - #Network interface inside target container + + #Network interface inside target container - name: NETWORK_INTERFACE - value: 'eth0' + value: 'eth0' + - name: NETWORK_PACKET_LOSS_PERCENTAGE value: '100' + - name: TOTAL_CHAOS_DURATION - value: '60000' - - name: LIB - value: 'pumba' \ No newline at end of file + value: '60' # in seconds + \ No newline at end of file diff --git a/charts/generic/pod-network-loss/experiment.yaml b/charts/generic/pod-network-loss/experiment.yaml index 9ba367c..641bfc9 100644 --- a/charts/generic/pod-network-loss/experiment.yaml +++ b/charts/generic/pod-network-loss/experiment.yaml @@ -51,9 +51,9 @@ spec: value: '100' #in PERCENTAGE - name: TOTAL_CHAOS_DURATION - value: '60000' #in ms + value: '60' # in seconds - # Period to wait before injection of chaos in sec + # ime period to wait before injection of chaos in sec - name: RAMP_TIME value: '' diff --git a/charts/openebs/openebs-pool-network-delay/engine.yaml b/charts/openebs/openebs-pool-network-delay/engine.yaml index 6827431..707a800 100644 --- a/charts/openebs/openebs-pool-network-delay/engine.yaml +++ b/charts/openebs/openebs-pool-network-delay/engine.yaml @@ -28,7 +28,6 @@ spec: - name: NETWORK_DELAY value: '60000' - # in milliseconds - name: TOTAL_CHAOS_DURATION - value: '60000' + value: '60' # in seconds diff --git a/charts/openebs/openebs-pool-network-delay/experiment.yaml b/charts/openebs/openebs-pool-network-delay/experiment.yaml index a698d1a..f77795a 100644 --- a/charts/openebs/openebs-pool-network-delay/experiment.yaml +++ b/charts/openebs/openebs-pool-network-delay/experiment.yaml @@ -65,9 +65,8 @@ spec: - name: NETWORK_DELAY value: '60000' - # in milliseconds - name: TOTAL_CHAOS_DURATION - value: '60000' + value: '60' # in seconds - name: LIVENESS_APP_LABEL value: '' diff --git a/charts/openebs/openebs-pool-network-loss/engine.yaml b/charts/openebs/openebs-pool-network-loss/engine.yaml index bcf3302..876d978 100644 --- a/charts/openebs/openebs-pool-network-loss/engine.yaml +++ b/charts/openebs/openebs-pool-network-loss/engine.yaml @@ -34,5 +34,5 @@ spec: value: '100' - name: TOTAL_CHAOS_DURATION - value: '60000' + value: '120' # in seconds diff --git a/charts/openebs/openebs-pool-network-loss/experiment.yaml b/charts/openebs/openebs-pool-network-loss/experiment.yaml index 1f76a4d..e45fd31 100644 --- a/charts/openebs/openebs-pool-network-loss/experiment.yaml +++ b/charts/openebs/openebs-pool-network-loss/experiment.yaml @@ -65,7 +65,7 @@ spec: value: '100' # in percentage - name: TOTAL_CHAOS_DURATION - value: '120000' # in milliseconds + value: '120' # in seconds - name: LIVENESS_APP_LABEL value: '' diff --git a/charts/openebs/openebs-target-network-delay/engine.yaml b/charts/openebs/openebs-target-network-delay/engine.yaml index 94e550d..d933231 100644 --- a/charts/openebs/openebs-target-network-delay/engine.yaml +++ b/charts/openebs/openebs-target-network-delay/engine.yaml @@ -25,11 +25,15 @@ spec: env: - name: TARGET_CONTAINER value: 'cstor-istgt' + - name: APP_PVC value: 'demo-nginx-claim' + - name: DEPLOY_TYPE - value: 'deployment' + value: 'deployment' + - name: NETWORK_DELAY value: '30000' + - name: TOTAL_CHAOS_DURATION - value: '60000' \ No newline at end of file + value: '60' # in seconds \ No newline at end of file diff --git a/charts/openebs/openebs-target-network-delay/experiment.yaml b/charts/openebs/openebs-target-network-delay/experiment.yaml index 20cea97..469f94b 100644 --- a/charts/openebs/openebs-target-network-delay/experiment.yaml +++ b/charts/openebs/openebs-target-network-delay/experiment.yaml @@ -64,7 +64,7 @@ spec: value: '60000' # in milliseconds - name: TOTAL_CHAOS_DURATION - value: '60000' # in milliseconds + value: '60' # in seconds - name: LIVENESS_APP_LABEL value: '' diff --git a/charts/openebs/openebs-target-network-loss/engine.yaml b/charts/openebs/openebs-target-network-loss/engine.yaml index fbf621e..f514cfe 100644 --- a/charts/openebs/openebs-target-network-loss/engine.yaml +++ b/charts/openebs/openebs-target-network-loss/engine.yaml @@ -25,9 +25,12 @@ spec: env: - name: TARGET_CONTAINER value: 'cstor-istgt' + - name: APP_PVC - value: 'demo-nginx-claim' + value: 'demo-nginx-claim' + - name: DEPLOY_TYPE - value: 'deployment' + value: 'deployment' + - name: TOTAL_CHAOS_DURATION - value: '120000' \ No newline at end of file + value: '120' # in seconds \ No newline at end of file diff --git a/charts/openebs/openebs-target-network-loss/experiment.yaml b/charts/openebs/openebs-target-network-loss/experiment.yaml index 7aaadce..08d2477 100644 --- a/charts/openebs/openebs-target-network-loss/experiment.yaml +++ b/charts/openebs/openebs-target-network-loss/experiment.yaml @@ -64,7 +64,7 @@ spec: value: '100' # in percentage - name: TOTAL_CHAOS_DURATION - value: '120000' # in milliseconds + value: '120' # in seconds - name: LIVENESS_APP_LABEL value: ''