Open gcfabri opened 1 year ago
Thanks for reporting this! :bow: I am not sure this has to be handled with k6's global DNS setting though, that's why I added evaluation needed
. gRPC has its own internal way of load balancing:
So it makes some sense to me to be able to be able to configure it differently on the gRPC Client
level or, more likely, on the Client.connect()
level :thinking: For example, a user might want to have 2 different scenarios and compare different load balancing strategies, or something like that :man_shrugging: Or have 2 separate gRPC connections to potentially 2 different services, one with load balancing enabled and another without.
The default value of such a per-connect()
setting might be influenced by the global dns
k6 option, but it seems to me that it should be its own thing, assuming it can co-exist with the global option.
Brief summary
Using DNS option (select="roundRobin") to load balancing with round robin strategy is not working in gRPC tests.
k6 version
v0.40.0
OS
Linux
Docker version and image (if applicable)
No response
Steps to reproduce the problem
Set the option to use load balancing strategy:
or
--dns "ttl=5m,select=roundRobin,policy=preferIPv4"
orK6_DNS="ttl=5m,select=roundRobin,policy=preferIPv4"
Expected behaviour
Channel switches to load balancing policy accordingly and then iterate sequentially over the resolved IPs.
2022/11/07 16:27:06 INFO: [core] Channel switches to new LB policy "round_robin"
Actual behaviour
Channel switches to new LB policy "pick_first".