Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Header-based routing doesn't work #10

Open
aldredb opened this issue Sep 12, 2021 · 0 comments
Open

Header-based routing doesn't work #10

aldredb opened this issue Sep 12, 2021 · 0 comments

Comments

@aldredb
Copy link

aldredb commented Sep 12, 2021

There are issues running the commands in: https://www.appmeshworkshop.com/policyrouting/curljson/

curl --location --header "canary_fleet: true" --silent $URL/json gives 404 error as there is no /json path

Even though header is set to canary_fleet: true, Crystal service still randomly gives non-canary response back. This is probably because Ruby front-end does not forward the header to Crystal service. The only reliable way to get 100% canary response is to open a Session Manager session against the External EC2 instance and access the Virtual Gateway of the Crystal service (created in in https://www.appmeshworkshop.com/virtualgateway/crystal-ingress/) i.e.

for ((i=1;i<=15;i++)); do
 curl --header "canary_fleet: true" $NLB_ENDPOINT/ecs/crystal
 sleep 1s
done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant