Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (15 sloc) 0.57 kB
d036073 BossDB is now its own project
Evan Miller authored
1 -module(boss_db_sup).
2 -author('emmiller@gmail.com').
3
4 -behaviour(supervisor).
5
6 -export([start_link/0, start_link/1]).
7
8 -export([init/1]).
9
10 start_link() ->
11 start_link([]).
12
13 start_link(StartArgs) ->
14 supervisor:start_link({local, ?MODULE}, ?MODULE, StartArgs).
15
16 init(StartArgs) ->
4893e2f Fix BossDB's poolboy
Evan Miller authored
17 Args = [{name, {local, boss_db_pool}},
fd2df1d Manage connections with Poolboy
Evan Miller authored
18 {worker_module, boss_db_controller},
19 {size, 5}, {max_overflow, 10}|StartArgs],
20 PoolSpec = {db_controller, {poolboy, start_link, [Args]}, permanent, 2000, worker, [poolboy]},
21 {ok, {{one_for_one, 10, 10}, [PoolSpec]}}.
Something went wrong with that request. Please try again.