apache / apache/servicecomb-java-chassis

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

Aberta
#3,473 1 comentário 0 reações 0 responsáveis Ver no GitHub
edge
Linguagem predominante
Java
Estrelas
1.9k
Forks
814
Merge médio
8d 23h
PRs com merge (30d)
1

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Comece com URLMappedEdgeDispatcher e a configuração de roteamento do edge exibida; em seguida, rastreie o erro de OperationLocator para /calculator/bmi/ e microserviceName calculator. Reproduza o fluxo de roteamento do edge para o Mesher e compare-o com o caminho do sidecar legacy registrado com sucesso. A tarefa estará concluída quando o gateway do edge encaminhar as solicitações para o provedor legacy por meio do sidecar do Mesher.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
java
Domínio
backend, networking
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Precisa de esclarecimento
Facilidade para iniciantes
25/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.