Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 52436 invoked from network); 7 Jul 2010 11:35:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Jul 2010 11:35:00 -0000 Received: (qmail 63517 invoked by uid 500); 7 Jul 2010 11:34:59 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 63196 invoked by uid 500); 7 Jul 2010 11:34:57 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 63187 invoked by uid 99); 7 Jul 2010 11:34:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jul 2010 11:34:56 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [80.244.253.218] (HELO mail.traeumt.net) (80.244.253.218) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jul 2010 11:34:47 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.traeumt.net (Postfix) with ESMTP id 157281B56E for ; Wed, 7 Jul 2010 13:33:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.g3th.net Received: from unknown by localhost (amavisd-new, unix socket) id zlImyAn41-gP for ; Wed, 7 Jul 2010 13:33:54 +0200 (CEST) Received: from dahlia.local (62-220-4-154.berlikomm.net [62.220.4.154]) (authenticated) by mail.traeumt.net (amavisd-milter) (authenticated as web50m1); Wed, 7 Jul 2010 13:33:54 +0200 (CEST) (envelope-from ) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Apple Message framework v1081) Subject: Re: delayed_commits false From: Jan Lehnardt In-Reply-To: <4C33B24E.8050109@gmail.com> Date: Wed, 7 Jul 2010 13:33:53 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <39130BF2-1000-4F7E-B01B-7564B9C34BDD@apache.org> References: <4C31FF1A.30002@gmail.com> <4C33B24E.8050109@gmail.com> To: dev@couchdb.apache.org X-Mailer: Apple Mail (2.1081) X-Virus-Checked: Checked by ClamAV on apache.org On 7 Jul 2010, at 00:46, Volker Mische wrote: > On 07.07.2010 00:06, Damien Katz wrote: >>=20 >> On Jul 5, 2010, at 8:49 AM, Volker Mische wrote: >>=20 >>> Hi All, >>>=20 >>> delayed_commits were enabled to have better performance especially = for single writers. The price you pay for is that you potentially lose = up to one second of writes in case of a crash. >>>=20 >>> Such a setting makes sense, though in my opinion it shouldn't be = enabled by default. I expect* that people running into performance = issues at least take a look at the README or a FAQ section somewhere. = There the delayed_commit setting could be pointed out. >>>=20 >>> I'd like to be able to say that on a vanilla CouchDB it's hard to = lose data, but I can't atm. I'm also well aware that there will be = plenty of performance tests when 1.0 is released and people will = complain (if delayed_commits would be set to false by default) that it = is horrible slow. Though safety of the data is more important for me. >>>=20 >>> If the only reason why delayed_commits is true by default are the = performance tests of some noobs, I really don't think it's a price worth = paying. >>>=20 >>> *I know that in reality people don't >>>=20 >>> I would like to see delayed_commits=3Dfalse for 1.0 >>=20 >> Last year we turned off delayed commits by default. We got lots of = complaints, the performance impact was too great. So we switched it = back. We aren't the first storage engine to go around on this. For = example, Apple's core data switched to using full fsyncs for each write = in 10.4, but then switched it back for 10.5: >>=20 >> = http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Core= Data/Articles/cdPersistentStores.html >>=20 >> "Important: The default behaviors in Mac OS X v10.4 an 10.5 are = different. In Mac OS X v10.4, SQLite uses FULL_FSYNC by default; in Mac = OS X v10.5 it does not." >>=20 >> Anyway, we can improve the documentation warning's, etc, but we = should stay with the current defaults. >>=20 >> -Damien >>=20 >=20 > As 1.0 is approaching fast, I think this discussion is pretty = important. Especially this thread showed that there are people that = prefer setting delayed_commits to false. Although sometimes someone has = to make the last call, and there is probably no one better than the = creator of the project, I think it this case the decision should be made = by more people. >=20 > For *me personally* the authority of Apache CouchDB are the = committers. I would love to see them vote on this topic (being it public = or private doesn't matter). (just clarifying procedure) By Apache policy, every voice on dev@ needs to be considered. The final = call for a release (the release vote) is up to the Project=92s = Management Committee (PMC) which is Damien, Noah, J Chris, Christopher = and myself. Cheers Jan --=20