All Projects → erlangbureau → octopus

erlangbureau / octopus

Licence: MIT License
Small and flexible pool manager written in Erlang

Programming Languages

erlang
1774 projects
Makefile
30231 projects

Octopus

Octopus is a small and flexible pool manager written in Erlang.

Getting Started

%% 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

Alternatives

  • 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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].