You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Cody Maloney <co...@mesosphere.io> on 2015/01/29 04:58:34 UTC

Review Request 30396: Add --etcd to match --zk.

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30396/
-----------------------------------------------------------

Review request for mesos and Benjamin Hindman.


Bugs: MESOS-1806
    https://issues.apache.org/jira/browse/MESOS-1806


Repository: mesos-git


Description
-------

Eventually these will be replaced with --masters which handles both
calculating the master group as well as leader election. Currently
etcd can only be used for master election.


Diffs
-----

  docs/configuration.md 22f9e3db7b0e1691018de5fe3dfea3cb908de4b9 
  src/master/main.cpp e5e76ce16646eb0244227104038efeae5fbbbb2b 
  src/slave/main.cpp 42e46c58ab4b16033ac6a73d127968d0803490aa 

Diff: https://reviews.apache.org/r/30396/diff/


Testing
-------


Thanks,

Cody Maloney


Re: Review Request 30396: Add --etcd to match --zk.

Posted by Benjamin Mahler <bm...@twitter.com.INVALID>.
That sounds like it might lead to surprise, typically we handle these cross
flag interactions via manual checks (e.g. in master/main.cpp). Could you do
that here?

On Thu, Jan 29, 2015 at 10:25 AM, Cody Maloney <co...@mesosphere.io> wrote:

>
>
> > On Jan. 29, 2015, 5:55 p.m., Alexander Rukletsov wrote:
> > > What if a user specifies both `--zk` and `--etcd`? Do we want to track
> it and throw at least a warning?
>
> There isn't a good way to do this using <stout/flags> without rewriting a
> decent chunk of it. I could make the flags have different backing member
> variables and write the logic outside of flags / in main, but that just
> adds a lot of code + easy to get wrong / hard to test conditionals without
> any real value.
>
> If someone specifies both on the command line, the last one to be
> specified wins. Simple enough for an admin to figure out. Note they could
> also have MESOS_ZK and MESOS_ETCD specified and we wouldn't warn/error.
>
>
> - Cody
>
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30396/#review70236
> -----------------------------------------------------------
>
>
> On Jan. 29, 2015, 3:58 a.m., Cody Maloney wrote:
> >
> > -----------------------------------------------------------
> > This is an automatically generated e-mail. To reply, visit:
> > https://reviews.apache.org/r/30396/
> > -----------------------------------------------------------
> >
> > (Updated Jan. 29, 2015, 3:58 a.m.)
> >
> >
> > Review request for mesos and Benjamin Hindman.
> >
> >
> > Bugs: MESOS-1806
> >     https://issues.apache.org/jira/browse/MESOS-1806
> >
> >
> > Repository: mesos-git
> >
> >
> > Description
> > -------
> >
> > Eventually these will be replaced with --masters which handles both
> > calculating the master group as well as leader election. Currently
> > etcd can only be used for master election.
> >
> >
> > Diffs
> > -----
> >
> >   docs/configuration.md 22f9e3db7b0e1691018de5fe3dfea3cb908de4b9
> >   src/master/main.cpp e5e76ce16646eb0244227104038efeae5fbbbb2b
> >   src/slave/main.cpp 42e46c58ab4b16033ac6a73d127968d0803490aa
> >
> > Diff: https://reviews.apache.org/r/30396/diff/
> >
> >
> > Testing
> > -------
> >
> >
> > Thanks,
> >
> > Cody Maloney
> >
> >
>
>

Re: Review Request 30396: Add --etcd to match --zk.

Posted by Cody Maloney <co...@mesosphere.io>.

> On Jan. 29, 2015, 5:55 p.m., Alexander Rukletsov wrote:
> > What if a user specifies both `--zk` and `--etcd`? Do we want to track it and throw at least a warning?

There isn't a good way to do this using <stout/flags> without rewriting a decent chunk of it. I could make the flags have different backing member variables and write the logic outside of flags / in main, but that just adds a lot of code + easy to get wrong / hard to test conditionals without any real value.

If someone specifies both on the command line, the last one to be specified wins. Simple enough for an admin to figure out. Note they could also have MESOS_ZK and MESOS_ETCD specified and we wouldn't warn/error.


- Cody


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30396/#review70236
-----------------------------------------------------------


On Jan. 29, 2015, 3:58 a.m., Cody Maloney wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30396/
> -----------------------------------------------------------
> 
> (Updated Jan. 29, 2015, 3:58 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Bugs: MESOS-1806
>     https://issues.apache.org/jira/browse/MESOS-1806
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Eventually these will be replaced with --masters which handles both
> calculating the master group as well as leader election. Currently
> etcd can only be used for master election.
> 
> 
> Diffs
> -----
> 
>   docs/configuration.md 22f9e3db7b0e1691018de5fe3dfea3cb908de4b9 
>   src/master/main.cpp e5e76ce16646eb0244227104038efeae5fbbbb2b 
>   src/slave/main.cpp 42e46c58ab4b16033ac6a73d127968d0803490aa 
> 
> Diff: https://reviews.apache.org/r/30396/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Cody Maloney
> 
>


Re: Review Request 30396: Add --etcd to match --zk.

Posted by Alexander Rukletsov <al...@mesosphere.io>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/30396/#review70236
-----------------------------------------------------------


What if a user specifies both `--zk` and `--etcd`? Do we want to track it and throw at least a warning?

- Alexander Rukletsov


On Jan. 29, 2015, 3:58 a.m., Cody Maloney wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/30396/
> -----------------------------------------------------------
> 
> (Updated Jan. 29, 2015, 3:58 a.m.)
> 
> 
> Review request for mesos and Benjamin Hindman.
> 
> 
> Bugs: MESOS-1806
>     https://issues.apache.org/jira/browse/MESOS-1806
> 
> 
> Repository: mesos-git
> 
> 
> Description
> -------
> 
> Eventually these will be replaced with --masters which handles both
> calculating the master group as well as leader election. Currently
> etcd can only be used for master election.
> 
> 
> Diffs
> -----
> 
>   docs/configuration.md 22f9e3db7b0e1691018de5fe3dfea3cb908de4b9 
>   src/master/main.cpp e5e76ce16646eb0244227104038efeae5fbbbb2b 
>   src/slave/main.cpp 42e46c58ab4b16033ac6a73d127968d0803490aa 
> 
> Diff: https://reviews.apache.org/r/30396/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Cody Maloney
> 
>