Is there a way to make custom resource offers from a Mesos slave? Currently, the resource offers from the slave contain "cpus", "mem", "ports". I want to add custom resource capabilities like upload bandwidth limit, download bandwidth limit etc. There is an option of doing this via the --resources
parameter while starting the slave. But what I am looking for is a way to achieve this via code, may be a pluggable module to Mesos, so that the person who is launching the slaves doesn't have to bother about specifying the custom resources.
Is this possible? Thanks.
Resources reported by the Mesos agent (aka slave) should be specified by the --resources
flag. If the flag is omitted, defaults are used. Note that custom resources advertised via --resources
will not be isolated, i.e. Mesos agent will not ensure a task is using not more than allocated amount of such resource.
Why do you think a module is a nicer solution than a flag? Loading custom modules requires setting some command line flags as well.