Is there an existing issue for this?
Current Behavior
DividePlugin, if http request set header "specify-domain", gateway will change the url of selected upstream. If the same "specify-domain" is always specified, all upstream URLs will be changed to use a single URL.
Expected Behavior
DividePlugin , if http request set header "specify-domain", only change url for current request, do not change the url of upstream
Steps To Reproduce
-
set 2 upstream for divide selector,eg: "10.110.51.108:8000","10.110.52.182:8000"
-
set the configuration of shenyu-bootstrap , upstreamCheck-> printEnabled: true
-
log of upstream print :
[o.a.s.l.cache.UpstreamCheckTask][] [Health Check] currently healthy upstream: ["10.110.51.108:8000","10.110.52.182:8000"]
-
initiate a http request,add header -H "specify-domain:10.110.51.108:8000", repeat several times
-
log of upstream print :
[o.a.s.l.cache.UpstreamCheckTask][] [Health Check] currently healthy upstream: ["10.110.51.108:8000","10.110.51.108:8000"]
Environment
Debug logs
No response
Anything else?
No response
Is there an existing issue for this?
Current Behavior
DividePlugin, if http request set header "specify-domain", gateway will change the url of selected upstream. If the same "specify-domain" is always specified, all upstream URLs will be changed to use a single URL.
Expected Behavior
DividePlugin , if http request set header "specify-domain", only change url for current request, do not change the url of upstream
Steps To Reproduce
set 2 upstream for divide selector,eg: "10.110.51.108:8000","10.110.52.182:8000"
set the configuration of shenyu-bootstrap , upstreamCheck-> printEnabled: true
log of upstream print :
[o.a.s.l.cache.UpstreamCheckTask][] [Health Check] currently healthy upstream: ["10.110.51.108:8000","10.110.52.182:8000"]
initiate a http request,add header -H "specify-domain:10.110.51.108:8000", repeat several times
log of upstream print :
[o.a.s.l.cache.UpstreamCheckTask][] [Health Check] currently healthy upstream: ["10.110.51.108:8000","10.110.51.108:8000"]
Environment
Debug logs
No response
Anything else?
No response