GithubHelp home page GithubHelp logo

isabella232 / stream-slam Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redislabs-solution-architects/stream-slam

0.0 0.0 0.0 19 KB

Slam a bunch of messages through redis streams

Go 97.35% Makefile 2.65%

stream-slam's Introduction

stream-slam

This builds binaries to run stream benchmarking similar to memtier_benchmark.

Usage

slam-writer

  • writes messages to either a single or multiple streams
  • allows users to set a payload size
  • will spread the load over several Redis Enterprise proxies
  • allows pipelining of commands

slam-reader

  • reads messages to either a single or multiple streams
  • optionally allows you to remove messages from the stream

$ ./slam-reader -h
Usage: slam-reader [-fhr] [-a value] [-b value] [-c value] [-p value] [-s value] [-t value] [-x value] [parameters ...]
 -a, --password=value
                    Redis Password
 -b, --block=value  ms to sleep on read [100]
 -c, --count=value  Number of messages to read at a time [1]
 -f, --focus        Only write to a single stream
 -h, --help         display help
 -p, --port=value   Redis Port [6379]
 -r, --delete-from-stream
                    delete messages from stream
 -s, --host=value   Redis Host [localhost]
 -t, --threads=value
                    run this many threads [1]
 -x, --stream-prefix=value
                    the prefix of the streams created [stream-slam]

$ ./slam-writer -h
Usage: slam-writer [-fh] [-a value] [-c value] [-l value] [-m value] [-p value] [-q value] [-s value] [-t value] [-x value] [parameters ...]
 -a, --password=value
                   Redis Password
 -c, --message-count=value
                   run this man times [100000]
 -f, --focus       Only write to a single stream
 -h, --help        display help
 -l, --max-length=value
                   the capped length of a queue
 -m, --msg-size=value
                   number of bytes in the stream message field [1]
 -p, --port=value  Redis Port [6379]
 -q, --pipeline=value
                   Pipeline size [1]
 -s, --host=value  Redis Host [localhost]
 -t, --threads=value
                   run this many threads [1]
 -x, --stream-prefix=value
                   the prefix of the streams created [stream-slam]

Example run to benchmark a single shard

./slam-writer -p 10000 -s 127.0.0.1 -c 10000000 -a MYPASS -t 256 -f
./slam-reader  -p 10000 -s 127.0.0.1  -a MYPASS -t 20 -c 1000 -f

Note: when running in focus (single shard mode) you do not need to match the number of threads on the writer and reader.

Example run to benchmark a multiple shards

./slam-writer -p 10000 -s 127.0.0.1 -c 10000000 -a MYPASS -t 256 
./slam-reader  -p 10000 -s 127.0.0.1  -a MYPASS -t 256 -c 1000 

Building

Require go and make

$ make
rm -f slam-writer slam-reader
go build reader/slam-reader.go
go build writer/slam-writer.go

stream-slam's People

Contributors

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