Files
open-webui-custom/backend/open_webui/utils
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-02-08 01:10:18 +07:00
2025-04-23 00:06:44 +09:00
2025-07-12 02:38:52 +04:00
2025-06-18 10:50:49 +04:00
2025-05-10 19:00:01 +04:00
2025-06-05 00:37:31 +04:00
2025-05-28 01:41:49 +04:00
2025-07-22 11:38:47 +04:00
2025-06-10 13:16:44 +04:00
2025-07-07 11:30:27 +04:00
2025-06-16 18:33:45 +04:00
2025-06-10 16:52:37 +04:00
2025-05-28 01:42:42 +04:00
2025-07-18 06:11:53 +08:00
2024-11-30 23:36:30 -08:00
2025-06-03 18:07:29 +04:00
2025-06-24 10:36:33 +04:00
2025-02-16 00:11:18 -08:00