You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "chenwenjun-github (via GitHub)" <gi...@apache.org> on 2023/04/05 10:47:41 UTC

[GitHub] [apisix] chenwenjun-github opened a new issue, #9245: help request: proxy_mirror插件支不支持镜像grpc流量

chenwenjun-github opened a new issue, #9245:
URL: https://github.com/apache/apisix/issues/9245

   ### Description
   
   我使用proxy_mirror插件镜像http流量测试OK,但是grpc流量不生效,apisix日志中也没有报错
   
   ![image](https://user-images.githubusercontent.com/46237364/230058841-2f2a1fe6-143b-46e2-a8b7-e919d65ad159.png)
   ![image](https://user-images.githubusercontent.com/46237364/230058900-7a829f06-b143-462a-b316-53b893f364c8.png)
   
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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.apache.org

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


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

Posted by "chenwenjun-github (via GitHub)" <gi...@apache.org>.
chenwenjun-github commented on issue #9245:
URL: https://github.com/apache/apisix/issues/9245#issuecomment-1500152805

   ![image](https://user-images.githubusercontent.com/46237364/230592071-7ca14b84-df48-493e-8256-86ededb0833b.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


[GitHub] [apisix] monkeyDluffy6017 closed issue #9245: help request: Does the proxy_mirror plugin support mirroring grpc traffic?

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 closed issue #9245: help request: Does the proxy_mirror plugin support mirroring grpc traffic?
URL: https://github.com/apache/apisix/issues/9245


-- 
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


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

Posted by "Sn0rt (via GitHub)" <gi...@apache.org>.
Sn0rt commented on issue #9245:
URL: https://github.com/apache/apisix/issues/9245#issuecomment-1504391939

   /assign


-- 
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


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

Posted by "monkeyDluffy6017 (via GitHub)" <gi...@apache.org>.
monkeyDluffy6017 commented on issue #9245:
URL: https://github.com/apache/apisix/issues/9245#issuecomment-1557355428

   consider resolved


-- 
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


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

Posted by "kingluo (via GitHub)" <gi...@apache.org>.
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