Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9637

Scan range load-balancing within backend

    XMLWordPrintableJSON

Details

    Description

      Currently the scheduler statically divides scan ranges between fragment instances, Since IMPALA-9015 it statically load-balances scan ranges based on file size using the LPT algorithm in the schedule.

      This has various pitfalls:

      • It interacts badly with dynamic partition pruning, which can filter out a bunch of scan ranges and unbalance the laod
      • Different files that have the same byte size may involve different amounts of work to process for any number of reasons.

      Those can cause both inter-node load balance problems and intra-node load balance problems. This Jira is about fixing the intra-node load balance problem, so that the situation is no worse than before mt_dop.

      The proposed solution is to have a queue of scan ranges per backend, sorted from largest to smallest, and have each instance pull scan ranges off that queue. The DiskIOMgr ReaderContext probably is already sufficient to solve this problem, and we'll need to add a different mechanism for Kudu, Hbase, etc.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tarmstrong Tim Armstrong
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: