Skip to content

Distributed database performance measurement for Apache Cassandra

Notifications You must be signed in to change notification settings

hiepsieunhan/CS4224-Cassandra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CS4224 Cassandra Project - Team 11

Team members

  • Nguyen Hung Tam A0112059N
  • Bui Do Hiep A0126502U
  • Adrian Bratteby A0175596L

Setup

  1. Download Cassandra into /temp folder
$ curl -o apache-cassandra-3.11.0-bin.tar.gz https://www-eu.apache.org/dist/cassandra/3.11.0/apache-cassandra-3.11.0-bin.tar.gz
  1. Extract the file
$ tar -xvf apache-cassandra-3.11.0-bin.tar.gz
  1. Copy config For each node, copy corresponding cassandra.yml file into the /temp/apache-cassandra-3.11.0/conf/ folder
  2. Run cassandra
$ /temp/apache-cassandra-3.11.0/bin/cassandra

Remember to start the seed nodes before other nodes.

Install python driver

You need to have python 2 and pip to install cassandra python driver. Because you might not have sudo access, you can take a look at this guide to install pip without sudo Install cassandra python driver by running

$ pip install --user cassandra-driver

Running Experiment

  1. Load data
$ bash load_data.sh <data-files-absolute-path>
  1. Run transaction On node node_id with node_id from 1 to 5, we run the following command to start the clients
$ bash main.sh <node_id> <number_clients> <consistency_level> 
  1. Summary
$ bash summary.sh <number_clients> <consistency_level>

Logging

Before running any experient, remember to create the log foler in the root project folder

$ mkdir log

After finishing any experiment, you can take a look at all the log file in the log folder

About

Distributed database performance measurement for Apache Cassandra

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published