If you need to increase your ephemeral port range and also need to run Mesos, then you can modify the advertised ports through a mesos-slave (soon to be renamed to mesos-agent) configuration parameter of -resources. This could lead to Mesos offering that port to a Mesos Framework, which would encounter seemingly random failures of its Mesos Executors and/or Mesos Tasks as they will be unable to bind to that port. So if you change the ephemeral port range such that it overlaps with the Mesos port range, it's likely that some arbitrary process will use an ephemeral port that is actually one of those "Mesos ports". time that the ports is in ' waiting ' status - called the TIME WAIT - By Default - TimeWait is set to 240 sec ( thats like 4 minutes ) RANGE EPHEMERAL. Notably, Mesos doesn't know about whether a port is used by some other process, it just tracks the assignment of ports to the entities it orchestrates ( Mesos Tasks & Mesos Executors). But there are ways to tune the TCP/IP stack. This avoids a clash with the default Linux ephemeral port range of 32768-61000. The default set of ports that Mesos advertises is 31000-32000. (65,535) Generally if a process uses some dynamically assigned range of ports and didn't complete (and close) successfully and is repeatedly being triggered then it may be expected behavior to eventually run out of ports. The advertised resources include CPU, memory, ports, etc. You asked about limits of port space so I was answering that. Mesos advertises the resources of a host out to various Mesos Frameworks which then can choose to use the advertised resources. Changing the ephemeral port range might cause problems if you are using Mesos.
0 Comments
Leave a Reply. |