Octopus is a small and flexible pool manager written in Erlang.
%% Start pool
1> Opts = [
{host, "jamdb-sybase-dev.erlangbureau.dp.ua"},
{port, 5000},
{user, "jamdbtest"},
{password, "jamdbtest"},
{database, "jamdbtest"}
].
2> octopus:start_pool(test_pool, [{pool_size, 3}, {worker, jamdb_sybase}], [Opts]).
ok
3> {ok, Pid} = octopus:worker_lockout(test_pool).
{ok,<0.120.0>}
%% Execute task
4> jamdb_sybase:sql_query(Pid, "select 1 as one, 2 as two, 3 as three").
{ok,[{result_set,[<<"one">>,<<"two">>,<<"three">>],
[],
[[1,2,3]]}]}
5> octopus:worker_lockin(test_pool).
ok
- poolboy - A hunky Erlang worker pool factory
- pooler - An OTP Process Pool Application
- episcina - A simple non intrusive resource pool for connections
- cuesport - Simple Erlang pool of workers
- worker_pool - Erlang worker pool