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

Load balancing read requests between slaves in a replica set

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.3
    • 2.2
    • Cluster Management
    • None
    • 4 servers with 8 cores

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: