Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
riak_core based router
Erlang
Branch: master

stupid sub dirs

latest commit 7f2062029a
Tristan Sloughter authored
Failed to load latest commit information.
apps reformat
.gitignore don't forward if local vnode can handle request
Makefile reformat
README.md
rebar add a load of test data stored in riak bitcask and memory for routing…
rebar.config
relx reformat
relx.config reformat

README.md

kakapo

Build & Run

$ make rel

Start three nodes:

$ PORT=8080 _rel/bin/kakapo -config configs/sys1.config -args_file configs/vm1.args
$ PORT=8081 _rel/bin/kakapo -config configs/sys2.config -args_file configs/vm2.args
$ PORT=8082 _rel/bin/kakapo -config configs/sys3.config -args_file configs/vm3.args

Connect nodes:

(kakapo8081@127.0.0.1)1> riak_core:join('kakapo8080@127.0.0.1').
(kakapo8082@127.0.0.1)1> riak_core:join('kakapo8080@127.0.0.1')

Send request to port 8080, 8081 or 8082:

$ curl -v localhost:<PORT>/get -H "Host: httpbin.org"
Something went wrong with that request. Please try again.