Giter VIP home page Giter VIP logo

cockroachdb-ycsb's Introduction

Benchmarking Read Scalability in Raft

This repo contains all the scripts to run YCSB benchmarks on cockroachDB cluster.

  • common.sh, run-benchmark.sh and master.sh are the scripts responsible to setting up machines and running benchamarks.
  • ec2.py is a helper script to start/stop ec2 instances.
  • lhfallback-prob.go is a helper script to generate x for lease-holder reads ratio.
  • plot.py and extract-results.py are data extraction and plot generation scripts.

Custom cockroachDB env vars

These are set by common.sh when using the scripts.

  • COCKROACH_MAX_TXN_RETRIES int [0, INT_MAX)
    • Workaround the zipfian bug to abort txns after max retries.
  • COCKROACH_READ_TYPE int {0, 1, 2, 3}
    • 0: Default lease-holder reads
    • 1: Local reads
    • 2: Quorum reads
    • 3: Strongly consistent quorum reads
  • COCKROACH_LHFALLBACK_PROB float [0.0, 1.0]
    • Ratio of read requests which should use lease-holder reads while using quorum reads.

Setup machines

Cockroach Server

  1. Install nmon
  2. Copy over cockroach binary

YCSB Client

  1. Install python, java and nmon
  2. Copy over contents from ycsb-client-files

Master machine

  1. Copy over common.sh, master.sh and run-benchmark.sh
  2. (Optional) Copy over ec2.py and lhfallback-prob.go

Steps to run

  1. Update vars in common.sh
  2. Execute master.sh

cockroachdb-ycsb's People

Contributors

gitanuj avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

olesya13

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.