You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "WesleyWu (via GitHub)" <gi...@apache.org> on 2023/06/21 14:48:55 UTC

[GitHub] [dubbo-go] WesleyWu opened a new issue, #2342: Support direct connecting to endpoint with xds protocol

WesleyWu opened a new issue, #2342:
URL: https://github.com/apache/dubbo-go/issues/2342

   <!-- Please only use this template for submitting enhancement requests -->
   
   **What would you like to be added**:
   支持像 grpc 官方示例中的直连 xds 协议的 endpoint
   https://github.com/grpc/grpc-go/blob/master/examples/features/xds/client/main.go
   
   例如这样的配置文件:
   ```
   dubbo:
     consumer:
       references:
         GreeterClientImpl:
           url: xds:///dubbogo-helloworld:20000
           protocol: tri
   ```
   
   **Why is this needed**:
   我在GKE中部署了 dubbo-go 的 provider 服务端,并且使用了GCP Traffic Director来提供 proxyless 的 service mesh。
   实测,通过 python 的 grpc 客户端,以及 [grpc-go官方示例](https://github.com/grpc/grpc-go/blob/master/examples/features/xds/client/main.go) ,都可以正常通过
   `xds:///dubbogo-helloworld:20000` 这样的 endpoint 调用 provider 的 rpc 方法。
   
   但不知道怎么配置dubbo-go 的客户端这么做。
   
   注意:使用了GCP Traffic Director做proxyless服务网格,就不再需要上报服务到注册中心,客户端也不需要通过注册中心来获取具体的服务端点,而是通过支持xds协议的 `xds:///dubbogo-helloworld:20000` 来获取服务端点(可实现自动负载均衡)。


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] ZLBer commented on issue #2342: Support direct connecting to endpoint with xds protocol

Posted by "ZLBer (via GitHub)" <gi...@apache.org>.
ZLBer commented on issue #2342:
URL: https://github.com/apache/dubbo-go/issues/2342#issuecomment-1606045560

   you can refer to these documents about proxyless:
   https://dubbogo.github.io/zh-cn/docs/user/tasks/mesh/traffic_management.html
   https://dubbogo.github.io/zh-cn/docs/user/concept/mesh/proxyless_service_mesh.html
   


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] justxuewei commented on issue #2342: Support direct connecting to endpoint with xds protocol

Posted by "justxuewei (via GitHub)" <gi...@apache.org>.
justxuewei commented on issue #2342:
URL: https://github.com/apache/dubbo-go/issues/2342#issuecomment-1605310913

   @ZLBer Could you take a look at this?


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] WesleyWu commented on issue #2342: Support direct connecting to endpoint with xds protocol

Posted by "WesleyWu (via GitHub)" <gi...@apache.org>.
WesleyWu commented on issue #2342:
URL: https://github.com/apache/dubbo-go/issues/2342#issuecomment-1617206756

   > you can refer to these documents about proxyless: https://dubbogo.github.io/zh-cn/docs/user/tasks/mesh/traffic_management.html https://dubbogo.github.io/zh-cn/docs/user/concept/mesh/proxyless_service_mesh.html
   
   谢谢指出。我事先对dubbo-go的官方方案进行过测试,遇到的问题是:
   1) GKE 不再官方支持 istio ,取而代之是使用 [anthos](https://zhuanlan.zhihu.com/p/411049617) ,与 istio 兼容。生产部署时,无法在 anthos 中将 istio 的实例设置为只有1个,不满足[这里指出的条件](https://dubbogo.github.io/zh-cn/docs/user/tasks/mesh/build.html)。我在其他的 k8s 发行版,例如 minikube里,可以测试工作正常。
   2) 如果使用非go/java的其他语言(例如python)客户端,无法通过 istio 的 xds 端点获取 dubbo 服务的负载均衡设置。即,不管后端部署了多少个 Provider 节点 Pod,Consumer 始终只会调用第一个。可能是 python 语言的 xds client支持不完善,且 triple 协议支持缺失,只能通过标准的 gRPC 协议,设定 xds 的 bootstrap 文件来指定后端。
   
   


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org