GithubHelp home page GithubHelp logo

zayat / rubis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uillianluiz/rubis

0.0 2.0 0.0 2.15 MB

Updated version of the RUBiS benchmark (http://rubis.ow2.org/)

License: Other

Makefile 0.60% Awk 4.00% C 0.13% Shell 2.01% Java 61.63% HTML 4.41% Python 0.84% PHP 26.38%

rubis's Introduction

RUBiS

This is a modified implementation of RUBiS (RUBiS: Rice University Bidding System) that supports PHP7, PDO connections, and faster initialization of the database.

More information on the RUBiS project, and for the original source code, check here.

Requirements:

  1. PHP7
  2. MySQL (Other database servers may be supported. They were not tested, though)
  3. Apache
  4. Java (for building and executing the client)
  5. Python (optional, for setting up the rubis.properties file)

Installation steps:

  1. Clone this repository
    • git clone https://github.com/uillianluiz/RUBiS.git
  2. Install MySQL
    • sudo apt-get install mysql-server
  3. Install Apache2
    • sudo apt-get install apache2
  4. Install PHP7
    • sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql
    • If later on you have MySQL PDO driver problems, check this thread out.
  5. Install Java
    • sudo apt-get install default-jdk
  6. Install Python (optional)
    • sudo apt-get install python

Configuration steps:

  1. Create a rubis database
    • mysql -uroot -p
    • CREATE DATABASE rubis;
  2. Import rubis tables and default data to the database
    • cd database
    • mysql -uroot rubis -p < rubis.sql
    • mysql -uroot rubis -p < categories.sql
    • mysql -uroot rubis -p < regions.sql
  3. Modify the database connection configuration
    • nano PHP/DBConnection.php
  4. Copy the PHP folder to the apache location
    • sudo cp -r PHP/ /var/www/html/
  5. Go to this url and check if it works fine.
  6. Configure the rubis client properties (optional, you may manually edit the rubis.properties file)
    • cd Client
    • python generateProperties.py
  7. Initialize the database (learn more)
    • Updated and faster method:
      • cd Client
      • Modify your database connection in the file (lines 24, 26 and 27):
        • nano edu/rice/rubis/client/InitDBSQL.java
      • make client
      • make initDBSQL PARAM="all"
    • Original method:
      • cd Client
      • make client
      • make initDB PARAM="all"

Emulator execution:

  • You may modify the workload_transition_table or other configurations on the rubis.properties file.
  • Other Information regarding the emulator you may found here.
  • To execute the benchmark:
    • make emulator

Extra options:

  • The regions and categories may be altered. Check file database/README for more information.

rubis's People

Contributors

uillianluiz avatar

Watchers

James Cloos avatar Mohamed Wael Alzayat 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.