Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12790

Support fairness across parallelized scans

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Scheduler
    • Labels:

      Description

      Some HBase clients parallelize the execution of a scan to reduce latency in getting back results. This can lead to starvation with a loaded cluster and interleaved scans, since the RPC queue will be ordered and processed on a FIFO basis. For example, if there are two clients, A & B that submit largish scans at the same time. Say each scan is broken down into 100 scans by the client (broken down into equal depth chunks along the row key), and the 100 scans of client A are queued first, followed immediately by the 100 scans of client B. In this case, client B will be starved out of getting any results back until the scans for client A complete.

      One solution to this is to use the attached AbstractRoundRobinQueue instead of the standard FIFO queue. The queue to be used could be (maybe it already is) configurable based on a new config parameter. Using this queue would require the client to have the same identifier for all of the 100 parallel scans that represent a single logical scan from the clients point of view. With this information, the round robin queue would pick off a task from the queue in a round robin fashion (instead of a strictly FIFO manner) to prevent starvation over interleaved parallelized scans.

        Attachments

        1. AbstractRoundRobinQueue.java
          9 kB
          James R. Taylor
        2. HBASE-12790_1.patch
          92 kB
          ramkrishna.s.vasudevan
        3. HBASE-12790_5.patch
          119 kB
          ramkrishna.s.vasudevan
        4. HBASE-12790_callwrapper.patch
          120 kB
          ramkrishna.s.vasudevan
        5. HBASE-12790_trunk_1.patch
          120 kB
          ramkrishna.s.vasudevan
        6. HBASE-12790.patch
          74 kB
          ramkrishna.s.vasudevan
        7. PHOENIX_4.5.3-HBase-0.98-2317-SNAPSHOT.zip
          320 kB
          Andrew Kyle Purtell

          Activity

            People

            • Assignee:
              ram_krish ramkrishna.s.vasudevan
              Reporter:
              jamestaylor James R. Taylor
            • Votes:
              0 Vote for this issue
              Watchers:
              23 Start watching this issue

              Dates

              • Created:
                Updated: