-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Allow Requests to be Mirrored to different backends #4379
Conversation
Hi @diazjf. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
nginx.ingress.kubernetes.io/mirror-request-body: "off" | ||
``` | ||
|
||
For more information on the mirror module see https://nginx.org/en/docs/http/ngx_http_mirror_module.html |
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.
Please add a note mentioning the side effects of using this feature against a slow backend
https://alex.dzyoba.com/blog/nginx-mirror/
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.
👍
@diazjf what's the behavior if the ingress rule contains multiple paths? |
/retest |
04b9101
to
dca2ecd
Compare
Codecov Report
@@ Coverage Diff @@
## master #4379 +/- ##
==========================================
+ Coverage 58.63% 61.13% +2.49%
==========================================
Files 88 89 +1
Lines 6569 7150 +581
==========================================
+ Hits 3852 4371 +519
- Misses 2288 2331 +43
- Partials 429 448 +19
Continue to review full report at Codecov.
|
2c2f6c5
to
1792a62
Compare
Add a feature which allows traffic to be mirrored to additional backends. This is useful for testing how requests will behave on different "test" backends. See https://nginx.org/en/docs/http/ngx_http_mirror_module.html
/retest |
^ @aledbf ready to review 👍 |
/approve |
@diazjf my only doubt with this feature is why not just use the canary annotations? |
Canary does provide some of the same benefits in an easy to use way. Great post https://www.elvinefendi.com/2018/11/25/canary-deployment-with-ingress-nginx.html by @ElvinEfendi The benefits I see for mirror are as follows:
^ @aledbf |
Yes, is not the same thing. |
/approve |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, diazjf, ElvinEfendi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
1 similar comment
/retest |
Add a feature which allows traffic to be mirrored to additional backends. This is useful for testing how requests will behave on different "test" backends.
See https://nginx.org/en/docs/http/ngx_http_mirror_module.html