Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-17469 IOStatistics Phase II
  3. HADOOP-17553

FileSystem.close() to optionally log IOStats; save to local dir

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.1
    • Fix Version/s: None
    • Component/s: fs, fs/azure, fs/s3
    • Labels:
      None
    • Target Version/s:

      Description

      We could save the IOStats to a local temp dir as JSON (the snapshot is designed to be serializable, even has a test), with a unique name (iostats-stevel-s3a-bucket1-timestamp-random#.json ... etc).

      We can collect these (Rajesh can, anyway), and then

      • look for load on a specific bucket
      • look what happened at a specific time

      The best bit: the IOStatisticsSnapshot aggregates counters, min/max/mean, so you could merge iostats-s3a-bucket1.json to get the IOStats of all principals working with a given bucket

      This will be local, so low cost, low cost enough we could turn it on in production. All that's needed is collection of the stats from the local hosts (or they write to a shared mounted volume)
      We will need some "hadoop iostats merge" command to take multiple files and merge them all together; print to screen or save to a new file. Straightforward as all the load and merge code is present.

      Needs

      • logging in FS.close
      • new iostats CLI + docs, tests
      • extend IOStatisticsSnapshot with list of <string, string> options for use in annotating saved logs (hostname, principal, jobID, ...). Don't know how to merge these.

      If we are going to add a new context map to the IOStatisticsSnapshot then we MUST update it before 3.3.1 ships so as to avoid breaking the serialization format on the next release, especially the java one.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: