You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We came across a scenario in our app where we needed to build r2d2::Pool with custom configuration settings, specifically setting min_idle and idle_timeout. Currently we are using memcache::Client::with_pool_size and there seem to be no way to configure settings for r2d2::Pool.
We found memcache::Client::with_pool where we can pass custom connection manager pool but it does not take an array so I can only pass a single pool for a single memcache node.
It would be nice to either allow passing configuration for r2d2 via with_pool_size function or add a new function that will take a vector of connection manager pool as shown below:
To workaround this limitation, we have patched the crate in our repo and applying some configuration to r2d2 in with_pool_size function. It would be great if this is available in the crate itself.
The text was updated successfully, but these errors were encountered:
goyal-anshul
changed the title
Allow configuration of r2d2 configuration pool
Allow configuration of r2d2 connection pool
Aug 13, 2024
We came across a scenario in our app where we needed to build
r2d2::Pool
with custom configuration settings, specifically settingmin_idle
andidle_timeout
. Currently we are using memcache::Client::with_pool_size and there seem to be no way to configure settings forr2d2::Pool
.We found memcache::Client::with_pool where we can pass custom connection manager pool but it does not take an array so I can only pass a single pool for a single memcache node.
It would be nice to either allow passing configuration for r2d2 via
with_pool_size
function or add a new function that will take a vector of connection manager pool as shown below:To workaround this limitation, we have patched the crate in our repo and applying some configuration to r2d2 in
with_pool_size
function. It would be great if this is available in the crate itself.The text was updated successfully, but these errors were encountered: