Skip to content

DistributedDesigns/worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Worker

Build Status

Executes transactions for users. Stores the user account information. It's got a lot more going on, too.

Installing

git clone https://github.com/DistributedDesigns/worker.git
cd worker

.scripts/install

# Assumes there's a RMQ and Redis instance running in docker
# Run with one of
$GOPATH/bin/worker -n 1
go run *.go -n 1

Runtime flags of interest

  • -l, --log-level Sets the... log level.
  • -n, --worker-num Mandatory ID for the worker. Yes, each worker should have a unique ID.
  • -a, --no-audit Don't send messages to the audit server.

Hot tips!

Bypass the workload generator

cat workload.txt | grep QUOTE | head -n 10 | xargs -d '\n' redis-cli -h localhost -p 44431 RPUSH worker:1:pendingtx
  • MacOS (BSD) xargs doesn't have -d option. Install findutils from Homebrew then substitute gxargs