open-webui/backend
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
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
open_webui feat: Re-use Redis connection pools via local cache to prevent transient exhaustion 2025-07-24 18:44:42 +09:00
.dockerignore fix: litellm config issue 2024-02-24 22:35:11 -08:00
.gitignore refac 2024-09-06 04:59:20 +02:00
dev.sh feat: S3 vector support tested 2025-07-22 21:36:35 -06:00
requirements.txt Fix: Add posthog lib to requirement for avoid opentelemetry issue 2025-07-17 10:15:18 +02:00
start.sh feat: add support for WEBUI_SECRET_KEY_FILE 2025-06-07 23:14:21 +08:00
start_windows.bat fix: windows start script 2025-06-27 15:46:38 +04:00