summaryrefslogtreecommitdiffstats
path: root/rubbos/rubbos_scripts/1-1-1/scripts
diff options
context:
space:
mode:
authorQiLiang <liangqi1@huawei.com>2015-12-15 01:30:54 +0000
committerQiLiang <liangqi1@huawei.com>2015-12-15 01:30:54 +0000
commitc3f9ac49b773679e9f929f542619140bf3c6ef49 (patch)
treec534856e436d6369c655eff9dab30789ba9d1140 /rubbos/rubbos_scripts/1-1-1/scripts
parent693b3d3cd44a651514b1925eadbc668f296588b7 (diff)
Update Benchmark configure
JIRA:BOTTLENECK-24 Change-Id: I1bf8c3fd555da1ddf8919838c5d20c9f794c0d2e Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'rubbos/rubbos_scripts/1-1-1/scripts')
-rwxr-xr-xrubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_pkg_prepare.sh45
-rwxr-xr-xrubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_rubbos_install.sh10
-rwxr-xr-xrubbos/rubbos_scripts/1-1-1/scripts/run.sh21
3 files changed, 70 insertions, 6 deletions
diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_pkg_prepare.sh b/rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_pkg_prepare.sh
new file mode 100755
index 00000000..f0614585
--- /dev/null
+++ b/rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_pkg_prepare.sh
@@ -0,0 +1,45 @@
+#!/bin/bash
+
+. ../set_bottlenecks_rubbos_env.sh
+
+scp_options="-o StrictHostKeyChecking=no -o BatchMode=yes"
+
+# Packages for BENCHMARK rubbos install
+if true; then
+ssh $BENCHMARK_HOST "mkdir -p /bottlenecks/rubbos/rubbos_scripts/1-1-1"
+scp $scp_options ../set_bottlenecks_rubbos_env.sh $BENCHMARK_HOST:/bottlenecks/rubbos/rubbos_scripts/1-1-1
+
+ssh $BENCHMARK_HOST "
+ apt-get update
+ apt-get install -y \
+ gcc \
+ g++ \
+ make
+"
+
+ssh $BENCHMARK_HOST "mkdir -p $SOFTWARE_HOME"
+scp $scp_options $SOFTWARE_HOME/$RUBBOS_TARBALL $BENCHMARK_HOST:$SOFTWARE_HOME/$RUBBOS_TARBALL
+scp $scp_options $SOFTWARE_HOME/flush_cache $BENCHMARK_HOST:$SOFTWARE_HOME/flush_cache
+scp $scp_options $SOFTWARE_HOME/$SYSSTAT_TARBALL $BENCHMARK_HOST:$SOFTWARE_HOME/$SYSSTAT_TARBALL
+ssh $BENCHMARK_HOST "mkdir -p $OUTPUT_HOME/rubbos_conf"
+scp $scp_options $OUTPUT_HOME/rubbos_conf/cpu_mem.sh $BENCHMARK_HOST:$OUTPUT_HOME/rubbos_conf/cpu_mem.sh
+fi
+
+# Packages for BENCHMARK install
+if true; then
+scp $scp_options $SOFTWARE_HOME/$JAVA_TARBALL $BENCHMARK_HOST:$SOFTWARE_HOME/$JAVA_TARBALL
+fi
+
+# Packages for BENCHMARK configure
+if true; then
+ssh $BENCHMARK_HOST "mkdir -p $WORK_HOME/rubbos_files"
+scp $scp_options -r $WORK_HOME/rubbos_files/Client $BENCHMARK_HOST:$WORK_HOME/rubbos_files
+scp $scp_options -r $WORK_HOME/rubbos_files/bench $BENCHMARK_HOST:$WORK_HOME/rubbos_files
+ssh $BENCHMARK_HOST "mkdir -p $OUTPUT_HOME/rubbos_conf"
+for i in build.properties config.mk Makefile \
+ rubbos-servletsBO.sh rubbos-servletsRW.sh
+do
+ scp $scp_options -r $OUTPUT_HOME/rubbos_conf/$i $BENCHMARK_HOST:$OUTPUT_HOME/rubbos_conf/$i
+done
+fi
+
diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_rubbos_install.sh b/rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_rubbos_install.sh
index 098df714..d78ebd28 100755
--- a/rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_rubbos_install.sh
+++ b/rubbos/rubbos_scripts/1-1-1/scripts/BENCHMARK_rubbos_install.sh
@@ -16,12 +16,12 @@ tar xzf $SOFTWARE_HOME/$RUBBOS_TARBALL --directory=$RUBBOS_APP
cp $SOFTWARE_HOME/flush_cache $RUBBOS_HOME/bench/.
# install sysstat
-tar xzf $SOFTWARE_HOME/$SYSSTAT_TARBALL --directory=$RUBBOS_APP
+#tar xzf $SOFTWARE_HOME/$SYSSTAT_TARBALL --directory=$RUBBOS_APP
-cd $SYSSTAT_HOME
-./configure --prefix=$SYSSTAT_HOME
-make
-sudo make install
+#cd $SYSSTAT_HOME
+#./configure --prefix=$SYSSTAT_HOME
+#make
+#sudo make install
# install a script to collect statistics data
cp $OUTPUT_HOME/rubbos_conf/cpu_mem.sh $RUBBOS_APP/.
diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/run.sh b/rubbos/rubbos_scripts/1-1-1/scripts/run.sh
index 5a1de25a..fd0915d6 100755
--- a/rubbos/rubbos_scripts/1-1-1/scripts/run.sh
+++ b/rubbos/rubbos_scripts/1-1-1/scripts/run.sh
@@ -7,6 +7,15 @@ echo "*** scp scripts *************************************************"
scp_options="-o StrictHostKeyChecking=no -o BatchMode=yes"
if true; then
+for script in BENCHMARK_rubbos_install.sh BENCHMARK_install.sh \
+ BENCHMARK_configure.sh BENCHMARK_uninstall.sh \
+ BENCHMARK_rubbos_uninstall.sh
+do
+ scp $scp_options $script $BENCHMARK_HOST:/tmp
+done
+fi
+
+if true; then
for script in HTTPD_install.sh HTTPD_rubbos_install.sh \
HTTPD_configure.sh HTTPD_ignition.sh \
HTTPD_stop.sh HTTPD_rubbos_uninstall.sh \
@@ -35,13 +44,14 @@ for script in MYSQL1_install.sh MYSQL1_rubbos_install.sh \
do
scp $scp_options $script $MYSQL1_HOST:/tmp
done
+fi
# Prepare software packages
echo "*** prepare software packages ***"
./MYSQL1_pkg_prepare.sh
./TOMCAT1_pkg_prepare.sh
./HTTPD_pkg_prepare.sh
-
+./BENCHMARK_pkg_prepare.sh
# Install and Configure and run Apache, Tomcat, CJDBC, and MySQL
echo "*** install scripts & configure & execute ***********************"
@@ -64,6 +74,12 @@ ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbos_install.sh
ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_rubbos_install.sh
ssh $HTTPD_HOST /tmp/HTTPD_rubbos_install.sh
+ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_rubbos_install.sh
+ssh $BENCHMARK_HOST /tmp/BENCHMARK_rubbos_install.sh
+
+ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_install.sh
+ssh $BENCHMARK_HOST /tmp/BENCHMARK_install.sh
+
ssh root@$MYSQL1_HOST chmod 770 /tmp/MYSQL1_configure.sh
ssh $MYSQL1_HOST /tmp/MYSQL1_configure.sh
@@ -73,6 +89,9 @@ ssh $TOMCAT1_HOST /tmp/TOMCAT1_configure.sh
ssh root@$HTTPD_HOST chmod 770 /tmp/HTTPD_configure.sh
ssh $HTTPD_HOST /tmp/HTTPD_configure.sh
+ssh root@$BENCHMARK_HOST chmod 770 /tmp/BENCHMARK_configure.sh
+ssh $BENCHMARK_HOST /tmp/BENCHMARK_configure.sh
+
ssh root@$TOMCAT1_HOST chmod 770 /tmp/TOMCAT1_rubbosSL_configure.sh
ssh $TOMCAT1_HOST /tmp/TOMCAT1_rubbosSL_configure.sh