Hello,
I have created a sharded environment with 2 mongos. I am trying to use HAProxy as a load balancer for the mongos. When I try to connect using the loadBalanced=true flag I always get error.
MongoCompatibilityError: Driver attempted to initialize in load balancing mode, but the server does not support this mode.
Maybe I have missed some configurations or is it possible to use the loadBalanced=true flag when using HAProxy as load balancer for the mongos?