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 50666CA87 for ; Fri, 1 Jun 2012 18:15:31 +0000 (UTC) Received: (qmail 74217 invoked by uid 500); 1 Jun 2012 18:15:29 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 74187 invoked by uid 500); 1 Jun 2012 18:15:29 -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 74179 invoked by uid 99); 1 Jun 2012 18:15:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 18:15:29 +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 (athena.apache.org: domain of dave@muse.net.nz designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vb0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2012 18:15:23 +0000 Received: by vbzb23 with SMTP id b23so1746388vbz.11 for ; Fri, 01 Jun 2012 11:15:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=muse.net.nz; s=google; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=8WQ035YONvGYu82ZCCg3wombsyFM+Sqn2vQESjs7+LY=; b=UqMRxzbKMgEc5bjDd65O6uVjO+SBLZIntzK4kZPM9DvvpDAIlJ9hfE/xBS03S2NtaB 22iIGhGR7Zmgo6QTKjnHvgwV934vTY1KlmEkMzyIZ1oN4UF9E+UAsan1/cqdh1M8NbN8 /mtF6hnRMMc53JgDjyQYvjDhDmp938/FhVsrI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding :x-gm-message-state; bh=8WQ035YONvGYu82ZCCg3wombsyFM+Sqn2vQESjs7+LY=; b=oCN0ezjCvv4pq+31VmB8gMKKaBl6DCOICOruf6pJrBMGTM5dLtLifQ54qAMY8bGveR NDWrsp8LfHPBF+/yRxcYd6IeuKkRxmemesIFcWVDA4Mum4+TbKy9NR3nXj50csEtDJC6 aHN2zbG/fTKUbCMd/NvE6Q484pV/oNuc3FlAALq7fqg+28spourmrAWwfJMlMVATHubG HzDMHdnWtVcPCsr6WB70XCKCGlb3C0nGrEnd6nTYJZNJUxk47ITckot+O21ncwQI44dV LmClCa2B7hpqwBhv4DS4F5CIQKkwhWb87zKkVYvc38X9xpuY4L0hakTNF36r04U8zyp0 U/qA== MIME-Version: 1.0 Received: by 10.220.214.148 with SMTP id ha20mr3540124vcb.5.1338574502470; Fri, 01 Jun 2012 11:15:02 -0700 (PDT) Received: by 10.52.107.233 with HTTP; Fri, 1 Jun 2012 11:15:02 -0700 (PDT) X-Originating-IP: [84.112.19.176] In-Reply-To: References: Date: Fri, 1 Jun 2012 20:15:02 +0200 Message-ID: Subject: Re: local.ini settings not taking precedence From: Dave Cottlehuber To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQlpStZYIsMZfsghfr150ZessyCCFEVslmh7VkrqHe8yXOZVusjvySFcMWY6yX1/OiSfEwic X-Virus-Checked: Checked by ClamAV on apache.org On 1 June 2012 17:09, Tim Tisdall wrote: > Maybe I'm missing something simple, but my understanding is that local.in= i > values should take precedence over values in default.ini . =A0However, I'= m > trying to set nodelay to true for the socket_options and that doesn't > appear to be working. Strictly speaking the ini file that's last in the chain takes precedence, a= nd its also the file that gets changes written to. You can see which ones are being used and in what order with $ couchdb -c /usr/local/etc/couchdb/default.ini /usr/local/etc/couchdb/local.ini > Here's what's in default.ini : > socket_options =3D [{keepalive, true}, {nodelay, false}] > > here's what's in local.ini: > socket_options =3D [{nodelay, true}] > > http://localhost:5984/_utils/config.html is reporting that socket_options > is equal to: > [{keepalive, true}, {nodelay, false}] > > > I've restarted the couchdb server multiple times since making the change, > but just noticed now that the change doesn't appear to have been made. = =A0I'm > using v1.2.0 A restart is not required, the erlang magic picks up the changed config for= you. If your config chain above doesn't raise warning bells, can you temporarily up the log level to debug, try this: COUCH=3Dhttp://admin:passwd@localhost:5984 curl -vXPUT $COUCH/_config/httpd/fake_key -d '"fake_value"' You should see something like this in your logs: [Fri, 01 Jun 2012 18:10:23 GMT] [debug] [<0.287.0>] 'PUT' /_config/httpd/fake_key {1,1} from "127.0.0.1" Headers: [{'Accept',"*/*"}, {'Authorization',"Basic YWRtaW46cFGSzc3dk"}, {'Content-Length',"12"}, {'Content-Type',"application/x-www-form-urlencoded"}, {'Host',"localhost:5984"}, {'User-Agent',"curl/7.21.4 (universal-apple-darwin11.0) libcurl/7.21.4 OpenSSL/0.9.8r zlib/1.2.5"}] [Fri, 01 Jun 2012 18:10:23 GMT] [debug] [<0.287.0>] OAuth Params: [] [Fri, 01 Jun 2012 18:10:23 GMT] [info] [<0.287.0>] 127.0.0.1 - - PUT /_config/httpd/fake_key 200 And you should be able to grep for fake_key if needed to see where it's being written to. In fact you can even use upping the log level as a check: curl -vXPUT $COUCH/_config/log/level -d '"debug"' and back to error curl -vXPUT $COUCH/_config/log/level -d '"error"' A+ Dave