Merge "[Plugins] Replace instance_dd_test.sh with instance_test.sh"
This commit is contained in:
commit
bc9ebc38af
@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; }
|
|
||||||
file=/tmp/test.img
|
|
||||||
c=${1:-$SIZE}
|
|
||||||
c=${c:-1000} #default is 1GB
|
|
||||||
write_seq=$(time_seconds "dd if=/dev/zero of=$file bs=1M count=$c")
|
|
||||||
read_seq=$(time_seconds "dd if=$file of=/dev/null bs=1M count=$c")
|
|
||||||
[ -f $file ] && rm $file
|
|
||||||
|
|
||||||
echo "{
|
|
||||||
\"write_seq_${c}m\": $write_seq,
|
|
||||||
\"read_seq_${c}m\": $read_seq
|
|
||||||
}"
|
|
@ -1029,7 +1029,7 @@
|
|||||||
size: 2
|
size: 2
|
||||||
use_floating_ip: true
|
use_floating_ip: true
|
||||||
command:
|
command:
|
||||||
script_file: "~/.rally/extra/instance_dd_test.sh"
|
script_file: "~/.rally/extra/instance_test.sh"
|
||||||
interpreter: "/bin/sh"
|
interpreter: "/bin/sh"
|
||||||
username: "cirros"
|
username: "cirros"
|
||||||
runner:
|
runner:
|
||||||
@ -1052,7 +1052,7 @@
|
|||||||
name: {{image_name}}
|
name: {{image_name}}
|
||||||
use_floating_ip: false
|
use_floating_ip: false
|
||||||
command:
|
command:
|
||||||
script_file: "~/.rally/extra/instance_dd_test.sh"
|
script_file: "~/.rally/extra/instance_test.sh"
|
||||||
interpreter: "/bin/sh"
|
interpreter: "/bin/sh"
|
||||||
username: "cirros"
|
username: "cirros"
|
||||||
runner:
|
runner:
|
||||||
|
@ -311,7 +311,7 @@
|
|||||||
floating_network: "{{external_net}}"
|
floating_network: "{{external_net}}"
|
||||||
use_floating_ip: true
|
use_floating_ip: true
|
||||||
command:
|
command:
|
||||||
script_file: "~/.rally/extra/instance_dd_test.sh"
|
script_file: "~/.rally/extra/instance_test.sh"
|
||||||
interpreter: "/bin/sh"
|
interpreter: "/bin/sh"
|
||||||
username: "cirros"
|
username: "cirros"
|
||||||
runner:
|
runner:
|
||||||
|
@ -355,7 +355,7 @@
|
|||||||
image:
|
image:
|
||||||
name: {{image_name}}
|
name: {{image_name}}
|
||||||
command:
|
command:
|
||||||
script_file: "~/.rally/extra/instance_dd_test.sh"
|
script_file: "~/.rally/extra/instance_test.sh"
|
||||||
interpreter: "/bin/sh"
|
interpreter: "/bin/sh"
|
||||||
username: "cirros"
|
username: "cirros"
|
||||||
runner:
|
runner:
|
||||||
|
@ -525,7 +525,7 @@
|
|||||||
image:
|
image:
|
||||||
name: {{image_name}}
|
name: {{image_name}}
|
||||||
command:
|
command:
|
||||||
script_file: "~/.rally/extra/instance_dd_test.sh"
|
script_file: "~/.rally/extra/instance_test.sh"
|
||||||
interpreter: "/bin/sh"
|
interpreter: "/bin/sh"
|
||||||
username: "cirros"
|
username: "cirros"
|
||||||
runner:
|
runner:
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"args": {
|
"args": {
|
||||||
"flavor": {"name": "m1.small"},
|
"flavor": {"name": "m1.small"},
|
||||||
"command": {
|
"command": {
|
||||||
"remote_path": "./instance_dd_test.sh"
|
"remote_path": "./instance_test.sh"
|
||||||
},
|
},
|
||||||
"username": "root",
|
"username": "root",
|
||||||
"userdata": "#cloud-config\ndisable_root: 0\nssh_pwauth: 1"
|
"userdata": "#cloud-config\ndisable_root: 0\nssh_pwauth: 1"
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
-
|
-
|
||||||
args:
|
args:
|
||||||
command:
|
command:
|
||||||
remote_path: "./instance_dd_test.sh"
|
remote_path: "./instance_test.sh"
|
||||||
flavor:
|
flavor:
|
||||||
name: m1.small
|
name: m1.small
|
||||||
userdata: "#cloud-config\ndisable_root: 0\nssh_pwauth: 1"
|
userdata: "#cloud-config\ndisable_root: 0\nssh_pwauth: 1"
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
"force_delete": false,
|
"force_delete": false,
|
||||||
"command": {
|
"command": {
|
||||||
"interpreter": "/bin/sh",
|
"interpreter": "/bin/sh",
|
||||||
"script_file": "samples/tasks/support/instance_dd_test.sh"
|
"script_file": "samples/tasks/support/instance_test.sh"
|
||||||
},
|
},
|
||||||
"username": "cirros"
|
"username": "cirros"
|
||||||
},
|
},
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
force_delete: false
|
force_delete: false
|
||||||
command:
|
command:
|
||||||
interpreter: "/bin/sh"
|
interpreter: "/bin/sh"
|
||||||
script_file: "samples/tasks/support/instance_dd_test.sh"
|
script_file: "samples/tasks/support/instance_test.sh"
|
||||||
username: "cirros"
|
username: "cirros"
|
||||||
runner:
|
runner:
|
||||||
type: "constant"
|
type: "constant"
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
instance_linpack.sh
|
instance_linpack.sh
|
||||||
=============
|
===================
|
||||||
|
|
||||||
instance_linpack.sh, will kick off a CPU intensive workload within a OpenStack instance.
|
instance_linpack.sh, will kick off a CPU intensive workload within a OpenStack instance.
|
||||||
This script will return the avg gflops and max gflops Linpack reports in a JSON format.
|
This script will return the avg gflops and max gflops Linpack reports in a JSON format.
|
||||||
To run this workload, the VM must have linpack installed prior to running.
|
To run this workload, the VM must have linpack installed prior to running.
|
||||||
|
|
||||||
instance_dd_test.sh
|
instance_test.sh
|
||||||
=============
|
================
|
||||||
instance_dd_test.sh, will kick off a IO intensive workload within an OpenStack instance.
|
|
||||||
This script will return the write and read performance dd was able to achieve in a
|
instance_test.sh loads server by spawning processes. Finally, it outputs
|
||||||
JSON format.
|
JSON data for HTML report charts, with values of CPU, memory and disk usage.
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
time_seconds(){ (time -p $1 ) 2>&1 |awk '/real/{print $2}'; }
|
|
||||||
file=/tmp/test.img
|
|
||||||
c=${1:-$SIZE}
|
|
||||||
c=${c:-1000} #default is 1GB
|
|
||||||
write_seq=$(time_seconds "dd if=/dev/zero of=$file bs=1M count=$c")
|
|
||||||
read_seq=$(time_seconds "dd if=$file of=/dev/null bs=1M count=$c")
|
|
||||||
[ -f $file ] && rm $file
|
|
||||||
|
|
||||||
echo "{
|
|
||||||
\"write_seq_${c}m\": $write_seq,
|
|
||||||
\"read_seq_${c}m\": $read_seq
|
|
||||||
}"
|
|
Loading…
x
Reference in New Issue
Block a user