Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2846109EA for ; Fri, 27 Sep 2013 12:38:15 +0000 (UTC) Received: (qmail 39645 invoked by uid 500); 27 Sep 2013 12:38:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 39498 invoked by uid 500); 27 Sep 2013 12:38:02 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 39486 invoked by uid 99); 27 Sep 2013 12:38:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 12:38:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of scherler@gmail.com designates 209.85.212.174 as permitted sender) Received: from [209.85.212.174] (HELO mail-wi0-f174.google.com) (209.85.212.174) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Sep 2013 12:37:54 +0000 Received: by mail-wi0-f174.google.com with SMTP id hj3so747654wib.13 for ; Fri, 27 Sep 2013 05:37:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=zKPJLJ1gwdFphxLVuavfZAmqn6ZvtAPiwgcLdCCpvWs=; b=iFZSW9ToJufqQCyB/KI9Ykf5fdIZZjZN2a0TCnWj7KVi0orZORjvSVRjgdT/fYbkgD Iy5VnTHBA2spCONSkaKxFTREnMSaERhVQIjaKxFuZfkTtgiVIV4V+BBuELpGq4ewdoSC ynowN+U9lWtg/CcgC/hYgnRU7IIUdpBctZnCRUxMtbnY8glaGib6S7p/1qJ5XN4FHDrr r8dQCWsXYbX//zT9J3N0IQVdX+P8T/XO+A4PsGL9NWSppcrohbHoaOgE6+UHwp+YB0qU NZ7S9RMKzXRBEnHV+5py9c+SKBCi7kTqmruG87nqsOnH+Lu8P+rArYd19V2E7BK5u+EG ATYw== X-Received: by 10.180.107.99 with SMTP id hb3mr2524801wib.34.1380285452696; Fri, 27 Sep 2013 05:37:32 -0700 (PDT) Received: from [10.0.0.17] (94.168.216.87.static.jazztel.es. [87.216.168.94]) by mx.google.com with ESMTPSA id b11sm38178585wik.1.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Sep 2013 05:37:32 -0700 (PDT) Message-ID: <52457C0C.4040405@gmail.com> Date: Fri, 27 Sep 2013 14:37:32 +0200 From: Thorsten Scherler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-Version: 1.0 To: user@couchdb.apache.org Subject: Re: database limits: how many dbs can I have in one couchdb instance References: <52455FFD.9000506@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 09/27/2013 12:44 PM, Dave Cottlehuber wrote: >> Hi all, >> >> meanwhile the patch for "validate_doc_read" is not applied I am studying >> different workarounds. >> >> One valid solution for our use case is to create a db for each user and >> store the user specific stuff in that db. >> That has the benefit that we can limit the access to that db with the >> standard security mechanism and we do not >> need to fall back to middleware logic. >> >> The biggest problem I see in the approach is that we need to know what >> is the max number of "user" db >> we can have in one instance. Regarding the size of this db it is >> expected to be a couple of smaller docs. >> >> Somebody has experience with that? Like rule of thumb do not deploy more >> then 10k databases in one instance ... >> >> TIA for any thoughts. >> >> salu2 >> >> -- >> Thorsten Scherler >> codeBusters S.L. - web based systems >> >> >> http://www.codebusters.es/ > Hi Thorsten, > > The number of DBs doesn't really matter, barring sane OS limits of files/dir. > > CouchDB uses an LRU cache to keep an appropriate number of DB handles > open for active connections. > > A better set of questions to ask is: > > - how many active concurrent users (=== DBs) do you expect? > - what sort of replication (esp filtered, continuous …) do you expect? > > A+ > Dave > > Actually it is hard to estimate the number of user since we are building a "online web-app generator and personal crawler". I would estimate a exponential grow rate, but in the beginning the number of user would be quite low and as well the growth rate is slow in the start. Regarding the replication we would have the production system a backup server that does continuous replication. We are still in the design phase for the overall architecture. salu2 -- Thorsten Scherler codeBusters S.L. - web based systems http://www.codebusters.es/