Open gillbates opened 1 month ago
I'll take a look
something wrong with the set shared
removing it makes it work as expected
something wrong with the set shared
removing it makes it work as expected
confirmed. the bug is gone after removing setShared(true) ... wierd ...
Questions
recently we have meet very bad performance for vertx postgres connection. It sometimes took average 3-5 seconds to acquire the connection in our production environment when all connections are used and switched very frequently.
As its hard to extract the code, we've implement following reproducer which will show inconsistent behaviour.
Version
postgres: postgres:17.0-alpine3.20 vertx: 4.5.10 jdk:
Do you have a reproducer?
In order to simulate concurrently getConnection when full, we have configured max size 1 with 2 concurrent access In the following example ...
the code above will have following two kinds of output:
And the 0 closed the connection in 4ms. So that the other connection could be acquired. I think this might be the case that it took sometimes 3-5s in our production after all connections are occupied. Can we speed up this?
Extra
macos, m3 max