I have got a small mongoDB cluster with 3 nodes (no sharding, only replication). Now the insertion to the primary node is propogating the new data to the secondary node as expected (basic replication). I am using java and hibernate.
Now what I want is to loadbalance the read requests among the whole replica set instead of primary node always being used to serve the data. Is there some way that I tell hibernate (through query string) about the available servers and somehow hibernate distributes the request (either randomly or in a systematic manner)? What would be the right way to achieve load balancing?