elixir-ecto / db_connection

Database connection behaviour

Home Page:http://hexdocs.pm/db_connection/DBConnection.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support pgpool

OpakAlex opened this issue · comments

commented

Hi guys, we trying to integrate some elixir / phoenix microservices into our infrastructure, and it seems we have issue with PGPOOL balancer.
We created PR to postgrex for support PGPool, but now we have another issue:

17:26:25.101 [error] Postgrex.Protocol (#PID<0.591.0>) disconnected: ** (DBConnection.ConnectionError) tcp recv: closed
** (DBConnection.ConnectionError) tcp recv: closed
    (db_connection) lib/db_connection.ex:784: DBConnection.transaction/3
    (ecto_sql) lib/ecto/migrator.ex:192: Ecto.Migrator.run_maybe_in_transaction/5
    (elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
    (elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
    (stdlib) proc_lib.erl:247: :proc_lib.init_p_do_apply/3

When i try to run test i have this.

Any idea or any suggestion to support pgpool? Or the best idea back to good erlang epgsql?

epgsql works great with PGPOOL ;)

commented

@josevalim what do you think?

We would appreciate pgpool support but we don't have the bandwidth to implement that ourselves. So if you run into issues, pull requests are welcome.

commented

we too man, we too, don't have the bandwidth to implement that.