General service relation lost when load balance server involved in trace context #10567
IceSoda177
started this conversation in
General
Replies: 2 comments 8 replies
-
Are you calling this an issue? This is what is happening. I don't think your suggestions make any sense. |
Beta Was this translation helpful? Give feedback.
0 replies
-
For now, it's just issue for me. NG seperate RPC client and server, and the call relation between general services become uncertain. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Nginx is playing role as load balance server in our micro service env. After we put the lua agent in nginx, the call relation between services are inconsistent. For example, the call-in traffic on server side is aggreagted as the server is called by only nginx. And the situation can be worse, if one nginx proxy traffic for different services or the call-in traffic pass two or more nginxs before it reach the server.
My suggestion is
1, Add load balance layer, and mark nginx as service of this layer
2, LB layer keep parent exit span info from GENERAL layer in SegmentReference and pass it to next service
3, GENERAL layer entry span can recieve and report two parent span one is from LB layer, the other is from GENERAL layer.
4, OAP could calculate two type of service relation, relation between GENERAL layer and relation between GENERAL layer and LB layer.
5, RPC server return with serviceId, instanceId and endpoint, so the client side of RPC call could know which service or endpoint is handling it's request.
Beta Was this translation helpful? Give feedback.
All reactions