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 721AE1008C for ; Tue, 7 May 2013 09:28:49 +0000 (UTC) Received: (qmail 58080 invoked by uid 500); 7 May 2013 09:28:48 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 57956 invoked by uid 500); 7 May 2013 09:28:47 -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 57919 invoked by uid 99); 7 May 2013 09:28:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 09:28:46 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.hirst@sophos.com designates 145.253.124.138 as permitted sender) Received: from [145.253.124.138] (HELO mx2.sophos.com) (145.253.124.138) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 09:28:42 +0000 Received: from mx2.sophos.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 1642F18801C for ; Tue, 7 May 2013 10:28:20 +0100 (BST) Received: from abn-exch1b.green.sophos (abn-exch1b.green.sophos [10.100.70.62]) by mx2.sophos.com (Postfix) with ESMTPS id B452D188012 for ; Tue, 7 May 2013 10:27:38 +0100 (BST) Received: from ABN-EXCH1A.green.sophos ([fe80::67:3150:dacd:910d]) by abn-exch1b.green.sophos ([fe80::dc96:facf:3d2c:c352%16]) with mapi id 14.02.0342.003; Tue, 7 May 2013 10:27:37 +0100 From: Paul Hirst To: "user@couchdb.apache.org" Subject: RE: Erlang view timeout Thread-Topic: Erlang view timeout Thread-Index: Ac5K/FAhJKqkN8veR5OK9vtZtfUvFP//86yA///rz0CAABtDgP//6hEw Date: Tue, 7 May 2013 09:27:36 +0000 Message-ID: <4452E2B7937E5944BDA554F6A6D5EB361A5A2362@ABN-EXCH1A.green.sophos> References: <4452E2B7937E5944BDA554F6A6D5EB361A5A2293@ABN-EXCH1A.green.sophos> <4452E2B7937E5944BDA554F6A6D5EB361A5A2316@ABN-EXCH1A.green.sophos> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.101.100.178] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sophos.com; h=from:to:subject:date:message-id:references:in-reply-to:content-type:content-transfer-encoding:mime-version; s=global; bh=b1VTUF1yYrRbRUzdgGwSNUiUDEiGojQK4bF5rSAymXU=; b=NnlweBgPF9U6IFyFnNou+fPal4kQUxN843uQAQKyFAGSrvpOq28Qux/y5D7p71wtxS6givCb6whQOzE9dQTVbxeZKIpijXaBCHqBjJiOkU8AkS+UAGgXLxywIJznV0Sb4Q8Anoi4sphLm5SIy3Hflj4OH/KgqcsJhNNQ/uyGQpQ= X-Virus-Checked: Checked by ClamAV on apache.org The one document which is causing me trouble contains ~400k entries in an a= rray and I want to do an emit for each row. So it's a bit silly really. It = just worked when I had <100k entries but I've clearly pushed it too far. I think I'll look into splitting my documents up. That's probably a more su= stainable approach, but if I could have tweaked the timeout it would have b= een a nice quick fix for the moment. -----Original Message----- From: Robert Newson [mailto:rnewson@apache.org] Sent: 07 May 2013 10:06 To: user@couchdb.apache.org Subject: Re: Erlang view timeout Ah, sorry. Reading couch_native_process.erl it seems you can't set that tim= eout without a remote shell. How big are these documents? On 7 May 2013 09:57, Paul Hirst wrote: > I tried that but it didn't seem to help. The indexing process stays on th= e status page in futon for about 7 seconds after I trigger the view and the= n disappears again without successfully completing, so I assumed changing t= hat setting wasn't affecting the erlang view timeout (os_process_timeout ra= ther sounded like an external process kind of thing only). > > I'll try setting it even larger (I went for 50000) but maybe I just need = to reduce the size of my documents somewhat. > > Thanks. > > -----Original Message----- > From: Robert Newson [mailto:rnewson@apache.org] > Sent: 07 May 2013 09:41 > To: user@couchdb.apache.org > Subject: Re: Erlang view timeout > > [couchdb] > os_process_timeout =3D 5000 > > so curl -XPUT localhost:5984/_config/couchdb/os_process_timeout -d '"3000= 0"' will boost to 30s. > > B. > > On 7 May 2013 09:30, Paul Hirst wrote: >> I decided to rewrite some of my javascript views in Erlang to get a bit = more performance and hopefully avoid some problems I was seeing with huge d= ocuments. However I'm running into timeout problems. >> >> In the log I get this shortly after trying to query the view: >> >> ** Reason for termination =3D=3D >> ** {timeout,{gen_server,call, >> [<0.1905.0>, >> {prompt,[<<"map_doc">>, >> {[{<<"_id">>, >> >> I get the impression from reading the source that erlang views might >> have a default timeout of 5 seconds (presumably per document?). I'm >> mostly guessing based on the line >> >> -record(evstate, {ddocs, funs=3D[], query_config=3D[], list_pid=3Dnil, t= imeout=3D5000}). >> >> Near the top of couch_native_process.erl >> >> I couldn't see anything in the configuration which would obviously let m= e change this. Does anyone have any ideas? >> Thanks. >> >> Paul >> >> ________________________________ >> >> Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP,= United Kingdom. >> Company Reg No 2096520. VAT Reg No GB 991 2418 08. > > ________________________________ > > Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, = United Kingdom. > Company Reg No 2096520. VAT Reg No GB 991 2418 08. ________________________________ Sophos Limited, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, Un= ited Kingdom. Company Reg No 2096520. VAT Reg No GB 991 2418 08.