hashicorp / consul-demo-traffic-splitting

Example application using Docker Compose to demonstrate Consul Service Mesh Traffic Splitting
Mozilla Public License 2.0
23 stars 21 forks source link

Question: Upstream port of the web service #5

Open MajoDurco opened 4 years ago

MajoDurco commented 4 years ago

Hello,

thank you for this small example, it's great 👍 . I have one question about the following port: https://github.com/hashicorp/consul-demo-traffic-splitting/blob/003bab4107e9e98e3b9f6a3ddaf59cff768b41e6/docker-compose.yml#L22 What is behind this port and how does it forward the request to the sidecar proxy? I tried to find how nicholasjackson/upstream-echo works, but unsuccessfully.

dineshba commented 3 years ago

As far as I understand,

  1. There is a mistake with port 9991 and UPSTREAM_ADDR. It is not respected by image nicholasjackson/upstream-echo
  2. It is hard-coded in nicholasjackson/upstream-echo image to send upstream call to localhost:9091. In 9091, web_envoy is listening which will send traffic to api service (through proxy)

cc: @ash1425