Simple Riak Erlang client process pool
MIT License
(Really) simple Erlang Riak client process pool based on riak-erlang-client and poolboy.
make all
[
{riakc, [
{riak_address, "127.0.0.1"},
{riak_port, 8087},
{riak_options, []} % riakc_pb_socket options
{pool_size, 10},
{pool_max_overflow, 20},
{pool_worker_timeout, 5000}
]}
]
application:start(riakc_pool)
riakcp:exec(Function, Args)
, where Function
is riakc_pb_socket
moduleArgs
is a list of its parameters excluding Pid
.