Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-202

Load balancing read requests between slaves in a replica set

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.3
    • Affects Version/s: 2.2
    • Component/s: Cluster Management
    • None
    • Environment:
      4 servers with 8 cores

      I've made a read-heavy benchmark on a replica set with 1 master and 3 slaves. The client is using the java driver and set the slaveOk(), but the repartition of the requests was unequal.

      The loads of the servers were:

      • 0.02 for the master (I think the client send it only the very few writes)
      • 60 for the first slave (it was the goal of the bench to push MongoDB to its limits)
      • 5 on the second slave
      • only 2 on the last slave.

      I was expecting that the load on the 3 slaves was similar.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            brmichel Bruno Michel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: