Spaces:
Sleeping
Sleeping
Monteeq CI commited on
Commit ·
48c9034
1
Parent(s): a010e8e
🚀 Deploy from GitHub @ d1845b57f56a8989dfcc774c599949d84f663a9d
Browse filesTriggered 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.
- src/main.rs +2 -2
src/main.rs
CHANGED
|
@@ -59,8 +59,8 @@ async fn main() {
|
|
| 59 |
};
|
| 60 |
|
| 61 |
let policy = ReconnectPolicy::default();
|
| 62 |
-
//
|
| 63 |
-
let pool = RedisPool::new(config, Some(perf), None, Some(policy),
|
| 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();
|