round_robin
This commit is contained in:
parent
05cdda2cfd
commit
bc21b4adaf
|
@ -7,7 +7,7 @@ ecpool tries to avoid the erlang application crash when the server or database g
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
A pool worker to manage and monitor the client to server or database:
|
A pool worker to manage/monitor the client to server or database:
|
||||||
|
|
||||||
```
|
```
|
||||||
PoolWorker -> Client -> DB
|
PoolWorker -> Client -> DB
|
||||||
|
@ -33,10 +33,11 @@ For example:
|
||||||
```
|
```
|
||||||
PgOpts = [%% Pool Size
|
PgOpts = [%% Pool Size
|
||||||
{pool_size, 10},
|
{pool_size, 10},
|
||||||
%% Pool Type: random | hash | round_robin
|
%% Pool Type: round_robin | random | hash
|
||||||
{pool_type, random},
|
{pool_type, round_robin},
|
||||||
%% Auto reconnect
|
%% Auto reconnect
|
||||||
{auto_reconnect, 3},
|
{auto_reconnect, 3},
|
||||||
|
|
||||||
%% epgsql opts
|
%% epgsql opts
|
||||||
{host, "localhost"},
|
{host, "localhost"},
|
||||||
{port, 5432},
|
{port, 5432},
|
||||||
|
|
Loading…
Reference in New Issue