Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-6481

Batchlog endpoint candidates should be picked randomly, not sorted by proximity

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.13, 2.0.4
    • None
    • None
    • Normal

    Description

      Batchlog endpoint candidates should be picked randomly, not sorted by proximity. I'll be lazy and just copy-paste some lines from IRC:

      [20:23:27] rbranson: is there an issue where batch logs tend to get written to a subset of the nodes?
      [20:28:04] rbranson: I mean all the write batches are going thru 10% of the nodes
      [20:28:16] rbranson: it means writes won't scale linearly w/the cluster size

      Attaching a trivial patch.

      Attachments

        1. 6481.txt
          0.7 kB
          Aleksey Yeschenko

        Activity

          People

            aleksey Aleksey Yeschenko
            aleksey Aleksey Yeschenko
            Aleksey Yeschenko
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: