--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/15cdef64-4502-4ba0-b0df-5e0234740bd2n%40googlegroups.com.
Thank you. I checked the linked PR - makes complete sense to have a non-idle but total Lifetime Ms, and follow it up with a way to replenish the evicted connections.Couple of questions:1) Will this be backported to 4.x?
2) The current "Eviction" mechanism can evict connections that are IN_USE. What is the behavior in this case?Does the socketConnection.close() get queued up behind pending requests on the connection, so any existing requests before CLOSE won't see any error?Or does this mean that all pending requests (before/after CLOSE) will see an error the moment an IN_USE connection is evicted underneath?
--On Friday, April 14, 2023 at 5:37:18 AM UTC-7 Thomas SEGISMONT wrote:Hi,Somebody in the community is working on it: https://github.com/eclipse-vertx/vertx-sql-client/pull/1298#issuecomment-1491000661RegardsLe ven. 14 avr. 2023 à 09:37, Chandra R. <mahe...@gmail.com> a écrit :Hi, I'm using the vertx MySql client for a high traffic application, and I wanted to know if there's any way to ensure a minimum number of Idle connections in the Pool.(e.g. HikariCP has this option).This is especially useful when I use the idleTimeout option with the pool. Currently, when idleTimeout expires, connections are closed by Vertx but no new connections are created proactively till a call is made to getConnection() when a request arrives to my application.In my scenario, acquiring a new connection is expensive (100+ms), so it helps if the connection pool is warmed with "minIdle" connections.Another scenario where this is useful is in steady state, let's say I use 8 connections. Often, there could be a burst of traffic that requires creating new connections. If the peak traffic is predictable, having a "warm" connection pool will allow the application to absorb at least some of the burst by not spending time in creating new connections.One way I think this can work is to "optionally" schedule a new connection creation internally whenever the closeHandler in the Pool is invoked, up to minIdle connections. Internally, I believe this will call pool.acquire() with a flag to create a new connection.Does this sound reasonable?--
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/15cdef64-4502-4ba0-b0df-5e0234740bd2n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "vert.x" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vertx+un...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/99eaba58-6c4f-44ad-b7bd-def59373845dn%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/660d64ed-7392-41d2-b7a2-6eea1c2c6293n%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/vertx/eec3793f-02e0-4b8c-a210-143b3350fdf1n%40googlegroups.com.