kuanysh-nabiyev

kuanysh-nabiyev

How to disable ecto pool?

Because of many configuration settings on ecto like timeout, pool_size, queue_target, queue_interval and etc, I want to disable it. Instead of ecto pool I want to use only pgbouncer.

Ecto pool settings is like magic to right now, because when I have set timeout was 15 seconds I got many pool timeout errors. And I when I set to 120 seconds I also got many pool timeout errors sometimes (20-500 errors in one minute and then worked correctly).
Only after changing to 65 seconds application started to works without any pool timeout errors.
Everything is ok right now, but I am afraid that the problem can be returned.

My ecto database configuration:

hostname: “10.128.0.3”,
pool_size: 200,
queue_target: 5_000,
queue_interval: 20_000,
prepare: :unnamed,
timeout: 65_000

Error:
(DBConnection.ConnectionError) tcp recv: closed (the connection was closed by the pool, possibly due to a timeout or because the pool has been terminated)

First Post!

al2o3cr

al2o3cr

For what it’s worth, this error frequently happens because the database server has shut down the connection from its end. Adjusting the configuration of the pool isn’t going to directly affect that.

Most Liked

LostKobrakai

LostKobrakai

Yeah you’d want to figure out why the db server was unhappy with you connecting. Running into timeouts was likely just a sideeffect of your server refusing to cooperate.

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 131117 1222
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54260 488
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement