[
https://issues.apache.org/jira/browse/MESOS-4339?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15097215#comment-15097215
]
Adam B commented on MESOS-4339:
-------------------------------
If I understand correctly, you want the Framework to specify its weight within
its role using a new FrameworkInfo.weight field?
I'm not convinced that we want to allow frameworks to manipulate their own
weights, as that's usually the cluster admin's responsibility, not each
individual framework. And although it is true that we already assume that
frameworks within the same role play nicely with each other (especially as far
as reservations, volumes, and quota are concerned), this usually means that
customers create one role per framework, in which case the framework's weight
would be meaningless. What problem are you trying to solve?
Rather than thinking about this feature from the allocator/sorter out, let's
step back and think about our users:
1) the cluster operator managing weights, reservations, acls, etc.
2) the framework owner, who configures and launches a framework and uses the
framework's own admin API/UI.
3) the framework user, who runs jobs/apps/tasks through the framework
4) Maybe you want to propose a "role manager", who manages the frameworks
within a role?
Related features:
Would you support updating FrameworkInfo.weights on reregistration, as per
MESOS-703?
Would you support an operator endpoint for updating weights on known
frameworkIds(?), as in MESOS-4189?
Impact on multi-role frameworks feature:
- Framework weights would be simple enough to implement on its own, without
depending on multi-role frameworks.
- When we implement multi-role frameworks, will each framework need a weight
per-role, or a single weight across all its roles?
> Add weight support for framework sorter
> ---------------------------------------
>
> Key: MESOS-4339
> URL: https://issues.apache.org/jira/browse/MESOS-4339
> Project: Mesos
> Issue Type: Improvement
> Components: allocation
> Reporter: Fan Du
> Assignee: Fan Du
>
> Current framework sorter doesn't take into account of weights when sorting
> framework belonging to a particular role, i.e., all frameworks has equal
> weights as 1. Considering the role weight is controlled by the operator,
> enable the framework weight does not impact the role level allocation
> decision from any greedy frameworks, but it will be beneficial to some
> framework who could get more resources within a specific role.
> The framework weight will come from message FrameworkInfo when it got
> registered, and FrameworkSorters will "add" framework with weight,
> this will eventually result a weighted framework sorting flow when master
> make the finally allocation decision.
> Please review this ticket which I will work on if it's considered acceptable.
> Thanks a lot.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)