Hi Peter,
I think you are currently build refuge not rcouch (http://rcouch.org). Rcouch doesn't need dnssd & such. Is this something you need ? Actually only rcouch is supported, new version of refuge that should appear sometimes this week introduces a radical change I described in my talk at Erlang Factory:
http://www.erlang-factory.com/upload/presentations/718/refuge_eflparis2013.pdf
(in french unfortunately)
I don't reproduce the slowness at all…. What do you call slow? About the memory, you will see it increases when building views, other than that rcouch/couchdb doesn't use so much ram or CPU on startup (same on a busy node though) once views have been bootstraped…
Couple of notes:
- rcouch and couch_core aren't using anymore cowboy and mochicow. Cowboy introduction sounded like a good idea but were introducing too much issues. They are now gone and instead we are only use ranch to improve the accepting loop of mochiweb so your issue is solved.
- On ubuntu I generally install Erlang from erlang-solutions:
https://www.erlang-solutions.com/downloads/download-erlang-otp
It will requires to install wx too unfortunately.
- make sure your machine has an hostname and localnet correctly configured. If you don't need to bind all interfaces I woudl strongly suggest to bind rcouch to 127.0.0.1
Hope it helps,
- benoît
Hello Benoit!
Thanks for the fast answer.
I think I got the right rcouch:
The list of dependencies comes from my past experiments - that's why I installed the server from scratch!
Slow: Well, I have about 500 000 documents in the database.
Creation of indexes needs about 5 minutes!
That's extremely annoying.
And unusable as our use-case includes synchronisation with and interactive GUIs on smartphones.
Hum, without saying you I can tell you that some of my custommers are using couchdb on mobile without any problem. What is the size of each documents?
Also when and how are you measuring that time? Is this UPLOAD + INDEX or just INDEX ?
Are you indexing swith all the docs in the db?
So I assume there should be more information in the RAM to speed up things.
When looking to the "Status" screen I sometimes see that the indexer starts at e.g. 40% and proceeds very slowly.
But maybe this impression is wrong. The whole CouchDB data directory is about 1GB.
OK 500 000 documents sounds much, but that's why I use a database!
I also had a look to http://wiki.apache.org/couchdb/Performance#Disk_and_File_System_Performance but I think nothing solves my problem.
Especially there are no limits in /etc/security/limits** .
No idea where to trim the system to get faster answers.
All hints welcome!
---------- Forwarded message ----------
From: Benoit Chesneau <bche...@gmail.com>
Date: Thu, Dec 6, 2012 at 5:49 PM
Subject: Re: [rcouch] AW: Compiling rcouch on 64 bit Ubuntu 12.04.1
To: Kutschera Peter <Peter.K...@ait.ac.at>
On Thu, Dec 6, 2012 at 4:15 PM, Kutschera Peter <Peter.K...@ait.ac.at> wrote:
Hello Benoit!
Thanks for the fast answer.
I think I got the right rcouch:
The list of dependencies comes from my past experiments - that's why I installed the server from scratch!
Slow: Well, I have about 500 000 documents in the database.
Creation of indexes needs about 5 minutes!
That's extremely annoying.
And unusable as our use-case includes synchronisation with and interactive GUIs on smartphones.Hum, without saying you I can tell you that some of my custommers are using couchdb on mobile without any problem. What is the size of each documents?
Also when and how are you measuring that time? Is this UPLOAD + INDEX or just INDEX ?
Are you indexing swith all the docs in the db?