Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 92464 invoked from network); 24 Jun 2010 17:39:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Jun 2010 17:39:16 -0000 Received: (qmail 7031 invoked by uid 500); 24 Jun 2010 17:39:16 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 6762 invoked by uid 500); 24 Jun 2010 17:39:15 -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 6753 invoked by uid 99); 24 Jun 2010 17:39:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jun 2010 17:39:15 +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, 24 Jun 2010 17:39:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5OHcp3t017551 for ; Thu, 24 Jun 2010 17:38:51 GMT Message-ID: <33468959.42361277401131106.JavaMail.jira@thor> Date: Thu, 24 Jun 2010 13:38:51 -0400 (EDT) From: "Chris Anderson (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-807) authentication cache (user docs cache) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/COUCHDB-807?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882237#action_12882237 ] Chris Anderson commented on COUCHDB-807: ---------------------------------------- the users_db test is still failing for me: # Assertion failed: e.error == "unauthorized" # Assertion failed: /conflict/.test(e.reason) Is this related to this patch? Do we need to finish applying it? Chris > authentication cache (user docs cache) > -------------------------------------- > > Key: COUCHDB-807 > URL: https://issues.apache.org/jira/browse/COUCHDB-807 > Project: CouchDB > Issue Type: Improvement > Environment: trunk > Reporter: Filipe Manana > Assignee: Filipe Manana > Fix For: 1.0 > > Attachments: auth_cache.patch, auth_cache_2.patch > > > Currently, in order to authenticate an incoming request, each authentication handler will read a user doc from the _users DB. > By default, 3 authentication handlers are defined (default.ini), which means we can have 3 _users DB lookups (besides 3 DB open and close operations). > Taking into account that this is done for each incoming HTTP request, for very busy servers this current behaviour might be overkill. > The following patch adds a new gen_server which implements an authentication cache and keeps the _users DB open all the time, so that cache misses and refreshes are as quick as possible. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.