-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add option to use sticky load-balancer #37
Comments
Sounds useful to me. |
@pbauer @mauritsvanrees This would certainly be useful, then we wouldn't need haproxy per sé anymore in our stacks. Sticky sessions are one reason I still use haproxy. Plone should work without, but the edge case is creating new content for logged in users and getting redirected to another zeoclient just afterwards and the new content not being propagated to the other zeoclients. Cool that the directors have grown now and allow changing config, that was one of the things still being discussed when I attended A varnish meeting in Rotterdam 1.5 years ago. |
@fredvd +1 Also I've tried to work with sticky load balancer in Varnish/Plone, but it did not work very well. See here an interesting case example, using sticky load balancer in Varnish https://info.varnish-software.com/blog/proper-sticky-session-load-balancing-varnish I'm experimenting with Varnish5/Plone something similar. |
Last week I instead replaced haproxy with nginx since that seemed to be easier at least for our use-cases and also supports sticky sessions:
The setup then is nginx > varnish > nginx > zeoclients > zeoserver. |
Ever tried to use varnish for sticky sessions? I have this in my bookmarks for a while now, but never tried it: Update: Need to read the other messages .... ok. |
Sticky sessions are no longer a thing today, so I close this one. If you plan to work further on this please reopen and go on. |
Would anyone be interested in added support for the hash director which allows sticky sessions? See https://varnish-cache.org/docs/4.1/reference/vmod_directors.generated.html#object-hash
Varnish 5 also supports the new shard-director. It is similar to the hash director, but can deal with changing configuration or health. https://varnish-cache.org/docs/5.0/reference/vmod_directors.generated.html#shard
The text was updated successfully, but these errors were encountered: