Skip to content

Commit

Permalink
intial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
transitorykris authored and travisjeffery committed Jan 24, 2017
1 parent 55577b7 commit 4b82fae
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions quickstart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Quick start

This will start up a local three node cluster.

## Build

```bash
$ go get
$ cd $GOPATH/src/github.com/travisjeffery/jocko/cmd/jocko
$ go build
```

## Start the nodes

```bash
$ ./jocko --debug \
--logdir="/tmp/jocko1" \
--tcpaddr=127.0.0.1:9001 \
--raftdir="/tmp/jocko1/raft" \
--raftaddr=127.0.0.1 \
--raftport=8001 \
--serfport=7946 \
--id=1
$ ./jocko --debug \
--logdir="/tmp/jocko2" \
--tcpaddr=127.0.0.1:9002 \
--raftdir="/tmp/jocko2/raft" \
--raftaddr=127.0.0.1 \
--raftport=8002 \
--serfport=7947 \
--serfmembers=127.0.0.1:7946 \
--id=2
$ ./jocko --debug \
--logdir="/tmp/jocko3" \
--tcpaddr=127.0.0.1:9003 \
--raftdir="/tmp/jocko3/raft" \
--raftaddr=127.0.0.1 \
--raftport=8003 \
--serfport=7948 \
--serfmembers=127.0.0.1:7946 \
--id=3
```

0 comments on commit 4b82fae

Please sign in to comment.