How to set the upstream host dynamically #9487
Unanswered
KamenRiderKuuga
asked this question in
Q&A
Replies: 1 comment
-
I have similar needs to you. My requirement is to parse the tenant ID in the token in the request, then obtain the cluster address corresponding to the tenant from redis based on the tenant ID, and then dynamically route to different upstreams. The following is my part Implementation, for your reference, I hope it can inspire you:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to set the upstream host dynamically and unknown in advance like this:
remote_uri:
/api/data-manage/...
then set the host to:
data-manage
I've tried the
proxy-rewrite
and the custom balancer, but still can't get this to work.Is there any suggestion?
Beta Was this translation helpful? Give feedback.
All reactions