Monteeq CI commited on
Commit
48c9034
·
1 Parent(s): a010e8e

🚀 Deploy from GitHub @ d1845b57f56a8989dfcc774c599949d84f663a9d

Browse files

Triggered by: Smasduq
Message: refactor: optimize Redis connection settings for resource efficiency

Adjusted Redis connection parameters across multiple components to align with the Redis Cloud free tier limitations. Updated max connections in RedisManager, worker configuration, and connection pool settings to ensure efficient resource usage and prevent connection issues. This change enhances stability and performance of the application.

Files changed (1) hide show
  1. src/main.rs +2 -2
src/main.rs CHANGED
@@ -59,8 +59,8 @@ async fn main() {
59
  };
60
 
61
  let policy = ReconnectPolicy::default();
62
- // Use a connection pool for higher concurrency
63
- let pool = RedisPool::new(config, Some(perf), None, Some(policy), 10).unwrap();
64
 
65
  println!("[DEBUG] Initiating Redis connection to {}...", redis_url);
66
  pool.connect();
 
59
  };
60
 
61
  let policy = ReconnectPolicy::default();
62
+ // Small pool — Redis Cloud free tier caps ~30 clients shared with backend/Celery
63
+ let pool = RedisPool::new(config, Some(perf), None, Some(policy), 3).unwrap();
64
 
65
  println!("[DEBUG] Initiating Redis connection to {}...", redis_url);
66
  pool.connect();