The Mesos master and slave can take a variety of configuration options through command-line arguments, or environment variables. A list of the available options can be seen by running mesos-master --help
or mesos-slave --help
. Each option can be set in two ways:
--option_name=value
, either specifying the value directly, or specifying a file in which the value resides (--option_name=file://path/to/file
). The path can be absolute or relative to the current working directory.MESOS_OPTION_NAME
(the option name with a MESOS_
prefix added to it).Configuration values are searched for first in the environment, then on the command-line.
Important Options
If you have special compilation requirements, please refer to ./configure --help
when configuring Mesos. Additionally, the documentation lists only a subset of the options. A definitive source for which flags your version of Mesos supports can be found by running the binary with the flag --help
, for example mesos-master --help
.
These options can be supplied to both masters and slaves.
</td>
</td>
</td>
</td>
</td>
</td>
</td>
Required Flags
<b>NOTE</b> Not required if master is run in standalone mode (non-HA). </td>
</td>
Optional Flags
<p/> Text file Example:
</td>
</td>
See the RateLimits protobuf in mesos.proto for the expected format. <p/> Example:
</td>
Example: <pre><code>file:///etc/mesos/slave_whitelist</code></pre> <p/> </td>
Flags available when configured with ‘--with-network-isolator’
Required Flags
<li> zookeeper or quorum hostname/ip + port + master registration path </li>
</li> <li> a path to a file containing either one of the above options. You can also use the <code>file:///path/to/file</code> syntax to read the argument from a file which contains one of the above. </li> </ol> </td>
Optional Flags
</td>
<p/> Or a path containing the JSON formatted information used for one credential. <p/> Path should be of the form <code>file://path/to/file</code>. <p/> Remember you can also use the <code>file:///path/to/file</code> argument value format to read the value from a file. </p> JSON file example:
</td>
</td>
Flags available when configured with ‘--with-network-isolator’
###The configure script has the following flags for optional features:
optimize for fast installation [default=yes] </td>
excludes building and using the bundled distribute package in lieu of an installed version in PYTHONPATH </td>
Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations.