[
https://issues.apache.org/jira/browse/MESOS-1651?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090930#comment-14090930
]
Dominic Hamon commented on MESOS-1651:
--------------------------------------
We need to consider what the long-term possibilities are here. Adding a
configuration file that is read as defaults is trivial, but doesn't allow us to
extend the work further.
Instead, consider creating a configuration protobuf which can be set from a
file and the flags (a subset of those available in the configuration file) can
be read to override what was loaded.
The benefits are:
* one place where a configuration is stored
** enables trivial checkpointing and exposure to endpoints
* configuration can be checked trivially against the current (recovered) state
and checkpointed old configuration
** enables smarter recovery with triggered maintenance mode or even reboots
** enables sanity checking of configuration in one place
* set of flags is smaller and geared towards overrides only
* dependencies in code are smaller
** most code depends on configuration protobuf
** only configuration code depends on flags
The downsides are:
* this model would work best if it is through the entire stack. it's possible
to do it iteratively by setting libprocess/mesos flags from a slave
configuration, but the end goal should be every layer has a configuration
> Configuration file option with command line flags override
> ----------------------------------------------------------
>
> Key: MESOS-1651
> URL: https://issues.apache.org/jira/browse/MESOS-1651
> Project: Mesos
> Issue Type: Improvement
> Components: master, slave
> Reporter: Tobias Weingartner
>
> It would be awesome if the extensive command lines were shorted by being able
> to specify a configuration file instead of command line arguments. A couple
> wishlist style things:
> * command line flags override configuration file options
> * ability to specify a sequence of configuration files to facilitate
> rolling out a new feature and having backup configurations if the config file
> contains incompatible information
> * Possibly a stored configuration within the meta directory, and a way to
> update this configuration for non-impacting changes. Possibly using the
> stored/check-pointed configuration as a fall-back if it would be task
> affecting.
> Pie in the sky:
> * have the slave generate inverse offers and manage transitioning to new
> configurations. Possibly by including a method to tell the environment how
> else to mitigate (please reboot host, kernel is incompatible, etc).
--
This message was sent by Atlassian JIRA
(v6.2#6252)