Giter Site home page Giter Site logo

yygatech / elastic-e-commerce-backend-solution Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 5.93 MB

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

Shell 9.52% Java 90.48%

elastic-e-commerce-backend-solution's Introduction

elasticDB node setup

  1. set master and slaves in set_env.sh
  2. make sure you have installed mysql 5.5 on all the nodes in the queues.
  3. make sure that you have cloned tpcw in lesson 1
  4. make sure those nodes in the queues have root access to each other without passwd (lesson 2)

elasticDB eclipse setup and debug

  1. import code to your eclipse
  2. install mvn plugin in eclipse
  3. run mvn eclipse:eclipse and mvn dependency:resolve

elasticDB property

  1. modify the scripts/set_env.sh to set the MASTER, SLAVE and CANDIDATE
  2. 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)

  1. ./testConnection to test the access of each other
  2. ./prepareMasterSlaves to get ready for master, slave and candidates.

elasticDB run

  1. From eclipse, just run without any parameter
  2. Or, from eclipse, in order to test scalability run with -c
  3. Or, from eclipse, in order to test availability and scalability run with -c -d
  4. Or, you can also run from CommandLine accordingly

elasticDB monitor

  1. run ./enableMonitors.sh, this will run dstats and open windows for MASTER, SLAVE and CANDIDATE
  2. open your browser to point to monitorIp:8080/WebContent/elasticdb.jsp

elastic-e-commerce-backend-solution's People

Contributors

yygatech avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.