diff options
author | Amar Tumballi <amarts@redhat.com> | 2012-02-18 10:36:44 -0800 |
---|---|---|
committer | Gerrit Code Review <root@dev.gluster.com> | 2012-02-18 10:36:44 -0800 |
commit | 6ed4ac470d7aaddd05ce179bc304ef688f5553aa (patch) | |
tree | 095187e0649d88c226563f41f19a6fba0b4a156e /perf-framework/quota_gsync_run | |
parent | 4de9a1a4df6667a59dd36148167d7ea188c69831 (diff) | |
parent | db468693ef5faa294d9bc3cd3c5d70c0d99d488b (diff) |
Merge "Adding the performance framework to the qa repo"
Diffstat (limited to 'perf-framework/quota_gsync_run')
-rwxr-xr-x | perf-framework/quota_gsync_run | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/perf-framework/quota_gsync_run b/perf-framework/quota_gsync_run new file mode 100755 index 0000000..a090b66 --- /dev/null +++ b/perf-framework/quota_gsync_run @@ -0,0 +1,42 @@ +#!/bin/bash -u + +CONFIG_FILE=gf_perf_config +source $CONFIG_FILE + +run=$1 +runlabel=`echo $run|sed -e 's/^glusterfs-//' -e 's/\.tar\.gz//'` + +a=`cat .runfile` +echo "run$a - Quota off; gsync on..." +ssh -l root $MGMT_NODE "gluster volume reset $VOLNAME force" +sleep 5 +ssh -l root $MGMT_NODE "gluster volume set $VOLNAME geo-replication.indexing on" +sleep 5 +echo "run`cat .runfile` - $MOUNT_TYPE - $runlabel - $GF_CONFIG - (quota off, gsync on)" >> $RUNLOG +./start_perf_measure +sleep 10 + +echo "run$((a+1)) - Quota on; gsync on..." +ssh -l root $MGMT_NODE "gluster volume reset $VOLNAME force" +sleep 5 +ssh -l root $MGMT_NODE "gluster volume quota $VOLNAME enable" +sleep 5 +ssh -l root $MGMT_NODE "gluster volume set $VOLNAME geo-replication.indexing on" +sleep 5 +echo "run`cat .runfile` - $MOUNT_TYPE - $runlabel - $GF_CONFIG - (quota on, gsync on)" >> $RUNLOG +./start_perf_measure +sleep 10 + +echo "run$((a+2)) - Quota on; gsync off..." +ssh -l root $MGMT_NODE "gluster volume reset $VOLNAME force" +sleep 5 +ssh -l root $MGMT_NODE "gluster volume quota $VOLNAME enable" +sleep 5 +echo "run`cat .runfile` - $MOUNT_TYPE - $runlabel - $GF_CONFIG - (quota on, gsync off)" >> $RUNLOG +./start_perf_measure +sleep 10 + +# Restore +ssh -l root $MGMT_NODE "gluster volume reset $VOLNAME force" +sleep 5 + |