mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #5569] feature request: save SESSION_POOL, USER_POOL, USAGE_POOL in redis when is redis #14038
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @itaybar on GitHub (Sep 21, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/5569
Originally assigned to: @tjbck on GitHub.
since redis socket io manager just added, I think it would be great to move the stats pools to be managed in redis as well, this way this statistics will be aggregated along all openweb ui instaces (for k8s envs)
I recommend to use redis-dict 2.5.0 https://pypi.org/project/redis-dict/ since this will be 2 line of code addition for what there is now
and the rest of the code is the same since RedisDict can be accessed like a regular dict
@itaybar commented on GitHub (Sep 21, 2024):
and there is also option to add ttl for the data, since in local dict when you restart the application the data will be deleted as well and when it be in the redis it will not be deleted, and there is need to prevent data duplication
@tjbck commented on GitHub (Sep 22, 2024):
Added to dev, testing wanted here!