You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aurora.apache.org by Bill Farner <wf...@apache.org> on 2014/04/01 17:43:42 UTC
Combining vagrant master machines
Does anybody have an issue with me combining the 'master' components in our
vagrant configuration to one machine? Currently we have three machines:
zookeeper, scheduler, master. It should be straightforward to combine
these into a single machine, at which point 'vagrant up' is much faster and
can be run on a machine with less RAM. This is a part of my effort to
improve the vagrant setup [1].
-=Bill
[1] https://issues.apache.org/jira/browse/AURORA-299
Re: Combining vagrant master machines
Posted by Bill Farner <wf...@apache.org>.
I'm not convinced we're yet in a position to trigger the complicated class
of bugs you describe, Kevin. However, the case for being able to exercise
basic functionality is pressing. I'd rather focus on enabling developers
to do this ASAP, and focus on the more complicated setups later.
-=Bill
On Tue, Apr 1, 2014 at 12:55 PM, Kevin Sweeney <ke...@apache.org> wrote:
> I think keeping a multi-machine setup for testing is important since it's
> much closer to actual deployment (and it'll catch a class of bugs that
> might not show up when everything's on localhost). Also as a technical note
> as far as I know you can't run more than one slave instance per VM when
> you're using the cgroups isolator (due to global kernel state) and the
> multi-slave test case is important as well.
>
> I'd say shoot for a refactoring where you can have 2 setups, one single-VM
> low-footprint one for dev and one multi-VM high-footprint setup for e2e
> testing, aiming for a minimum of code duplication.
>
>
> On Tue, Apr 1, 2014 at 12:16 PM, Jake Farrell <jf...@apache.org> wrote:
>
>> Whats the end goal that we want to have with the vagrant image, easier
>> development and testing or as a sample setup for a small cluster. I think
>> that for simplicity keeping it all on one vm for development and initial
>> testing is the best approach and then perhaps for the end to end tests we
>> can use the same chef scripts with a multi-vm.
>>
>> -Jake
>>
>>
>> On Tue, Apr 1, 2014 at 3:06 PM, Bill Farner <wf...@apache.org> wrote:
>>
>> > Should i take this a step further and use one machine for everything? I
>> > realize this is less 'pure', but purity doesn't help folks much if they
>> > need to buy a new computer to use it.
>> >
>> > -=Bill
>> >
>> >
>> > On Tue, Apr 1, 2014 at 9:06 AM, Jake Farrell <jf...@apache.org>
>> wrote:
>> >
>> >> +1, good call
>> >>
>> >> -Jake
>> >>
>> >>
>> >> On Tue, Apr 1, 2014 at 11:43 AM, Bill Farner <wf...@apache.org>
>> wrote:
>> >>
>> >> > Does anybody have an issue with me combining the 'master' components
>> in
>> >> our
>> >> > vagrant configuration to one machine? Currently we have three
>> machines:
>> >> > zookeeper, scheduler, master. It should be straightforward to
>> combine
>> >> > these into a single machine, at which point 'vagrant up' is much
>> faster
>> >> and
>> >> > can be run on a machine with less RAM. This is a part of my effort
>> to
>> >> > improve the vagrant setup [1].
>> >> >
>> >> >
>> >> > -=Bill
>> >> >
>> >> >
>> >> > [1] https://issues.apache.org/jira/browse/AURORA-299
>> >> >
>> >>
>> >
>> >
>>
>
>
Re: Combining vagrant master machines
Posted by Kevin Sweeney <ke...@apache.org>.
I think keeping a multi-machine setup for testing is important since it's
much closer to actual deployment (and it'll catch a class of bugs that
might not show up when everything's on localhost). Also as a technical note
as far as I know you can't run more than one slave instance per VM when
you're using the cgroups isolator (due to global kernel state) and the
multi-slave test case is important as well.
I'd say shoot for a refactoring where you can have 2 setups, one single-VM
low-footprint one for dev and one multi-VM high-footprint setup for e2e
testing, aiming for a minimum of code duplication.
On Tue, Apr 1, 2014 at 12:16 PM, Jake Farrell <jf...@apache.org> wrote:
> Whats the end goal that we want to have with the vagrant image, easier
> development and testing or as a sample setup for a small cluster. I think
> that for simplicity keeping it all on one vm for development and initial
> testing is the best approach and then perhaps for the end to end tests we
> can use the same chef scripts with a multi-vm.
>
> -Jake
>
>
> On Tue, Apr 1, 2014 at 3:06 PM, Bill Farner <wf...@apache.org> wrote:
>
> > Should i take this a step further and use one machine for everything? I
> > realize this is less 'pure', but purity doesn't help folks much if they
> > need to buy a new computer to use it.
> >
> > -=Bill
> >
> >
> > On Tue, Apr 1, 2014 at 9:06 AM, Jake Farrell <jf...@apache.org>
> wrote:
> >
> >> +1, good call
> >>
> >> -Jake
> >>
> >>
> >> On Tue, Apr 1, 2014 at 11:43 AM, Bill Farner <wf...@apache.org>
> wrote:
> >>
> >> > Does anybody have an issue with me combining the 'master' components
> in
> >> our
> >> > vagrant configuration to one machine? Currently we have three
> machines:
> >> > zookeeper, scheduler, master. It should be straightforward to combine
> >> > these into a single machine, at which point 'vagrant up' is much
> faster
> >> and
> >> > can be run on a machine with less RAM. This is a part of my effort to
> >> > improve the vagrant setup [1].
> >> >
> >> >
> >> > -=Bill
> >> >
> >> >
> >> > [1] https://issues.apache.org/jira/browse/AURORA-299
> >> >
> >>
> >
> >
>
Re: Combining vagrant master machines
Posted by Bill Farner <wf...@apache.org>.
IMHO, optimizing for development makes the most sense (of course, i have
the biased perspective of a developer). As more formal installation
routines are crafted, it will make a lot of sense to use these directly
within the development environment (e.g. generate deb packages, install
them in the vagrant machine). I lean heavily in the direction of
minimizing the requirements for vagrant up.
-=Bill
On Tue, Apr 1, 2014 at 12:16 PM, Jake Farrell <jf...@apache.org> wrote:
> Whats the end goal that we want to have with the vagrant image, easier
> development and testing or as a sample setup for a small cluster. I think
> that for simplicity keeping it all on one vm for development and initial
> testing is the best approach and then perhaps for the end to end tests we
> can use the same chef scripts with a multi-vm.
>
> -Jake
>
>
> On Tue, Apr 1, 2014 at 3:06 PM, Bill Farner <wf...@apache.org> wrote:
>
>> Should i take this a step further and use one machine for everything? I
>> realize this is less 'pure', but purity doesn't help folks much if they
>> need to buy a new computer to use it.
>>
>> -=Bill
>>
>>
>> On Tue, Apr 1, 2014 at 9:06 AM, Jake Farrell <jf...@apache.org> wrote:
>>
>>> +1, good call
>>>
>>> -Jake
>>>
>>>
>>> On Tue, Apr 1, 2014 at 11:43 AM, Bill Farner <wf...@apache.org> wrote:
>>>
>>> > Does anybody have an issue with me combining the 'master' components
>>> in our
>>> > vagrant configuration to one machine? Currently we have three
>>> machines:
>>> > zookeeper, scheduler, master. It should be straightforward to combine
>>> > these into a single machine, at which point 'vagrant up' is much
>>> faster and
>>> > can be run on a machine with less RAM. This is a part of my effort to
>>> > improve the vagrant setup [1].
>>> >
>>> >
>>> > -=Bill
>>> >
>>> >
>>> > [1] https://issues.apache.org/jira/browse/AURORA-299
>>> >
>>>
>>
>>
>
Re: Combining vagrant master machines
Posted by Jake Farrell <jf...@apache.org>.
Whats the end goal that we want to have with the vagrant image, easier
development and testing or as a sample setup for a small cluster. I think
that for simplicity keeping it all on one vm for development and initial
testing is the best approach and then perhaps for the end to end tests we
can use the same chef scripts with a multi-vm.
-Jake
On Tue, Apr 1, 2014 at 3:06 PM, Bill Farner <wf...@apache.org> wrote:
> Should i take this a step further and use one machine for everything? I
> realize this is less 'pure', but purity doesn't help folks much if they
> need to buy a new computer to use it.
>
> -=Bill
>
>
> On Tue, Apr 1, 2014 at 9:06 AM, Jake Farrell <jf...@apache.org> wrote:
>
>> +1, good call
>>
>> -Jake
>>
>>
>> On Tue, Apr 1, 2014 at 11:43 AM, Bill Farner <wf...@apache.org> wrote:
>>
>> > Does anybody have an issue with me combining the 'master' components in
>> our
>> > vagrant configuration to one machine? Currently we have three machines:
>> > zookeeper, scheduler, master. It should be straightforward to combine
>> > these into a single machine, at which point 'vagrant up' is much faster
>> and
>> > can be run on a machine with less RAM. This is a part of my effort to
>> > improve the vagrant setup [1].
>> >
>> >
>> > -=Bill
>> >
>> >
>> > [1] https://issues.apache.org/jira/browse/AURORA-299
>> >
>>
>
>
Re: Combining vagrant master machines
Posted by Bill Farner <wf...@apache.org>.
Should i take this a step further and use one machine for everything? I
realize this is less 'pure', but purity doesn't help folks much if they
need to buy a new computer to use it.
-=Bill
On Tue, Apr 1, 2014 at 9:06 AM, Jake Farrell <jf...@apache.org> wrote:
> +1, good call
>
> -Jake
>
>
> On Tue, Apr 1, 2014 at 11:43 AM, Bill Farner <wf...@apache.org> wrote:
>
> > Does anybody have an issue with me combining the 'master' components in
> our
> > vagrant configuration to one machine? Currently we have three machines:
> > zookeeper, scheduler, master. It should be straightforward to combine
> > these into a single machine, at which point 'vagrant up' is much faster
> and
> > can be run on a machine with less RAM. This is a part of my effort to
> > improve the vagrant setup [1].
> >
> >
> > -=Bill
> >
> >
> > [1] https://issues.apache.org/jira/browse/AURORA-299
> >
>
Re: Combining vagrant master machines
Posted by Jake Farrell <jf...@apache.org>.
+1, good call
-Jake
On Tue, Apr 1, 2014 at 11:43 AM, Bill Farner <wf...@apache.org> wrote:
> Does anybody have an issue with me combining the 'master' components in our
> vagrant configuration to one machine? Currently we have three machines:
> zookeeper, scheduler, master. It should be straightforward to combine
> these into a single machine, at which point 'vagrant up' is much faster and
> can be run on a machine with less RAM. This is a part of my effort to
> improve the vagrant setup [1].
>
>
> -=Bill
>
>
> [1] https://issues.apache.org/jira/browse/AURORA-299
>
Re: Combining vagrant master machines
Posted by Dan Norris <pr...@gmail.com>.
Go for it! Reducing the number of Vagrant VMs will have a noticeable impact
for those of us who don't have access to an existing Aurora cluster.
On Tue, Apr 1, 2014 at 11:50 AM, Maxim Khutornenko <ma...@apache.org> wrote:
> +1. Having that many VMs to boot up every time makes me looking for other
> alternatives.
>
>
> On Tue, Apr 1, 2014 at 8:43 AM, Bill Farner <wf...@apache.org> wrote:
>
> > Does anybody have an issue with me combining the 'master' components in
> our
> > vagrant configuration to one machine? Currently we have three machines:
> > zookeeper, scheduler, master. It should be straightforward to combine
> > these into a single machine, at which point 'vagrant up' is much faster
> and
> > can be run on a machine with less RAM. This is a part of my effort to
> > improve the vagrant setup [1].
> >
> >
> > -=Bill
> >
> >
> > [1] https://issues.apache.org/jira/browse/AURORA-299
> >
>
Re: Combining vagrant master machines
Posted by Maxim Khutornenko <ma...@apache.org>.
+1. Having that many VMs to boot up every time makes me looking for other
alternatives.
On Tue, Apr 1, 2014 at 8:43 AM, Bill Farner <wf...@apache.org> wrote:
> Does anybody have an issue with me combining the 'master' components in our
> vagrant configuration to one machine? Currently we have three machines:
> zookeeper, scheduler, master. It should be straightforward to combine
> these into a single machine, at which point 'vagrant up' is much faster and
> can be run on a machine with less RAM. This is a part of my effort to
> improve the vagrant setup [1].
>
>
> -=Bill
>
>
> [1] https://issues.apache.org/jira/browse/AURORA-299
>
Re: Combining vagrant master machines
Posted by Toby Weingartner <tw...@twitter.com>.
+1, might also allow us to optionally stand up 2 more master machines for a
redundant cluster in the "future".
-Toby.
On Tue, Apr 1, 2014 at 8:43 AM, Bill Farner <wf...@apache.org> wrote:
> Does anybody have an issue with me combining the 'master' components in our
> vagrant configuration to one machine? Currently we have three machines:
> zookeeper, scheduler, master. It should be straightforward to combine
> these into a single machine, at which point 'vagrant up' is much faster and
> can be run on a machine with less RAM. This is a part of my effort to
> improve the vagrant setup [1].
>
>
> -=Bill
>
>
> [1] https://issues.apache.org/jira/browse/AURORA-299
>