Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/erlangbureau/octopus

Small and flexible pool manager written in Erlang
https://github.com/erlangbureau/octopus

Last synced: about 2 months ago
JSON representation

Small and flexible pool manager written in Erlang

Awesome Lists containing this project

README

        

Octopus
============

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

Getting Started
===============

```erl

%% 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](https://github.com/devinus/poolboy) - A hunky Erlang worker pool factory
* [pooler](https://github.com/seth/pooler) - An OTP Process Pool Application
* [episcina](https://github.com/erlware/episcina) - A simple non intrusive resource pool for connections
* [cuesport](https://github.com/goj/cuesport) - Simple Erlang pool of workers
* [worker_pool](https://github.com/inaka/worker_pool) - Erlang worker pool