-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add support for running multiple replicas #27
Comments
Hi, ¿is vaultwarden possible use multiple replicas to deploy in HA? Thank you @guerzon for this chart. |
¡Hola @fhera! Right now there are issues running multiple copies of Vaultwarden. For example, the data directory ( It is possible to put it in an NFS filesystem, but I'm not sure if that's something you can do or even want. There might be other cloud-native alternatives for this though (?). Personally, I would like to see S3 support so we could point One hack I found was to disable the I opened a discussion here to discuss the topic further. Lester |
i don't think that the chart should take care of concurrent access to All in all, given how Bitwarden works there are not many concurrent accesses, 'cause the client(s) sync the vault when needed, then do not access the server at all, unless users use the WEB UI instead of any client. One need for multiple replicas indeed could be related to HA, having two pods would help for rolling updates or in case of fault of one node, but still Kubernetes would take care of it, rescheduling pods on other nodes and doing, well, rolling upgrades, so there will always be a running pod. |
I think @akelge is right. Helm must support deployment replication and don't take care about what Kubernetes should do with it. |
I've tested this a bit and it seems to work on this configuration: kind: Statefulset (each replica has its own persistent storage, which is not sync'd) without the sticky sessions strange stuff happens as i get logged out immediately after logging in, i assume some sort of in memory data that is not yet shared with other replicas. I don't use attachments and the icon cache does not warrant shared storage as it can be downloaded when needed so if this stays stable it seems decent enough. |
I am using a loadbalancer service and an apache2 as a proxy for Vaultwarden. |
You need to setup some sort of sticky sessions, otherwise it doesn't work properly. |
I added
to my loadbalancer service yml and this seems to do the proper job. |
A PR would be very welcome for this feature. |
Thanks all for the inputs. PR #131 created and merged. |
Requirements:
Proposal:
The text was updated successfully, but these errors were encountered: