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

Feature Request: mirror traffic to two sets of endpoints #2989

Closed
kenyee opened this issue Mar 9, 2018 · 8 comments
Closed

Feature Request: mirror traffic to two sets of endpoints #2989

kenyee opened this issue Mar 9, 2018 · 8 comments
Labels
kind/enhancement a new or improved feature. priority/P2 need to be fixed in the future status/5-frozen-due-to-age
Milestone

Comments

@kenyee
Copy link

kenyee commented Mar 9, 2018

Do you want to request a feature or report a bug?

Feature

What did you expect to see?

Please add a feature to mirror/shadow incoming traffic to two sets of endpoints and be able to configure which amount goes where...e.g., something like this:

https://dzone.com/articles/traffic-shadowing-with-istio-reducing-the-risk-of

@traefiker

This comment has been minimized.

@aantono
Copy link
Contributor

aantono commented Mar 15, 2018

@kenyee I’ve actually started working on a PR, but given time constraints not sure I’ll finish before the March 20th cutoff for the 1.6 release, so most likely will be added in 1.7. :(

@kenyee
Copy link
Author

kenyee commented Mar 15, 2018

Cool...thanks @aantono :-)

@jnovack
Copy link

jnovack commented Jul 31, 2018

If we build on the backend system we already have, I suppose it might look like something like this:

...
    --label "traefik.port=80" \
    --label "traefik.frontend.rule=Host:site1.example.org" \
    --label "traefik.enable=true" \
    --label "traefik.backend=backend-nextversion" \
    --label "traefik.mirror.enable=true" \
    --label "traefik.mirror.percentage=10" \
...

In this manner, there's ALREADY a frontend for site1.example.org, it already exists, it's already working.

  • traefik.mirror.enable suggests that Traefik will ignore/drop any responses generated from the mirror.
  • traefik.mirror.percentage is the amount of traffic to mirror, default 100/all.

Attempting to bring up a traefik.mirror.enable on a not-yet-defined traefik.frontend.rule SHOULD NOT ERROR. We may wish to only mirror a subdirectory of a site, or the mirror container may have started first. Thus we might want to at least WARN.

@Lawouach
Copy link

Hello folks,

Just a friendly ping to understand where this feature is standing. Not urgent for me but it would be a nice to have in a near future (I'd rather not switch to something else if I can help it :)).

Thanks for all the great product!

@szareiangm
Copy link

Hello Traefik team! We really need this feature. Is there a chance that this feature would be in the future releases?

@olsw
Copy link

olsw commented Mar 22, 2019

Is there any further progress on this? We currently use traefik but need to find a way to shadowing or similar and are starting to look at alternatives. A timeframe would be very useful if this is a WIP. Thank you!

@juliens juliens mentioned this issue Aug 26, 2019
2 tasks
@traefiker traefiker added this to the 2.0 milestone Aug 26, 2019
@traefiker
Copy link
Contributor

Closed by #5251.

@traefik traefik locked and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement a new or improved feature. priority/P2 need to be fixed in the future status/5-frozen-due-to-age
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants