You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Qian Zhang (JIRA)" <ji...@apache.org> on 2016/04/26 11:13:13 UTC

[jira] [Created] (MESOS-5285) Allow agent to periodically collect dynamic attributes

Qian Zhang created MESOS-5285:
---------------------------------

             Summary: Allow agent to periodically collect dynamic attributes
                 Key: MESOS-5285
                 URL: https://issues.apache.org/jira/browse/MESOS-5285
             Project: Mesos
          Issue Type: Improvement
          Components: slave
            Reporter: Qian Zhang
            Assignee: Qian Zhang


The user story is, framework may want to schedule its tasks based on some dynamically changed attributes (e.g., CPU utilization) of agent. For example, framework receives 3 offers and each offer is corresponding to an agent, and each agent's CPU utilization is different, framework may want to launch a task on the agent with lowest CPU utilization.

Currently, agent will send its resources and attributes to master only on startup, and will not update it afterward. To support the above user story, we may need to introduce a new mechanism to agent for periodically update its dynamically changed attributes to master. There is already a hook in agent: {{Hook::slaveAttributesDecorator()}}, but this hook will only be called on agent startup, we may need to enhance it to make it called periodically, or introduce a new periodical hook mechanism. And we may also need to introduce a new message between agent and master such agent can send the latest attributes collected by the hook to master.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)