You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Jim Donahue <jd...@adobe.com> on 2012/11/02 22:18:01 UTC

Slave ports that need to be opened?

I notice that my master log has the following entry when my slave connects:

Adding slave 201211021752-3489055242-5050-1589-0 at domU-12-31-39-16-81-89.
compute-1.internal with cpus=2; mem=6430; ports=[31000-32000]; disk=5301

Are the ports in the range 31000-32000 always used for master->slave communication?  Is there any way to change this?  (Not that I particularly need to, but I'm curious.)

Thanks,

Jim Donahue
Adobe

Re: Slave ports that need to be opened?

Posted by Benjamin Mahler <bm...@twitter.com>.
These ports are not used for master -> slave communication. Rather, there
are part of what the slave considered to be the resources available to
mesos on your slave machine. Along with cpus, memory, and disk, ports are
considered to be a consumable resource in mesos.

> Is there any way to change this?

Yes they can be changed, along with other available resources, for example:
./mesos-slave <master>
--resources=cpus:4.0;mem:4096;ports:[30000-31000];disk:10240

When the available resources are not specified, we make some assumptions
about what resources to consider available to mesos. This means all the
CPUs, most of the memory, most of the disk, and currently the port range
31000-32000 (the top 1000 non-ephemeral ports).

On Fri, Nov 2, 2012 at 2:18 PM, Jim Donahue <jd...@adobe.com> wrote:

> I notice that my master log has the following entry when my slave connects:
>
> Adding slave 201211021752-3489055242-5050-1589-0 at domU-12-31-39-16-81-89.
> compute-1.internal with cpus=2; mem=6430; ports=[31000-32000]; disk=5301
>
> Are the ports in the range 31000-32000 always used for master->slave
> communication?  Is there any way to change this?  (Not that I particularly
> need to, but I'm curious.)
>
> Thanks,
>
> Jim Donahue
> Adobe
>