You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Wei Wei (JIRA)" <ji...@apache.org> on 2016/12/21 01:44:58 UTC
[jira] [Commented] (MESOS-6225) mesos-docker-executor port
collision with container(network:host)
[ https://issues.apache.org/jira/browse/MESOS-6225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15765818#comment-15765818 ]
Wei Wei commented on MESOS-6225:
--------------------------------
Thanks, I use sysctl -w net.ipv4.ip_local_reserved_ports="start end" reserve port range defined in mesos-agent resource files solved this problem.
> mesos-docker-executor port collision with container(network:host)
> -----------------------------------------------------------------
>
> Key: MESOS-6225
> URL: https://issues.apache.org/jira/browse/MESOS-6225
> Project: Mesos
> Issue Type: Bug
> Components: containerization
> Affects Versions: 1.0.1
> Environment: ubuntu 14.04 LTS
> mesos 1.0.1
> Reporter: Wei Wei
>
> we implement a scheduler to launch a batch of data process worker in docker container, we use network: host and assign random picked port for the process worker and encounter a port collision problem:
> the port we choose for the container was taken by the mesos-docker-container.
> mesos-agent resource config:
> {"name":"ports","type":"RANGES","ranges":{"range": [{"begin":10000,"end":32000}]}}]
> root@xs35:lsof -i:31981
> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
> mesos-doc 2835 root 8u IPv4 433237650 0t0 TCP 10.34.38.30:31981 (LISTEN)
> the port was taken by mesos-docker-executor and the framework still offer port resource 31981
> is there a way to set mesos-docker-executors port range?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)