[ 
https://issues.apache.org/jira/browse/MESOS-5285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730626#comment-16730626
 ] 

longfei commented on MESOS-5285:
--------------------------------

+1 for this.

Actually, we want a "dynamic updating agent's resources" feature.

> 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: agent
>            Reporter: Qian Zhang
>            Assignee: Qian Zhang
>            Priority: Major
>
> 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
(v7.6.3#76005)

Reply via email to