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 6C4034CE0 for ; Tue, 17 May 2011 13:42:05 +0000 (UTC) Received: (qmail 76429 invoked by uid 500); 17 May 2011 13:42:03 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 76397 invoked by uid 500); 17 May 2011 13:42:03 -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 76389 invoked by uid 99); 17 May 2011 13:42:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 13:42:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of matt.goodall@gmail.com designates 209.85.216.180 as permitted sender) Received: from [209.85.216.180] (HELO mail-qy0-f180.google.com) (209.85.216.180) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 13:41:57 +0000 Received: by qyk10 with SMTP id 10so335252qyk.11 for ; Tue, 17 May 2011 06:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=fnVwr18+fs1ZqPFTxsdCxI6CH3Dhrx/wh+8ntL9vAs0=; b=P30vSoPK8hlPfeRu5JojHSGT0FgbQA1x5mlWrAHKe0YX2YUs6pgFtfhBZM/VlQA+l+ LBJpXfGWS4a29tlTn8kK3PQg9/Jsk/OtLt0d2tB5juC3N5u/Stojk896z9e+DPeLJITN /kM2kzYqtnPYyHzUW0hcQU4waNtkrTjUrevMo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=xSJqau/uxOkGfRC3NrwBgou4pF5IamBAPjW7GU4lii0/hYuI2Aa6mgkaOMUCl0ruzT xT6i9Qn5p9200iSnWBJjWASg6RdsgdtNF8vtNtbqbKQh9PhozjUot/OvIsqelw09lXse hAc1qAJMg9q/kCtE28bDvUVGEE12d/9tMnsPY= MIME-Version: 1.0 Received: by 10.229.67.161 with SMTP id r33mr406830qci.220.1305639696445; Tue, 17 May 2011 06:41:36 -0700 (PDT) Received: by 10.229.186.11 with HTTP; Tue, 17 May 2011 06:41:36 -0700 (PDT) In-Reply-To: <4DD259E1.70703@autonomy.com> References: <4DD259E1.70703@autonomy.com> Date: Tue, 17 May 2011 14:41:36 +0100 Message-ID: Subject: Re: Multiple instances on one machine From: Matt Goodall To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=0016e6506c644fb1e104a378ee77 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6506c644fb1e104a378ee77 Content-Type: text/plain; charset=UTF-8 On 17 May 2011 12:20, Clare Walsh wrote: > Hi, > Is there a way to run multiple instance of couch on the same machine, ie on > different ports? > > The only instructions I've been able to find online were for couch 0.8 and > were very out of date... It seems like I would need to make copies of most > couch folders and the local.ini files, but some of the things it refers to > either don't exist, have changed/moved or seem like they might be the wrong > level of nesting :s ( > http://code.google.com/p/couchdb-lounge/wiki/SettingUpTwoCouchInstances) > > I'm using couch built from source in the svn trunk (from Friday) and am on > Ubuntu. Hi, It's definitely possible to run multiple couchdbs on one machine and almost everything can be shared if wanted. Exactly how you set things up really depends on how you want to run your server, but I've used the following to start up a new, disposable couchdb instance in a local directory for testing: 1. Create an empty directory; cd to it. 2. Create a 'data' directory in the current directory. 3. Create the couch.ini file below in the current directory. 4. Start couchdb using `/path/to/global/couchdb -a couch.ini`. --- start of couch.ini --- [couchdb] database_dir = ./data view_index_dir = ./data uri_file = couch.uri [httpd] port = 15984 [log] file = couch.log --- end of couch.ini --- That actually chains together the two default .ini files, as installed by couchdb, and the couch.ini in the current directory. You can use the -c arg to couchdb to see the full chain in case you want to customise the .ini chain at any level. Please note that the above should not be considered a "production" setup but hopefully it's enough to get you going. - Matt --0016e6506c644fb1e104a378ee77--