-
Notifications
You must be signed in to change notification settings - Fork 690
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
dag: add support for traffic mirroring #1557
Conversation
97008ff
to
90fe044
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to make sure to update the calculation for weighted clusters (https://github.com/projectcontour/contour/blob/master/internal/envoy/route.go#L161) so that any mirrored cluster isn't taken into account in the event there are multiple upstreams.
What happens if a user selects multiple "mirror" upstreams? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with one nit.
} | ||
rh.OnAdd(p1) | ||
|
||
// check timeout policy with malformed response timeout is propogated as infinity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Comment got left behind maybe?
excellent point. I'll add a test and some status output tests. |
This should be fine because the set of clusters we pass to weighted clusters is reduced by one -- the on which is assigned to the mirror. The weightings will work out -- hopefully/ |
Fixes projectcontour#459 Add support for per route traffic mirroring. Signed-off-by: Dave Cheney <[email protected]>
90fe044
to
d9dc0c2
Compare
Fixes #459
Add support for per route traffic mirroring. Only available in HTTPProxy
Signed-off-by: Dave Cheney [email protected]