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 4E026182B7 for ; Tue, 13 Oct 2015 11:41:47 +0000 (UTC) Received: (qmail 83608 invoked by uid 500); 13 Oct 2015 11:41:43 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 83536 invoked by uid 500); 13 Oct 2015 11:41:43 -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 83525 invoked by uid 99); 13 Oct 2015 11:41:43 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Oct 2015 11:41:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DF18DC5B08 for ; Tue, 13 Oct 2015 11:41:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.739 X-Spam-Level: *** X-Spam-Status: No, score=3.739 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_INFOUSMEBIZ=0.75, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 3x6uY2V5JA_i for ; Tue, 13 Oct 2015 11:41:34 +0000 (UTC) Received: from open-net.biz (open-net.biz [188.138.38.206]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 7C7CA204D9 for ; Tue, 13 Oct 2015 11:41:33 +0000 (UTC) Received: from [88.87.6.162] (port=4540 helo=[192.168.69.106]) by teddy.icnhost.net with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.85) (envelope-from ) id 1ZlxxN-0000PC-La for user@couchdb.apache.org; Tue, 13 Oct 2015 13:41:25 +0200 Subject: Re: High CPU when changing / adding view To: user@couchdb.apache.org References: <5617EE54.5010004@open-net.biz> <3A02D120-7C5D-4A8F-8F6E-F973609251C4@googlemail.com> From: Kiril Stankov Message-ID: <561CED50.20508@open-net.biz> Date: Tue, 13 Oct 2015 14:38:56 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------070407020606030508040103" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - teddy.icnhost.net X-AntiAbuse: Original Domain - couchdb.apache.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - open-net.biz X-Get-Message-Sender-Via: teddy.icnhost.net: authenticated_id: kiril@open-net.biz --------------070407020606030508040103 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I would ask a "silly" question, if it wasn't a problem. Yes, the overall performance of the machine is affected - another code also runs on the same machine. During the view update, it gets so slow, that I'm getting timeout on http connections. ------------------------------------------------------------------------ *With best regards,* Kiril Stankov On 09-Oct-15 10:04 PM, Kyle Snavely wrote: > Silly question -- is the CPU consumption affecting the rest of the machine, > or is it simply free for CouchDB to use? How does load average look during > the high CPU consumption? > > - Kyle > > On Fri, Oct 9, 2015 at 2:41 PM, Andrey Kuprianov < > andrey.kouprianov@gmail.com> wrote: > >> It would help, but views would build slower tho >> >> On Sat, Oct 10, 2015 at 12:10 AM, Sebastian Rothbucher < >> sebastianrothbucher@googlemail.com> wrote: >> >>> Hi, >>> >>> You could renice it but i'm not sure it would help - worth a try though >>> >>> Sebastian >>> >>> Von meinem iPhone gesendet >>> >>>> Am 09.10.2015 um 18:41 schrieb Kiril Stankov : >>>> >>>> Hi all, >>>> >>>> I have already ~ 50000 docs in one db. >>>> Their structure is pretty simple. >>>> When I add or modify a view, Couchdb eats 80-90% CPU and becomes very >>> slow to answer requests. >>>> Though it takes ~ 2 min to build the views, it is a point of concern, >> as >>> I expect this DB to grow to millions of documents. >>>> I don't mind if it'd take more time to build/update the view, but is >>> there a way to limit the CPU this process will take? >>>> Thanks in advance! >>>> >>>> >> ------------------------------------------------------------------------ >>>> *With best regards,* >>>> Kiril Stankov --------------070407020606030508040103--