diff options
author | QiLiang <liangqi1@huawei.com> | 2015-12-22 06:53:44 +0000 |
---|---|---|
committer | QiLiang <liangqi1@huawei.com> | 2015-12-22 11:20:54 +0000 |
commit | 1a24ebbda3f95600c0e7d5ed8661317a8ff7e265 (patch) | |
tree | 1bcf1fbb0718f0a0c4edf4182b0ae421e5eeff35 /rubbos/rubbos_scripts/1-1-1/scripts | |
parent | 59ddd38d8c331c94eca6485451bc0cb61e09b629 (diff) |
Clear Magic IP
Clear magic ips, all node ips are configured in
set_bottlenecks_rubbos_env.sh
JIRA:BOTTLENECK-24
Change-Id: I13161439e00a75acd51a09cdc67a8ee6e18ea633
Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'rubbos/rubbos_scripts/1-1-1/scripts')
3 files changed, 26 insertions, 4 deletions
diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/CONTROL_rubbos_exec.sh b/rubbos/rubbos_scripts/1-1-1/scripts/CONTROL_rubbos_exec.sh index 3fa3047e..41f90c8e 100755 --- a/rubbos/rubbos_scripts/1-1-1/scripts/CONTROL_rubbos_exec.sh +++ b/rubbos/rubbos_scripts/1-1-1/scripts/CONTROL_rubbos_exec.sh @@ -18,20 +18,32 @@ ssh $BENCHMARK_HOST " " #TODO use for loop to genrate rubbos.properties file 200 ~ 1700 -for i in "rubbos.properties_200" +for i in {2..2} do ssh $BENCHMARK_HOST " source /bottlenecks/rubbos/rubbos_scripts/1-1-1/set_bottlenecks_rubbos_env.sh rm -f $RUBBOS_HOME/Client/rubbos.properties " - scp $OUTPUT_HOME/rubbos_conf/$i $BENCHMARK_HOST:$RUBBOS_HOME/Client/rubbos.properties + + sed -e "s/REPLACE_HTTPD_HOST/$HTTPD_HOST/g" \ + -e "s/REPLACE_TOMCAT1_HOST/$TOMCAT1_HOST/g" \ + -e "s/REPLACE_MYSQL1_HOST/$MYSQL1_HOST/g" \ + -e "s#REPLACE_CLIENT1_HOST#$CLIENT1_HOST#g" \ + -e "s#REPLACE_CLIENT2_HOST#$CLIENT2_HOST#g" \ + -e "s#REPLACE_CLIENT3_HOST#$CLIENT3_HOST#g" \ + -e "s#REPLACE_CLIENT4_HOST#$CLIENT4_HOST#g" \ + -e "s/REPLACE_NUMBER_OF_CLIENTS_PER_NODE/$((20*i))/g" \ + $OUTPUT_HOME/rubbos_conf/rubbos.properties_template \ + > $OUTPUT_HOME/rubbos_conf/rubbos.properties + scp $OUTPUT_HOME/rubbos_conf/rubbos.properties $BENCHMARK_HOST:$RUBBOS_HOME/Client/rubbos.properties + rm -rf $OUTPUT_HOME/rubbos_conf/rubbos.properties #echo "Resetting all data" #$OUTPUT_HOME/scripts/reset_all.sh # Browsing Only - echo "Start Browsing Only with $i" + echo "Start Browsing Only with rubbos.properties_$((100*i))" echo "Removing previous logs..." ssh $HTTPD_HOST "rm -f $HTTPD_HOME/logs/*log" ssh $TOMCAT1_HOST "rm -f $CATALINA_HOME/logs/*" @@ -82,7 +94,7 @@ do #$OUTPUT_HOME/scripts/stop_all.sh $OUTPUT_HOME/scripts/kill_all.sh sleep 15 - echo "End Browsing Only with $i" + echo "End Browsing Only with rubbos.properties_$((100*i))" # Read/Write diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/HTTPD_pkg_prepare.sh b/rubbos/rubbos_scripts/1-1-1/scripts/HTTPD_pkg_prepare.sh index e2dc3e8d..19f65428 100755 --- a/rubbos/rubbos_scripts/1-1-1/scripts/HTTPD_pkg_prepare.sh +++ b/rubbos/rubbos_scripts/1-1-1/scripts/HTTPD_pkg_prepare.sh @@ -29,7 +29,13 @@ fi if true; then ssh $HTTPD_HOST "mkdir -p $OUTPUT_HOME/apache_conf" scp $scp_options $OUTPUT_HOME/apache_conf/httpd.conf $HTTPD_HOST:$OUTPUT_HOME/apache_conf/httpd.conf + +sed -e "s/REPLACE_TOMCAT1_HOST/$TOMCAT1_HOST/g" \ + $OUTPUT_HOME/apache_conf/workers.properties_template \ + > $OUTPUT_HOME/apache_conf/workers.properties scp $scp_options $OUTPUT_HOME/apache_conf/workers.properties $HTTPD_HOST:$OUTPUT_HOME/apache_conf/workers.properties +rm -rf $OUTPUT_HOME/apache_conf/workers.properties + ssh $HTTPD_HOST "mkdir -p $WORK_HOME/apache_files" scp $scp_options -r $WORK_HOME/apache_files/rubbos_html $HTTPD_HOST:$WORK_HOME/apache_files/rubbos_html fi diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh b/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh index b2aacea8..d50a6daf 100755 --- a/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh +++ b/rubbos/rubbos_scripts/1-1-1/scripts/TOMCAT1_pkg_prepare.sh @@ -36,10 +36,14 @@ fi # Packages for TOMCAT1 rubbosSL configure if true; then ssh $TOMCAT1_HOST "mkdir -p $OUTPUT_HOME/rubbos_conf" +sed -e "s#REPLACE_MYSQL1_HOST#$MYSQL1_HOST#g" \ + $OUTPUT_HOME/rubbos_conf/mysql.properties_template \ + > $OUTPUT_HOME/rubbos_conf/mysql.properties for i in build.properties mysql.properties build.xml Config.java web.xml do scp $scp_options $OUTPUT_HOME/rubbos_conf/$i $TOMCAT1_HOST:$OUTPUT_HOME/rubbos_conf/$i done +rm -rf $OUTPUT_HOME/rubbos_conf/mysql.properties ssh $TOMCAT1_HOST "mkdir -p $WORK_HOME/rubbos_files" scp $scp_options -r $WORK_HOME/rubbos_files/Servlets $TOMCAT1_HOST:$WORK_HOME/rubbos_files/Servlets |