Cassandra
  1. Cassandra
  2. CASSANDRA-6481

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Fix Version/s: 1.2.13, 2.0.4
    • Component/s: None
    • Labels:
      None

      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.

      1. 6481.txt
        0.7 kB
        Aleksey Yeschenko

        Activity

        Hide
        Jonathan Ellis added a comment -

        If dsnitch actually worked then I think this would be fine, but fixing dsnitch is probably out of scope here so +1

        Show
        Jonathan Ellis added a comment - If dsnitch actually worked then I think this would be fine, but fixing dsnitch is probably out of scope here so +1
        Hide
        Jason Brown added a comment -

        +1 on the patch, as well.

        Jonathan Ellis In what way do you think dsnitch doesn't work?

        Show
        Jason Brown added a comment - +1 on the patch, as well. Jonathan Ellis In what way do you think dsnitch doesn't work?
        Hide
        Aleksey Yeschenko added a comment -

        Committed, thanks.

        Show
        Aleksey Yeschenko added a comment - Committed, thanks.
        Hide
        Jonathan Ellis added a comment -

        In what way do you think dsnitch doesn't work

        CASSANDRA-6465

        Show
        Jonathan Ellis added a comment - In what way do you think dsnitch doesn't work CASSANDRA-6465

          People

          • Assignee:
            Aleksey Yeschenko
            Reporter:
            Aleksey Yeschenko
            Reviewer:
            Jonathan Ellis
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development