Details
-
Improvement
-
Status: Accepted
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Similar to how we have added labels to tasks/executors (MESOS-2120), and even FrameworkInfo (MESOS-2841), we should extend Resource to allow arbitrary key/value pairs.
This could be used to specify that a cpu resource has a certain speed, that a disk resource is SSD, or express any other metadata about a built-in or custom resource type. Only the scalar quantity will be used for determining fair share in the Mesos allocator. The rest will be passed onto frameworks as info they can use for scheduling decisions.
This would require changes to how the slave specifies its `--resources` (probably as json), how the slave/master reports resources in its web/json API, and how resources are offered to frameworks.
Attachments
Issue Links
- is blocked by
-
MESOS-2467 Allow --resources flag to take JSON.
- Resolved
- is related to
-
MESOS-2841 FrameworkInfo should include a Labels field to support arbitrary, lightweight metadata
- Resolved
-
MESOS-3366 Allow resources/attributes discovery
- Resolved
-
MESOS-4479 Implement reservation labels
- Resolved
-
MESOS-2120 Add support for task labels / parameters
- Resolved