Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-6219

Improve auto-detection of predefined resource types.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • containerization
    • None

    Description

      Mesos agent currently auto-detects certain predefined resource types when they are not specified. These include cpus, mem, (root) disk, gpus and also MESOS-6062 is adding auto-detection for mount disks when the size is specified as a special value "0".

      Due to the limitation of the Resources abstraction the caller of Resources::parse() can't tell if a resource is intentionally specified with an empty value or unspecified. The current resource auto-detection in Containerizer::resources() resorts to scanning the --resources flag to check if a resource is specified, this is very fragile, e.g., it would think gpus:0 is specified (and not auto-detected) if there is a mount disk with its root being /biggpush.

      It would be nice if we can have the user explicitly specify the intention to have value of a standard resource auto-detected (at least with the JSON input).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              xujyan Yan Xu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: