Increase redis pool size and timeout

This commit is contained in:
weidenwiesel
2025-12-24 12:08:50 +01:00
parent d89dbd4b59
commit d5eb239eec
@@ -67,7 +67,7 @@ index 8e0d2c1f..0ab3b1ba 100644
CONFIG = Config.load
HMAC_KEY = CONFIG.hmac_key
+REDIS_DB = Redis::PooledClient.new(unixsocket: CONFIG.redis_socket || nil, url: CONFIG.redis_url || nil, database: CONFIG.redis_db || 0, password: CONFIG.redis_auth || nil)
+REDIS_DB = Redis::PooledClient.new(unixsocket: CONFIG.redis_socket || nil, url: CONFIG.redis_url || nil, database: CONFIG.redis_db || 0, password: CONFIG.redis_auth || nil, pool_size: 30, pool_timeout: 6)
+if REDIS_DB.ping
+ puts "Connected to redis"
+end