From 035680a203ea2f11c626d8f3cf28677be185fd45 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Fri, 8 Jul 2022 23:11:22 +0000 Subject: [PATCH] big redis pool --- web3-proxy/src/app.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web3-proxy/src/app.rs b/web3-proxy/src/app.rs index f2a77fca..978a9f39 100644 --- a/web3-proxy/src/app.rs +++ b/web3-proxy/src/app.rs @@ -152,11 +152,11 @@ impl Web3ProxyApp { let manager = RedisConnectionManager::new(redis_address)?; - // TODO: what min? + // TODO: min_idle? + // TODO: set max_size based on max expected concurrent connections? set based on num_workers? let builder = bb8::Pool::builder() .error_sink(bb8_helpers::RedisErrorSink.boxed_clone()) - .max_size(num_workers as u32) - .min_idle(Some(1)); + .max_size(1024); let pool = builder.build(manager).await?;