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 1F87BF0F4 for ; Tue, 7 May 2013 08:58:27 +0000 (UTC) Received: (qmail 22844 invoked by uid 500); 7 May 2013 08:58:25 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22633 invoked by uid 500); 7 May 2013 08:58:25 -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 22611 invoked by uid 99); 7 May 2013 08:58:24 -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 08:58:24 +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 08:58:20 +0000 Received: from mx2.sophos.com (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 8603918800F for ; Tue, 7 May 2013 09:57:59 +0100 (BST) Received: from abn-exch1b.green.sophos (abn-exch1b.green.sophos [10.100.70.62]) by mx2.sophos.com (Postfix) with ESMTPS id 409A5188005 for ; Tue, 7 May 2013 09:57:59 +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 09:57:58 +0100 From: Paul Hirst To: "user@couchdb.apache.org" Subject: RE: Erlang view timeout Thread-Topic: Erlang view timeout Thread-Index: Ac5K/FAhJKqkN8veR5OK9vtZtfUvFP//86yA///rz0A= Date: Tue, 7 May 2013 08:57:57 +0000 Message-ID: <4452E2B7937E5944BDA554F6A6D5EB361A5A2316@ABN-EXCH1A.green.sophos> References: <4452E2B7937E5944BDA554F6A6D5EB361A5A2293@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=To3/GbqwhU1JVNgEdJhoXs8Fc/oseXkjYRE151ZSmSs=; b=jPU3vUdz4n9thbVxNEoveI9YYC8sgFPWYuuizwTvG8dwDX4l1a11SqRjuiMFBDEp8yB4sLxjJS4uOCjElZKssHeQMUq2n8CGqXGEaqI1K4Oo7NjlwitAfILPhLFuYfbYblYAOfXYgF5pZz5f9X3tIOJD3+eik8hwVMdcS4WoNhc= X-Virus-Checked: Checked by ClamAV on apache.org I tried that but it didn't seem to help. The indexing process stays on the = status page in futon for about 7 seconds after I trigger the view and then = disappears again without successfully completing, so I assumed changing tha= t setting wasn't affecting the erlang view timeout (os_process_timeout rath= er 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 '"30000"= ' 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 m= ore performance and hopefully avoid some problems I was seeing with huge do= cuments. 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, ti= meout=3D5000}). > > Near the top of couch_native_process.erl > > I couldn't see anything in the configuration which would obviously let me= 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, Un= ited Kingdom. Company Reg No 2096520. VAT Reg No GB 991 2418 08.