Skip to content

Instantly share code, notes, and snippets.

@smetj
Created April 18, 2016 22:48
Show Gist options
  • Save smetj/64266af55260056003c9e278139fe50c to your computer and use it in GitHub Desktop.
Save smetj/64266af55260056003c9e278139fe50c to your computer and use it in GitHub Desktop.
Hammering Graphite
---
modules:
input:
module: wishbone.input.hammer
arguments:
batch_size: 100
set_size: 100
graphite:
module: wishbone.encode.graphite
buffer:
module: wishbone.flow.tippingbucket
arguments:
bucket_size: 100
roundrobin:
module: wishbone.flow.roundrobin
output_1:
module: wishbone.output.tcp
arguments:
host: graphite-relay-server-1
port: 2013
output_2:
module: wishbone.output.tcp
arguments:
host: graphite-relay-server-2
port: 2013
routingtable:
- input.outbox -> graphite.inbox
- graphite.outbox -> buffer.inbox
- buffer.outbox -> roundrobin.inbox
- roundrobin.one -> output_1.inbox
- roundrobin.two -> output_2.inbox
...
@smetj
Copy link
Author

smetj commented Apr 18, 2016

install wishbone and wishbone.input.hammer:

$ pip install wishbone wishbone-input-hammer wishbone-output-tcp

Bootstrap the server:

$ wishbone debug --config bootstrap.yaml

More parallel instances:

$ wishbone debug --config bootstrap.yaml --instances 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment