-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Openshift/Kubernetes deployment: 401 error with lb running roundrobin on attachments #5120
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
Comments
4.0.9 ? Do you mean 7.0.9 ? |
Does fork mode help? |
What full-stack web frameworks work correctly with roundrobin at Openshift/Kubernetes? Or would it be better to move attachments from MongoDB GridFS to Minio, and use Minio NPM driver to show attachments from Minio? There is some progress with Minio, but it is not fully complete yet, some beginnings of migration tools are at https://github.com/wekan/minio-metadata |
I'm not sure how I should use this. But I will tell you how we use it.
Presumably any that can share its session information with the other instances. That's what big online shops and the like do.
Minio is currently no option. So at least the only way is GridFS or filestorage, but prefered here is GridFS at the moment. |
Is it possible with Meteor, to not use sticky sessions, and instead share sessions with all instances at database? |
No @xet7, today Meteor doesn't store the data of a session in the db, everything is kept in memory in the server. That is why you should always connect to the same container in order to keep state without doing a lot of extra work all the time. |
That is really a pity. As soon as a container is overloaded because too many are routed to the same container, there are only 504 errors and timeouts. This is at least the current state with ~ 30 users all accessing at the same time. And HA can't be built by that either. What are the plans for this in the future? |
Can you test does round robin work at https://kanboard.org ? If I would add WeKan features to Kanboard? |
Please list all software names that works well with HA, so that I could look, is there something that would help with future versions of WeKan. |
I think, that in theory, I could make saving sessions to database working this way:
|
I will also look what frameworks have some HA related features. |
This would help, but not fix wekan#5120. It's now supports the running of multiple pods for scaling, without the issue that the session will not known on the backend pod.
Uh oh!
There was an error while loading. Please reload this page.
Issue
I found out, that the loadbalancing is not a good idea, beacause you need to use a sticky session for all request.
How are the Sessions managed? Is there a way to distribute it between all nodes/pods evenly, and I miss the settings?
Server Setup Information
Problem description
As long as I use roundrobin or random distribution to the backends, I get 401 errors. But once i change it to be sticky it works out of the box without 401 errors.
Reproduction Steps
Deploy it to the openshift/kubernetes and create a service with loadbalancer with roundrobin/random. the requests to view attachments/images will fail with 401, change it to a sticky mode and you will see them all.
Logs
The text was updated successfully, but these errors were encountered: