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

Free temporary space should be modelled better

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.17.0
    • 0.19.0
    • None
    • None
    • Reviewed

    Description

      Currently, there is a configurable size that must be free for a task tracker to accept a new task. However, that isn't a very good model of what the task is likely to take. I'd like to propose:

      Map tasks: totalInputSize * conf.getFloat("map.output.growth.factor", 1.0) / numMaps
      Reduce tasks: totalInputSize * 2 * conf.getFloat("map.output.growth.factor", 1.0) / numReduces

      where totalInputSize is the size of all the maps inputs for the given job.

      To start a new task,
      newTaskAllocation + (sum over running tasks of (1.0 - done) * allocation) >=
      free disk * conf.getFloat("mapred.max.scratch.allocation", 0.90);

      So in English, we will model the expected sizes of tasks and only task tasks that should leave us a 10% margin. With:
      map.output.growth.factor – the relative size of the transient data relative to the map inputs
      mapred.max.scratch.allocation – the maximum amount of our disk we want to allocate to tasks.

      Attachments

        1. clean_spaceest.patch
          17 kB
          Ariel Shemaiah Rabkin
        2. diskspaceest_v2.patch
          18 kB
          Ariel Shemaiah Rabkin
        3. diskspaceest_v3.patch
          18 kB
          Ariel Shemaiah Rabkin
        4. diskspaceest_v4.patch
          18 kB
          Ariel Shemaiah Rabkin
        5. diskspaceest.patch
          18 kB
          Ariel Shemaiah Rabkin
        6. spaceest_717.patch
          17 kB
          Ariel Shemaiah Rabkin

        Issue Links

          Activity

            People

              asrabkin Ariel Shemaiah Rabkin
              omalley Owen O'Malley
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: