Closed saiyujs closed 1 year ago
I dont understand your test setup/question. What is the expected result from the discovery-service. Is it the same as the other server?
Please also post your error logs.
grpc-client
when grpc-server receive request will print log.
my expected result : if send 10 request, hostA grpc-server receive 5 request(print 5 log), hostB grpc-server receive 5 request(print 5 log) actuality result: first time to wget /test, hostA grpc-server receive 10 request(10 log), hostB grpc-server receive 0 request(0 log) second time to wget /test, hostA grpc-server receive 5 request(5 log), hostB grpc-server receive 5 request(5 log)
first time loadblance fail
my test result: when first time request finished, await 10 sec, loadblance will be working
first time loadblance fail
Please show me the error log.
no error log.....
So only the load balancing part fails, getting hostA
100% of the requests?
Does this happen regardless of whether you are using dns, static, discovery schemes?
yes,I just used static and discovery to test。 It feels like the host address synchronization was incomplete at the beginning。so only the load balancing part fails
Please also test the dns one. If it is also affected please ask grpc-java directly for help as that is outside of my knowledge. (And please paste a link to the new issue here)
thank you very much!!!
You are welcome. Thanks for sharing the link, so I can also learn ❤️.
version: grpc-client-spring-boot-starter-2.13.1.RELEASE
i do the test. i have one client program, two server program(server program--same serverName, different ip)
two ways to create channel:
i send 10 request from client to server. first test 10 request loadblance fail, all request on hostA,but after first test, then second test, third test.......request loadblance success the test result by two ways of create channel are same. this is a bug?