Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-16830

Add public IOStatistics API

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.0
    • Fix Version/s: None
    • Component/s: fs, fs/s3
    • Target Version/s:

      Description

      Applications like to collect the statistics which specific operations take, by collecting exactly those operations done during the execution of FS API calls by their individual worker threads, and returning these to their job driver

      • S3A has a statistics API for some streams, but it's a non-standard one; Impala &c can't use it
      • FileSystem storage statistics are public, but as they aren't cross-thread, they don't aggregate properly

      Proposed

      1. A new IOStatistics interface to serve up statistics
      2. S3A to implement
      3. other stores to follow
      4. Pass-through from the usual wrapper classes (FS data input/output streams)

      It's hard to think about how best to offer an API for operation context stats, and how to actually implement.

      ThreadLocal isn't enough because the helper threads need to update on the thread local value of the instigator

      My Initial PoC doesn't address that issue, but it shows what I'm thinking of

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                stevel@apache.org Steve Loughran
                Reporter:
                stevel@apache.org Steve Loughran
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 15h 40m
                  15h 40m