Closed indrabasak closed 7 years ago
What do you want to do with the hostname?
We have the following requirements:
It will ensure that no in-flight transactions are lost while a host is being rebooted.
You might want to look into using a ZuulFilter
to capture the information you need.
I have looked at ZuulFilter
. I have a route
and a post
filter to keep track of the number of requests and responses per service ID respectively. However, I have no way of retrieving the host information since the HTTP client request takes places inside the RibbonRoutingFilter
.
@ryanjbaxter Thanks, I will take a look at it.
I am using
Dalston.SR3
for my Zuul server. The requests are routed using aRibbon Client
withHystrix
. Noticed that a server is allocated inLoadBalancerContext
class for a given request. Is there a way to capture this host information? I am trying to keep track of in-flight requests per service ID and host.