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 BDC14F129 for ; Tue, 7 May 2013 09:05:53 +0000 (UTC) Received: (qmail 39495 invoked by uid 500); 7 May 2013 09:05:52 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 39462 invoked by uid 500); 7 May 2013 09:05:51 -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 39443 invoked by uid 99); 7 May 2013 09:05:51 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 09:05:51 +0000 Received: from localhost (HELO mail-lb0-f175.google.com) (127.0.0.1) (smtp-auth username rnewson, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 May 2013 09:05:51 +0000 Received: by mail-lb0-f175.google.com with SMTP id w20so454917lbh.6 for ; Tue, 07 May 2013 02:05:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=WYn2ObB4glnjxNAjeyocBJAF5tWCKBG5UN5nbg76I4k=; b=nyRGHWH0ZXZfg9DUTHBQ5eiBZg9TF39uri1TSpGcsB0ggrC8OBBOsxflp+aaoghbEg NiMtLCoJBKbodDo2BY03RKd0wUX+HnOeBG27tikqTuWLnTDieHalUm6KXAa/EIB7y6LL xgLM2qB6gxpabITwMvgrPbyvgzlN2jUD322uLUeYMuoUSbugNTdqelZrV5qsHdSUmzyd EQii/esD0clV6F4REq9061N3W2sp/sAGuQQBjnuIz1yPAHiQBG0AtuKJ3aARSbgo1G4T m/W5q/hXXiEBFamqgQHTyYCjN5ZrSoROT04ADue7EE50dE2tsOxwEvI0MNyg+63Tntve 7ajw== MIME-Version: 1.0 X-Received: by 10.152.4.163 with SMTP id l3mr518753lal.34.1367917549265; Tue, 07 May 2013 02:05:49 -0700 (PDT) Received: by 10.112.210.66 with HTTP; Tue, 7 May 2013 02:05:49 -0700 (PDT) In-Reply-To: <4452E2B7937E5944BDA554F6A6D5EB361A5A2316@ABN-EXCH1A.green.sophos> References: <4452E2B7937E5944BDA554F6A6D5EB361A5A2293@ABN-EXCH1A.green.sophos> <4452E2B7937E5944BDA554F6A6D5EB361A5A2316@ABN-EXCH1A.green.sophos> Date: Tue, 7 May 2013 10:05:49 +0100 Message-ID: Subject: Re: Erlang view timeout From: Robert Newson To: "user@couchdb.apache.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ah, sorry. Reading couch_native_process.erl it seems you can't set that timeout 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.