View Code? Open in Web Editor
NEW
An elastic distributed database using MySQL replication to guarantee the high availability (HA) and dynamic scalability and used it to serve as the backend for a multi-tier web application running TPC-W benchmark
elastic-e-commerce-backend-solution's Introduction
set master and slaves in set_env.sh
make sure you have installed mysql 5.5 on all the nodes in the queues.
make sure that you have cloned tpcw in lesson 1
make sure those nodes in the queues have root access to each other without passwd (lesson 2)
elasticDB eclipse setup and debug
import code to your eclipse
install mvn plugin in eclipse
run mvn eclipse:eclipse and mvn dependency:resolve
modify the scripts/set_env.sh to set the MASTER, SLAVE and CANDIDATE
modify the scripts/set_env.sh to set the server that we would like to destroy (to test availability)
elasticDB experiment setup (do this before you run each time)
./testConnection to test the access of each other
./prepareMasterSlaves to get ready for master, slave and candidates.
From eclipse, just run without any parameter
Or, from eclipse, in order to test scalability run with -c
Or, from eclipse, in order to test availability and scalability run with -c -d
Or, you can also run from CommandLine accordingly
run ./enableMonitors.sh, this will run dstats and open windows for MASTER, SLAVE and CANDIDATE
open your browser to point to monitorIp:8080/WebContent/elasticdb.jsp
elastic-e-commerce-backend-solution's People
Contributors