Skip to content
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

Carry PR 446 - Add sticky session support (round two!) #701

Merged
merged 10 commits into from
Sep 30, 2016
Merged

Conversation

emilevauge
Copy link
Member

Carries PR #446 that is inactive.

Fixes #5
Credits go to @owen

Copy link
Contributor

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐸

Owen Marshall and others added 10 commits September 30, 2016 10:56
This change adds sticky session support, by using the new
oxy/rr/StickySession feature.

To use it, set traefik.backend.sticky to true.

This is currently only implemented in the wrr load balancer, and against
the Marathon backend, but lifting it should be very doable.

In the wrr load balancer, a cookie called _TRAEFIK_SERVERNAME will be
set with the backend to use.  If the cookie is altered to an invalid
backend server, or the server is removed from the load balancer, the
next server will be used instead.

Otherwise, the cookie will be checked in Oxy's rr on access and if valid
the connection will be wired through to it.
Signed-off-by: Emile Vauge <emile@vauge.com>
@owen
Copy link
Contributor

owen commented Oct 26, 2016

❤️ thank you for getting this in - every time I went to look at it something else came up...

Hopefully my next contribution will go in more smoothly 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants