Giter Club home page Giter Club logo

ruby-couchbase-loadgen's Introduction

#Using the Ruby based load test is easy!#

Pre-Requisite: Install Couchbase Server 2.5 Enterprise on your machine, then..

On Mac: Make sure you have XCode, Command Line Tools installed/up to date, and Make sure you have Homebrew installed and up to date ($ brew update;brew upgrade;brew doctor).

On Windows: Follow instructions on the couchbase communities site for the c library that matches your configuration.

##Load Testing##

$ ruby load.rb
  • You can open multiple terminals and do this since each ruby run is single threaded process
  • There are only so many operations a single thread/process can generate, so multiple simultaneous runs are needed to generate higher loads, I do one per core max

Clear out the default bucket between runs

$ ruby flush.rb
  • There are a 5 phases of load testing with different mixes of Read/Write.
  • The load.rb file is commented so you can see what is happening at each phase and the configurable parameters.

##Output##

Phase 1 --- Read   0%, Write 100% --- Create 100,000 items...
Phase 2 --- Read  33%, Write  66% --- Create 100,000 items, Get & Replace 100,000 items...
Phase 3 --- Read  33%, Write  66% --- Create 100,000 items, Get 100,000 items, Get & Replace 100,000 items...
Phase 4 --- Read  60%, Write  40% --- Get 300,000 items, Get & Replace 200,000 items...
Phase 5 --- Read 100%, Write   0% --- Get 500,000 items...

ruby-couchbase-loadgen's People

Contributors

scalabl3 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.