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

Dominic Hamon commented on MESOS-1654:
--------------------------------------

I understand the concern over tying the resource management in a framework to a 
specific isolator implementation. I am never a fan of breaking abstraction 
layers.

However, I will come back to the point that ephemeral ports are a resource that 
are allocated. As such, they should be accounted for at least, and exposed to 
the framework at most. I expect most end-users (running jobs on frameworks) to 
not know too much about their ephemeral port usage so how and if the framework 
exposes them is to be determined.

Even in a world where we have an IP per container each host can still only 
support a number of connections equal to the available ephemeral port range.

I really like the idea of globally allocated resources such as IP addresses 
that are handled at a level outside the slave, but it won't help this case 
where we are allocating resources (ephemeral ports) and not accounting for them.

> Expose ephemeral ports per container as a resource
> --------------------------------------------------
>
>                 Key: MESOS-1654
>                 URL: https://issues.apache.org/jira/browse/MESOS-1654
>             Project: Mesos
>          Issue Type: Story
>    Affects Versions: 0.20.0
>            Reporter: Dominic Hamon
>            Priority: Critical
>
> Ephemeral port static allocation requires fixed limit of containers per host. 
> This is not exposed to frameworks so they will receive TASK_LOST 
> notifications without the ability to proactively control this or react 
> accordingly.
> By exposing the ephemeral port ranges assigned to containers as a resource, 
> frameworks can potentially fit more containers per host, but also won't 
> receive offers for slaves that can't run any more tasks due to hitting the 
> limit.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to