mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 06:02:06 -05:00
Replicas do not update certain settings until pod restart - split brain issues #3948
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 @tkg61 on GitHub (Feb 18, 2025).
Bug Report
When having more than 1 instance of openwebui certain settings will not sync between replicas when logging in with the same user until the pod is restarted.
i haven't gone through every single setting to see which are dynamically refreshed and which ones aren't but here are a few that i think should be working but do not:
The bigger issue in my opinion, rather than a small inconvenience, is that this creates a possible split brain issue because which setting is used depends on which replica pod was used to save settings last and then which pods get restarted to then load the last saved state.
This prevents multi-admins from maintaining the system since you don't know who is making what change on which replica...
The bandaid for this is for admins to restart every pod after every backend change which is not-preferred since you don't want to accidently save settings on the wrong replica and turn off a feature that others were using because it hadn't been restarted since the last time something was changed.
The other bandaid is to only use env settings to manage the OWUI instance but that isn't always feasible/preferred.
There are things that will obviously sync just fine dynamically (web page refresh shows update) e.g.:
Installation Method
K8s, latest helm chart
Environment
This has been happening even since 0.4.8
Confirmation:
Expected Behavior:
When settings are saved all replicas will update any setting on refresh
Actual Behavior:
Pods will not pick up updates until the pod is restarted which can lead to split brain issues.
Description
Bug Summary:
Certain settings are not synced between replicas
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
Channel setting:
after the pod on the left restarts, it pulls the channel = off setting since the pod on the right was last used to update the config. if you wanted channels to be on, you should have restarted the pods first to apply the setting everywhere
@tjbck commented on GitHub (Feb 19, 2025):
#10365