Files
open-webui/backend/open_webui
Sihyeon Jang f59da361f1 feat: Re-use Redis connection pools via local cache to prevent transient exhaustion
Every call to get_redis_connection() spawned a new pool, so workers slowly accumulated thousands of open sockets. Even though connections were eventually released, skewed release timing still pushed us past Redis’ max-clients and the cluster egress IP cap.

A module-level _CONNECTION_CACHE now memoises pools by (redis_url, sentinel_hosts, async_mode, decode_responses).

Result: flat connection count, no more IP or FD exhaustion. Public API unchanged.

Signed-off-by: Sihyeon Jang <sihyeon.jang@navercorp.com>
2025-07-24 18:44:42 +09:00
..
2025-06-21 19:12:43 +04:00
2025-07-13 00:51:58 +04:00
2025-07-20 15:00:24 +04:00
2025-07-23 08:49:00 +02:00
2025-06-16 18:27:18 +04:00
2025-07-16 15:23:18 +09:00
2025-04-15 09:55:35 +02:00
2025-07-21 18:06:17 -06:00
2025-06-03 18:07:29 +04:00
2025-07-16 15:23:18 +09:00
2025-07-22 11:38:47 +04:00