apache / apache/servicecomb-java-chassis

INFO Required: Edge gateway service routing to mesher Side car proxy

オープン
#3,473 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
edge
主要言語
Java
スター
1.9k
フォーク
814
平均マージ
8日 23時間
マージ済み PR(30日)
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 と、示されているエッジのルーティング設定から始め、/calculator/bmi/ と microserviceName calculator に対する OperationLocator エラーを追跡します。エッジから Mesher へのルーティングフローを再現し、正常に登録されている legacy sidecar のパスと比較します。エッジゲートウェイが Mesher sidecar 経由でリクエストを legacy provider にルーティングできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
java
領域
backend, networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。