Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 85178 invoked from network); 21 Oct 2010 17:26:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 21 Oct 2010 17:26:38 -0000 Received: (qmail 39763 invoked by uid 500); 21 Oct 2010 17:26:38 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 39702 invoked by uid 500); 21 Oct 2010 17:26:38 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 39693 invoked by uid 99); 21 Oct 2010 17:26:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Oct 2010 17:26:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Oct 2010 17:26:36 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9LHQGU2014040 for ; Thu, 21 Oct 2010 17:26:16 GMT Message-ID: <16316146.11671287681976224.JavaMail.jira@thor> Date: Thu, 21 Oct 2010 13:26:16 -0400 (EDT) From: "Adam Kocoloski (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-901) refactor os process management In-Reply-To: <25596145.464691285780352398.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/COUCHDB-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12923534#action_12923534 ] Adam Kocoloski commented on COUCHDB-901: ---------------------------------------- I suppose it would work to return the os process and re-acquire it after every iteration of do_maps or do_writes, but i'm sure reinitializing the OS proc every time will add significant delays to the indexing. > refactor os process management > ------------------------------ > > Key: COUCHDB-901 > URL: https://issues.apache.org/jira/browse/COUCHDB-901 > Project: CouchDB > Issue Type: Improvement > Components: Database Core > Affects Versions: 1.0.1 > Reporter: Adam Kocoloski > Fix For: 1.1 > > > Wanted to make sure this doesn't get forgotten in the planning for 1.1. Paul Davis and I independently refactored couch_query_servers. Paul's work is much more comprehensive and includes a switch to emonk: > http://github.com/davisp/couchdb/tree/emonk > The work I did is here > http://github.com/kocolosk/couchdb/tree/COUCHDB-901 > One feature not included in that branch is the ability to limit the number of OS processes. Should be simple to add if my work ends up being merged. I did the refactor because I was having problems with couch_query_servers "forgetting" about OS processes in BigCouch. One of the ets tables held by couch_query_servers would list thousands of processes (and in fact there were thousands of spawned couchjs), but another table would claim that only two were running. After digging through the code a while I became frustrated with all of the tracking of multiple ets tables and rewrote a server that used only one table. Other changes include > * ability to reuse an OS process when the client that requested it dies. > * better behavior under config changes - doesn't kill all query servers when [query_servers] or [native_query_servers] block changes -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.