elodina / datastax-enterprise-mesos

DataStax Enterprise on Mesos
http://www.elodina.net
15 stars 4 forks source link

Possibility to use dynamic ports (optional) #20

Closed dmitrypekar closed 8 years ago

dmitrypekar commented 8 years ago

DCOS requirements includes using dynamic ports for executors. This may be implemented to meet DCOS reqs.

Those port should be parameters of a new ring concept introduced as a part of multi-ring support.

dmitrypekar commented 8 years ago

Added following options to ring add|update cmds:

--internal-port
--jmx-port
--cql-port
--thrift-port

All options accepts Range in format: 1000..2000, 1000, "". Empty range means 'auto-selected' port.

All ports by default are "auto".

Updated implementation to allocate and use those ports in Executor. Added tests.