You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "kingluo (via GitHub)" <gi...@apache.org> on 2023/04/08 15:08:25 UTC

[GitHub] [apisix] kingluo commented on issue #9245: help request: Does the proxy_mirror plugin support mirroring grpc traffic?

kingluo commented on issue #9245:
URL: https://github.com/apache/apisix/issues/9245#issuecomment-1500910173

   @chenwenjun-github
   APISIX does not support proxy-mirror for grpc yet, although nginx does.
   
   And it's not an easy job to make it work. I just give some points:
   1. current proxy_mirror location is filled with proxy_pass directives, i.e. http1 only
   2. APISIX enables mirror dynamically, set a flag in the request ctx, but for grpc upstream, it invokes `ngx.exec`, which clears the ctx, so mirror is disabled
   3. we need to set up correct parameters like URL before sending it out to the grpc mirror target, otherwise, it will be an error due to the wrong URL `/proxy_mirror`:
   ![1680966318273](https://user-images.githubusercontent.com/4401042/230728583-d089a6d0-8c90-4e44-af39-d26b985b8410.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org