Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8F872200BD0 for ; Wed, 30 Nov 2016 15:53:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 8E259160B08; Wed, 30 Nov 2016 14:53:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D6128160B13 for ; Wed, 30 Nov 2016 15:53:43 +0100 (CET) Received: (qmail 5458 invoked by uid 500); 30 Nov 2016 14:53:42 -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 5337 invoked by uid 99); 30 Nov 2016 14:53:42 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Nov 2016 14:53:42 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EFD4FC09A1 for ; Wed, 30 Nov 2016 14:53:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.18 X-Spam-Level: * X-Spam-Status: No, score=1.18 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id v_-Yaf5h4AqK for ; Wed, 30 Nov 2016 14:53:39 +0000 (UTC) Received: from mail-qt0-f180.google.com (mail-qt0-f180.google.com [209.85.216.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 892CC5F39C for ; Wed, 30 Nov 2016 14:53:38 +0000 (UTC) Received: by mail-qt0-f180.google.com with SMTP id w33so189607921qtc.3 for ; Wed, 30 Nov 2016 06:53:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=XOaEZavtwluQKus+y9TvXMF07xX3/J1WUXwGFPrDcqM=; b=FWyNi59tzeRl62n+GHzvOzIlgvsvKAtYN5cywgvvx7qeamxNXGCkBs/R/4vgc3r7dm 0TuKH5lApapX/seTT1UOPSzJA0omud8oJhriUkHHJU9/0CNBso1TRPtPSJLNvGeaYZhO niyg94p3/N6znP8U/s/EHdEsV4PU+W4aw/woQWejcTnzGsNpLyJFZZnqtnEnotV5f7xM QZOo0qo/t70RznNzjVNpfoKzr89DkbezTYNn7zFF4v9TTHbrbe36Dolu1rtOljqr/ZxL w13+EJJKzqnb1xuWUhbhsg64LUvVQcBZB0z0DAw0f5+h008suHbx+vT1xz+2CjWIygeB maOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XOaEZavtwluQKus+y9TvXMF07xX3/J1WUXwGFPrDcqM=; b=jYz4lawqQH3eSONG5I7sr0kgYGn7q9uAtUfxZGKIBW6+5pANRviR5LV7gJlt90L4h/ khWBh8dffEaFnYr8ZEyjtbK+66M8BH2wK/ltV3kq0WRVbiV851UnrEbYU7iHCj1PsI8D 48NGDT1OKeOgMQMnVEDbEOiLsKIpDNqmk4T9QOpyGZ2M/6+N7R7xuKxGme+318TjKZfv UAJH1e3JnJ5qSBUkSEW+4KLvoV9lqBZf2IkPtGdshOK0B3uDM2LHUcoAzYQbbvFuiXcJ mgWFNKIPCOTzF0KsgzYT3DfHDhFRX/wZ6LWDbatBi64G48o0irIYwomHcHegRNuKQZ39 QPkw== X-Gm-Message-State: AKaTC00k7sIoFDuaxlhDcemOUFqs/KObfwXETd1qGx8CoVUsHMnZ1KMgXAoV8ew8akXzEan3I+ii5v3LOZMGbQ== X-Received: by 10.200.52.123 with SMTP id v56mr32109875qtb.198.1480517524254; Wed, 30 Nov 2016 06:52:04 -0800 (PST) MIME-Version: 1.0 From: Daniel Holth Date: Wed, 30 Nov 2016 14:51:53 +0000 Message-ID: Subject: CouchDB 2.0 notes To: "user@couchdb.apache.org" Content-Type: multipart/alternative; boundary=001a113ad8c61df747054285d9a4 archived-at: Wed, 30 Nov 2016 14:53:44 -0000 --001a113ad8c61df747054285d9a4 Content-Type: text/plain; charset=UTF-8 I've been using CouchDB 2 in production with a patch to unconditionally enable proxy authentication, using a single node with sharding per a default klaemo docker-couchdb setup. I was using a single 1.6 node and am not ready to maintain two additional servers. Here are my notes. I need CouchDB 2 because it supports faster replication to PouchDB. This works very well. Replications between 1.6 and 2.0 also work well. Not able to run as many concurrent filtered replications. CouchDB 2.0 doesn't seem to be able to support as many filtered replications, or run as many couchjs servers as CouchDB 1.6, even though it's configured for an unlimited number of open files. Maybe this is because it is talking to several underlying databases? If the max number of couchjs servers is configured to be more than perhaps 100, CouchDB doesn't even start any. When enough replications fail, it gets into a state where the server must be completely restarted. Mango works. Filtered replications with Mango seem to be (much) faster than with couchjs. To solve the concurrent replication performance problem, like others before me, I'm no longer running continuous replications. Instead, a script watches _global_changes, and does one-shot, Mango-filtered replications to the collector database whenever a per-user database changes. Each 'catchup' replication takes about a second. This seems to work very well. _purge is not implemented on the cluster web interface. http://docs.couchdb.org/en/2.0.0/api/database/misc.html#db-purge The new CouchDB web interface assumes everything is under /, but my CouchDB is reverse proxied into a subfolder, so I have to bypass the proxy to use Fauxton. Thanks. --001a113ad8c61df747054285d9a4--