Meng Zhu created MESOS-9182:
-------------------------------
Summary: Improve `class Slave` in the allocator.
Key: MESOS-9182
URL: https://issues.apache.org/jira/browse/MESOS-9182
Project: Mesos
Issue Type: Improvement
Components: allocation
Reporter: Meng Zhu
Assignee: Meng Zhu
Currently, there are several issues with Slave class in the allocator:
(1) Resources on an agent are characterized by two variables: total and
allocated. However, these two related fields are currently mutated separately
by different member functions, leading to temporary inconsistencies. This is
fragile and has produced several odd logic flows.
(2) While we track aggregated allocated resources on the agent, we do not know
which frameworks those resources are allocated to. This lack of information
makes several things difficult. For example, the odd agent removal logic
described in MESOS-621. And also, currently, we can not update the framework
sorter by simply looking at the Slave class. This leads to convoluted
update/tracking (un)allocated resources logic.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)