Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/erlangbureau/octopus
- Owner: erlangbureau
- License: mit
- Created: 2015-05-11T22:06:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-05-31T14:42:38.000Z (over 5 years ago)
- Last Synced: 2024-03-27T09:44:47.267Z (10 months ago)
- Language: Erlang
- Homepage:
- Size: 104 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]).
ok3> {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