summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrubbos/rubbos_scripts/1-1-1/set_bottlenecks_rubbos_env.sh87
-rw-r--r--utils/mongodb/Mongodb_Ubuntu_install.sh32
2 files changed, 119 insertions, 0 deletions
diff --git a/rubbos/rubbos_scripts/1-1-1/set_bottlenecks_rubbos_env.sh b/rubbos/rubbos_scripts/1-1-1/set_bottlenecks_rubbos_env.sh
new file mode 100755
index 00000000..df5c5f40
--- /dev/null
+++ b/rubbos/rubbos_scripts/1-1-1/set_bottlenecks_rubbos_env.sh
@@ -0,0 +1,87 @@
+
+#!/bin/bash
+##############################################################################
+# Copyright (c) 2015 Huawei
+# hongbo.tianhongbo@huawei.com
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+set -o allexport
+
+# HOSTS
+CONTROL_HOST=192.168.50.60
+BENCHMARK_HOST=192.168.50.60
+CLIENT1_HOST=192.168.50.60
+CLIENT2_HOST=192.168.50.60
+CLIENT3_HOST=192.168.50.60
+CLIENT4_HOST=192.168.50.60
+HTTPD_HOST=192.168.50.58
+TOMCAT1_HOST=192.168.50.18
+MYSQL1_HOST=192.168.50.19
+
+# Experiment name on OPNFV
+BOTTLNECKS_NAME=bottlenecks
+
+# Directories from which files are copied
+WORK_HOME=/bottlenecks/rubbos/rubbos_scripts/rubbosMulini6
+OUTPUT_HOME=/bottlenecks/rubbos/rubbos_scripts/1-1-1
+SOFTWARE_HOME=/bottlenecks/rubbos/app_tools
+
+# Output directory for results of RUBBoS benchmark
+RUBBOS_RESULTS_HOST=192.168.50.58
+RUBBOS_RESULTS_DIR_BASE=/bottlenecks/rubbos/rubbos_results
+RUBBOS_RESULTS_DIR_NAME=2015-01-20T081237-0700
+
+# Target directories
+BOTTLNECKS_TOP=/bottlenecks
+RUBBOS_TOP=$BOTTLNECKS_TOP/rubbos
+RUBBOS_APP=$RUBBOS_TOP/app
+TMP_RESULTS_DIR_BASE=$RUBBOS_TOP/tmp_results
+RUBBOS_HOME=$RUBBOS_APP/RUBBoS
+SYSSTAT_HOME=$RUBBOS_APP/sysstat-9.0.6
+
+HTTPD_HOME=$RUBBOS_APP/apache2
+HTTPD_INSTALL_FILES=$RUBBOS_APP/httpd-2.0.64
+MOD_JK_INSTALL_FILES=$RUBBOS_APP/tomcat-connectors-1.2.32-src
+MOD_JK_INSTALL_CONFIGURE=$MOD_JK_INSTALL_FILES/native
+CATALINA_HOME=$RUBBOS_APP/apache-tomcat-5.5.17
+SERVLET_API_PATH=$CATALINA_HOME/common/lib/servlet-api.jar
+CATALINA_BASE=$CATALINA_HOME
+CJDBC_HOME=
+
+MYSQL_HOME=$RUBBOS_APP/mysql-5.0.51a-linux-i686-glibc23
+
+# Java & Ant
+JAVA_HOME=$RUBBOS_APP/jdk1.6.0_27
+JAVA_OPTS="-Xmx1300m"
+J2EE_HOME=$RUBBOS_APP/j2sdkee1.3.1
+ANT_HOME=$RUBBOS_APP/apache-ant-1.6.5
+
+# Tarballs
+JAVA_TARBALL=jdk1.6.0_27.tar.gz
+J2EE_TARBALL=j2sdkee1.3.1.jar.gz
+ANT_TARBALL=apache-ant-1.6.5.tar.gz
+SYSSTAT_TARBALL=sysstat-9.0.6.tar.gz
+HTTPD_TARBALL=httpd-2.0.64.tar.gz
+MOD_JK_TARBALL=tomcat-connectors-1.2.32-src.tar.gz
+TOMCAT_TARBALL=apache-tomcat-5.5.17.tar.gz
+CJDBC_TARBALL=
+MYSQL_TARBALL=mysql-5.0.51a-linux-i686-glibc23.tar.gz
+RUBBOS_TARBALL=RUBBoS-servlets.tar.gz
+RUBBOS_DATA_TARBALL=rubbos_data.tar.gz
+RUBBOS_DATA_TEXTFILES_TARBALL=smallDB-rubbos-modified.tgz
+
+# for MySQL
+MYSQL_CONNECTOR=mysql-connector-java-5.1.7-bin.jar
+MYSQL_PORT=3313
+MYSQL_SOCKET=$MYSQL_HOME/mysql.sock
+MYSQL_DATA_DIR=$MYSQL_HOME/data
+MYSQL_ERR_LOG=$MYSQL_HOME/data/mysql.log
+MYSQL_PID_FILE=$MYSQL_HOME/run/mysqld.pid
+
+
+set +o allexport
+
diff --git a/utils/mongodb/Mongodb_Ubuntu_install.sh b/utils/mongodb/Mongodb_Ubuntu_install.sh
new file mode 100644
index 00000000..c11921cd
--- /dev/null
+++ b/utils/mongodb/Mongodb_Ubuntu_install.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+##############################################################################
+# Copyright (c) 2015 Huawei
+# hongbo.tianhongbo@huawei.com
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+#import the public ke used by the package managment system
+sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
+
+#create a list for MangoDB
+#for Ubuntu 12.04
+#echo "deb http://repo.mongodb.org/apt/ubuntu precise/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
+
+#for Ubuntu14.04
+echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list
+
+#Reload local pachage database
+sudo apt-get update
+
+#install the MongoDB for the latest stable version
+sudo apt-get install -y mongodb-org
+
+#start MongoDB
+sudo service mongod start
+
+#try test
+# mongo