You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by Eric Clack <er...@googlemail.com> on 2018/01/16 10:44:12 UTC

CouchDB running on the Raspberry Pi?

Hello CouchDB devs,

Is there any interest in getting CouchDB running on the Raspberry Pi (an
AMD platform), running Raspbian Stretch?

See my post here:
https://github.com/apache/couchdb/issues/1103

As I said in the post, I have time to contribute to the work and am
interested in learning more about CouchDB, Erlang, etc.

Right now it would be useful for me to gauge interest as I need to know
whether I should investigate alternative databases for my Pi projects.

Many thanks,
-Eric.

-- 
Eric Clack
eric@bn7.net
East Sussex, England.

Re: CouchDB running on the Raspberry Pi?

Posted by Eric Clack <er...@googlemail.com>.
Hi all,
A progress update: I've tried the Erlang version from the Debian Stretch
repo and then installing CouchDB from source and all seems to work well, so
perhaps there is a problem with the Erlang package from Erlang Solutions
repository?

-Eric.

On 24 January 2018 at 01:47, Russell Branca <ch...@apache.org> wrote:

> Fwiw I got CouchDB 2.x running on a Raspian Raspberry Pi 3.b recently
> without much fuss. Pretty sure I compiled Erlang from source.
>
>
> -Russell
>
> On Fri, Jan 19, 2018 at 4:12 AM Eric Clack <er...@googlemail.com>
> wrote:
>
> > Hi Michael, Ben and Johs,
> > Thanks for your responses.
> >
> > I've found for my (admittedly small) projects Couch works pretty well on
> > the Pi (version 2). It's a great solution to the problem of where to
> store
> > metadata, and how to query it easily. The only performance problem I saw
> > was when reducing and grouping queries, e.g. here I used a memo to cache
> > results:
> >
> > https://github.com/ericclack/clojure-photo-bank/blob/
> master/src/clj/clojure_photo_bank/models/db.clj#L45
> > ...running the query took about 5 seconds for around 4000 records. That's
> > not great, but for everything else Couch was easily fast enough.
> >
> > I'm going to explore Erlang packages for Raspbian and then look at
> > compiling a few different versions of CouchDB to see if I can at least
> get
> > some good bug reports to the right team.
> >
> > Many thanks,
> > -Eric.
> >
> >
> >
> > On 19 January 2018 at 08:11, Johs Ensby <jo...@b2w.com> wrote:
> >
> > > Hi Eric,
> > >
> > > I think it would be great if you found a way to run couch on Raspberry
> > Pi,
> > > preferably Ubuntu Mate.
> > > Performance will surely not be great, but more important I would think
> it
> > > could be a great demonstration of how CouchDB could be a common
> platform
> > > from big clusters in the cloud to your very private system.
> > >
> > > johs:)
> > >
> > >
> > > > On 16 Jan 2018, at 23:28, benjamin.bastian@gmail.com wrote:
> > > >
> > > > I did this back quite a few years ago, and from what I remember IO
> > > > performance was pretty dreadful on an SD card. I'm not sure what the
> > > status
> > > > of COUCHDB-3287 is, but maybe a different storage engine would offer
> > > better
> > > > performance?
> > > >
> > > > Ben
> > > >
> > > > On Tue, Jan 16, 2018 at 2:08 PM, Michael Fair <
> michael@daclubhouse.net
> > >
> > > > wrote:
> > > >
> > > >> This is similar to running Couch on mobile phones.
> > > >> Perhaps an alternative is starting with another "Couch Compatible"
> > > database
> > > >> that's lighter weight?
> > > >>
> > > >> Perhaps PouchDB running on Node.js comes to mind.
> > > >> This implements the replication/sync protocol between Couch
> compatible
> > > >> databases, without being an erlang based, sharded, distributed
> > backend.
> > > >>
> > > >>
> > > >>
> > > >> On Tue, Jan 16, 2018 at 2:44 AM, Eric Clack <
> ericclack@googlemail.com
> > >
> > > >> wrote:
> > > >>
> > > >>> Hello CouchDB devs,
> > > >>>
> > > >>> Is there any interest in getting CouchDB running on the Raspberry
> Pi
> > > (an
> > > >>> AMD platform), running Raspbian Stretch?
> > > >>>
> > > >>> See my post here:
> > > >>> https://github.com/apache/couchdb/issues/1103
> > > >>>
> > > >>> As I said in the post, I have time to contribute to the work and am
> > > >>> interested in learning more about CouchDB, Erlang, etc.
> > > >>>
> > > >>> Right now it would be useful for me to gauge interest as I need to
> > know
> > > >>> whether I should investigate alternative databases for my Pi
> > projects.
> > > >>>
> > > >>> Many thanks,
> > > >>> -Eric.
> > > >>>
> > > >>> --
> > > >>> Eric Clack
> > > >>> eric@bn7.net
> > > >>> East Sussex, England.
> > > >>>
> > > >>
> > >
> > >
> >
> >
> > --
> > Eric Clack
> > eric@bn7.net
> > East Sussex, England.
> >
>



-- 
Eric Clack
eric@bn7.net
East Sussex, England.

Re: CouchDB running on the Raspberry Pi?

Posted by Russell Branca <ch...@apache.org>.
Fwiw I got CouchDB 2.x running on a Raspian Raspberry Pi 3.b recently
without much fuss. Pretty sure I compiled Erlang from source.


-Russell

On Fri, Jan 19, 2018 at 4:12 AM Eric Clack <er...@googlemail.com> wrote:

> Hi Michael, Ben and Johs,
> Thanks for your responses.
>
> I've found for my (admittedly small) projects Couch works pretty well on
> the Pi (version 2). It's a great solution to the problem of where to store
> metadata, and how to query it easily. The only performance problem I saw
> was when reducing and grouping queries, e.g. here I used a memo to cache
> results:
>
> https://github.com/ericclack/clojure-photo-bank/blob/master/src/clj/clojure_photo_bank/models/db.clj#L45
> ...running the query took about 5 seconds for around 4000 records. That's
> not great, but for everything else Couch was easily fast enough.
>
> I'm going to explore Erlang packages for Raspbian and then look at
> compiling a few different versions of CouchDB to see if I can at least get
> some good bug reports to the right team.
>
> Many thanks,
> -Eric.
>
>
>
> On 19 January 2018 at 08:11, Johs Ensby <jo...@b2w.com> wrote:
>
> > Hi Eric,
> >
> > I think it would be great if you found a way to run couch on Raspberry
> Pi,
> > preferably Ubuntu Mate.
> > Performance will surely not be great, but more important I would think it
> > could be a great demonstration of how CouchDB could be a common platform
> > from big clusters in the cloud to your very private system.
> >
> > johs:)
> >
> >
> > > On 16 Jan 2018, at 23:28, benjamin.bastian@gmail.com wrote:
> > >
> > > I did this back quite a few years ago, and from what I remember IO
> > > performance was pretty dreadful on an SD card. I'm not sure what the
> > status
> > > of COUCHDB-3287 is, but maybe a different storage engine would offer
> > better
> > > performance?
> > >
> > > Ben
> > >
> > > On Tue, Jan 16, 2018 at 2:08 PM, Michael Fair <michael@daclubhouse.net
> >
> > > wrote:
> > >
> > >> This is similar to running Couch on mobile phones.
> > >> Perhaps an alternative is starting with another "Couch Compatible"
> > database
> > >> that's lighter weight?
> > >>
> > >> Perhaps PouchDB running on Node.js comes to mind.
> > >> This implements the replication/sync protocol between Couch compatible
> > >> databases, without being an erlang based, sharded, distributed
> backend.
> > >>
> > >>
> > >>
> > >> On Tue, Jan 16, 2018 at 2:44 AM, Eric Clack <ericclack@googlemail.com
> >
> > >> wrote:
> > >>
> > >>> Hello CouchDB devs,
> > >>>
> > >>> Is there any interest in getting CouchDB running on the Raspberry Pi
> > (an
> > >>> AMD platform), running Raspbian Stretch?
> > >>>
> > >>> See my post here:
> > >>> https://github.com/apache/couchdb/issues/1103
> > >>>
> > >>> As I said in the post, I have time to contribute to the work and am
> > >>> interested in learning more about CouchDB, Erlang, etc.
> > >>>
> > >>> Right now it would be useful for me to gauge interest as I need to
> know
> > >>> whether I should investigate alternative databases for my Pi
> projects.
> > >>>
> > >>> Many thanks,
> > >>> -Eric.
> > >>>
> > >>> --
> > >>> Eric Clack
> > >>> eric@bn7.net
> > >>> East Sussex, England.
> > >>>
> > >>
> >
> >
>
>
> --
> Eric Clack
> eric@bn7.net
> East Sussex, England.
>

Re: CouchDB running on the Raspberry Pi?

Posted by Eric Clack <er...@googlemail.com>.
Hi Michael, Ben and Johs,
Thanks for your responses.

I've found for my (admittedly small) projects Couch works pretty well on
the Pi (version 2). It's a great solution to the problem of where to store
metadata, and how to query it easily. The only performance problem I saw
was when reducing and grouping queries, e.g. here I used a memo to cache
results:
https://github.com/ericclack/clojure-photo-bank/blob/master/src/clj/clojure_photo_bank/models/db.clj#L45
...running the query took about 5 seconds for around 4000 records. That's
not great, but for everything else Couch was easily fast enough.

I'm going to explore Erlang packages for Raspbian and then look at
compiling a few different versions of CouchDB to see if I can at least get
some good bug reports to the right team.

Many thanks,
-Eric.



On 19 January 2018 at 08:11, Johs Ensby <jo...@b2w.com> wrote:

> Hi Eric,
>
> I think it would be great if you found a way to run couch on Raspberry Pi,
> preferably Ubuntu Mate.
> Performance will surely not be great, but more important I would think it
> could be a great demonstration of how CouchDB could be a common platform
> from big clusters in the cloud to your very private system.
>
> johs:)
>
>
> > On 16 Jan 2018, at 23:28, benjamin.bastian@gmail.com wrote:
> >
> > I did this back quite a few years ago, and from what I remember IO
> > performance was pretty dreadful on an SD card. I'm not sure what the
> status
> > of COUCHDB-3287 is, but maybe a different storage engine would offer
> better
> > performance?
> >
> > Ben
> >
> > On Tue, Jan 16, 2018 at 2:08 PM, Michael Fair <mi...@daclubhouse.net>
> > wrote:
> >
> >> This is similar to running Couch on mobile phones.
> >> Perhaps an alternative is starting with another "Couch Compatible"
> database
> >> that's lighter weight?
> >>
> >> Perhaps PouchDB running on Node.js comes to mind.
> >> This implements the replication/sync protocol between Couch compatible
> >> databases, without being an erlang based, sharded, distributed backend.
> >>
> >>
> >>
> >> On Tue, Jan 16, 2018 at 2:44 AM, Eric Clack <er...@googlemail.com>
> >> wrote:
> >>
> >>> Hello CouchDB devs,
> >>>
> >>> Is there any interest in getting CouchDB running on the Raspberry Pi
> (an
> >>> AMD platform), running Raspbian Stretch?
> >>>
> >>> See my post here:
> >>> https://github.com/apache/couchdb/issues/1103
> >>>
> >>> As I said in the post, I have time to contribute to the work and am
> >>> interested in learning more about CouchDB, Erlang, etc.
> >>>
> >>> Right now it would be useful for me to gauge interest as I need to know
> >>> whether I should investigate alternative databases for my Pi projects.
> >>>
> >>> Many thanks,
> >>> -Eric.
> >>>
> >>> --
> >>> Eric Clack
> >>> eric@bn7.net
> >>> East Sussex, England.
> >>>
> >>
>
>


-- 
Eric Clack
eric@bn7.net
East Sussex, England.

Re: CouchDB running on the Raspberry Pi?

Posted by Johs Ensby <jo...@b2w.com>.
Hi Eric,

I think it would be great if you found a way to run couch on Raspberry Pi, preferably Ubuntu Mate.
Performance will surely not be great, but more important I would think it could be a great demonstration of how CouchDB could be a common platform from big clusters in the cloud to your very private system.

johs:)


> On 16 Jan 2018, at 23:28, benjamin.bastian@gmail.com wrote:
> 
> I did this back quite a few years ago, and from what I remember IO
> performance was pretty dreadful on an SD card. I'm not sure what the status
> of COUCHDB-3287 is, but maybe a different storage engine would offer better
> performance?
> 
> Ben
> 
> On Tue, Jan 16, 2018 at 2:08 PM, Michael Fair <mi...@daclubhouse.net>
> wrote:
> 
>> This is similar to running Couch on mobile phones.
>> Perhaps an alternative is starting with another "Couch Compatible" database
>> that's lighter weight?
>> 
>> Perhaps PouchDB running on Node.js comes to mind.
>> This implements the replication/sync protocol between Couch compatible
>> databases, without being an erlang based, sharded, distributed backend.
>> 
>> 
>> 
>> On Tue, Jan 16, 2018 at 2:44 AM, Eric Clack <er...@googlemail.com>
>> wrote:
>> 
>>> Hello CouchDB devs,
>>> 
>>> Is there any interest in getting CouchDB running on the Raspberry Pi (an
>>> AMD platform), running Raspbian Stretch?
>>> 
>>> See my post here:
>>> https://github.com/apache/couchdb/issues/1103
>>> 
>>> As I said in the post, I have time to contribute to the work and am
>>> interested in learning more about CouchDB, Erlang, etc.
>>> 
>>> Right now it would be useful for me to gauge interest as I need to know
>>> whether I should investigate alternative databases for my Pi projects.
>>> 
>>> Many thanks,
>>> -Eric.
>>> 
>>> --
>>> Eric Clack
>>> eric@bn7.net
>>> East Sussex, England.
>>> 
>> 


Re: CouchDB running on the Raspberry Pi?

Posted by "benjamin.bastian@gmail.com" <be...@gmail.com>.
I did this back quite a few years ago, and from what I remember IO
performance was pretty dreadful on an SD card. I'm not sure what the status
of COUCHDB-3287 is, but maybe a different storage engine would offer better
performance?

Ben

On Tue, Jan 16, 2018 at 2:08 PM, Michael Fair <mi...@daclubhouse.net>
wrote:

> This is similar to running Couch on mobile phones.
> Perhaps an alternative is starting with another "Couch Compatible" database
> that's lighter weight?
>
> Perhaps PouchDB running on Node.js comes to mind.
> This implements the replication/sync protocol between Couch compatible
> databases, without being an erlang based, sharded, distributed backend.
>
>
>
> On Tue, Jan 16, 2018 at 2:44 AM, Eric Clack <er...@googlemail.com>
> wrote:
>
> > Hello CouchDB devs,
> >
> > Is there any interest in getting CouchDB running on the Raspberry Pi (an
> > AMD platform), running Raspbian Stretch?
> >
> > See my post here:
> > https://github.com/apache/couchdb/issues/1103
> >
> > As I said in the post, I have time to contribute to the work and am
> > interested in learning more about CouchDB, Erlang, etc.
> >
> > Right now it would be useful for me to gauge interest as I need to know
> > whether I should investigate alternative databases for my Pi projects.
> >
> > Many thanks,
> > -Eric.
> >
> > --
> > Eric Clack
> > eric@bn7.net
> > East Sussex, England.
> >
>

Re: CouchDB running on the Raspberry Pi?

Posted by Michael Fair <mi...@daclubhouse.net>.
This is similar to running Couch on mobile phones.
Perhaps an alternative is starting with another "Couch Compatible" database
that's lighter weight?

Perhaps PouchDB running on Node.js comes to mind.
This implements the replication/sync protocol between Couch compatible
databases, without being an erlang based, sharded, distributed backend.



On Tue, Jan 16, 2018 at 2:44 AM, Eric Clack <er...@googlemail.com>
wrote:

> Hello CouchDB devs,
>
> Is there any interest in getting CouchDB running on the Raspberry Pi (an
> AMD platform), running Raspbian Stretch?
>
> See my post here:
> https://github.com/apache/couchdb/issues/1103
>
> As I said in the post, I have time to contribute to the work and am
> interested in learning more about CouchDB, Erlang, etc.
>
> Right now it would be useful for me to gauge interest as I need to know
> whether I should investigate alternative databases for my Pi projects.
>
> Many thanks,
> -Eric.
>
> --
> Eric Clack
> eric@bn7.net
> East Sussex, England.
>