riak_core based router
Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apps
.gitignore
Makefile
README.md
rebar
rebar.config
relx
relx.config

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"