apache / apache/servicecomb-java-chassis
INFO Required: Edge gateway service routing to mesher Side car proxy
- 主要语言
- Java
- 星标
- 1.9k
- 派生
- 814
- 平均合并
- 8 天 23 小时
- 30 天内合并 PR
- 1
描述
Below is the system flow i am experimenting with,
====================================
Edge service ( developed with java chassis SDK) <-> Side car Proxy connector (built with Service-mesh and service ports configured to point to legacy application) --> Legacy Servlet application
====================================================
I can successfully able to run mesher as side car proxy and get it registered in the service center. I can also able to hit provider API's (servlet based application) via mesher side car proxy.
However I can't able to route to the provider application via mesher side car proxy from the edge gateway.
Below is the routing configuration in edge service.
* I am using `URLMappedEdgeDispatcher`.
* And `legacy` is name of the side car provider mesher microservice with which it has been registered in the service center.
``` http:
dispatcher:
edge:
url:
enabled: true
mappings:
legacy:
path: "/legacy/.*"
microserviceName: legacy
prefixSegmentCount: 0
versionRule: 0.0.0+ `
```
I am getting this error on runtime
```
**2022-11-10 17:38:46,606 [ERROR] [transport-vert.x-eventloop-thread-3] - locate path failed, status:Not Found, http method:GET, path:/calculator/bmi/, microserviceName:calculator (OperationLocator.java:72)**
```
@liubao68 It seems URLMappedEdgeDispatcher is not the right one to use here as it does schema based routing. Please help point me how we can achieve this? are there any other dispatchers which would effectively route traffic from edge service to side car proxy mesher connector?
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 URLMappedEdgeDispatcher 和所示的 edge 路由配置开始,然后跟踪 /calculator/bmi/ 和 microserviceName calculator 的 OperationLocator 错误。重现从 edge 到 Mesher 的路由流程,并将其与已成功注册的 legacy sidecar 路径进行比较。当 edge gateway 通过 Mesher sidecar 将请求路由到 legacy provider 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- backend, networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100