Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 5153 invoked from network); 3 Apr 2008 14:42:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2008 14:42:08 -0000 Received: (qmail 84832 invoked by uid 500); 3 Apr 2008 14:42:09 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 84697 invoked by uid 500); 3 Apr 2008 14:42:08 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 84685 invoked by uid 99); 3 Apr 2008 14:42:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 07:42:08 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 72.14.220.152 as permitted sender) Received: from [72.14.220.152] (HELO fg-out-1718.google.com) (72.14.220.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Apr 2008 14:41:25 +0000 Received: by fg-out-1718.google.com with SMTP id e12so2817114fga.3 for ; Thu, 03 Apr 2008 07:41:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; bh=/WTMWrhKKl9RK22a/F1S5CXbtL+0nP30VwkUslyc2Pc=; b=atGMjG0gh08uQrczoBNw/rAa/kX6SckT2SqA+WknFZj6oPeN7S5PrKvGhRXay2VDPycEFmWKePW5Qy49t65a0/n2HKdYE6YaCL5ZvlGXGw1n27KMiSeE2OU9sM/c3eUyONWnP6mP55aJAMbzc5A+Xwps03BStoQfXIUHewg+blU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=Rygfz9TILQaUCUP81FC4Y6aCzQFlC2W7m/OFmI2wJdL6XB68XZGVxwc3I3MgtSzhT9FlLDParYDHKaBPeR3KugD0018+k+BJOw2ZgnVcXKNHbDoMYPwaI3j133DU+wiQuXcIkOObc8QTzrH4gW5MfekoTeM44mMKGe2Wv2dCRuA= Received: by 10.82.186.19 with SMTP id j19mr27403775buf.2.1207233695875; Thu, 03 Apr 2008 07:41:35 -0700 (PDT) Received: from ?192.168.1.5? ( [82.245.116.110]) by mx.google.com with ESMTPS id d4sm2122207fga.2.2008.04.03.07.41.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Apr 2008 07:41:35 -0700 (PDT) Message-ID: <47F4EC61.4000801@gmail.com> Date: Thu, 03 Apr 2008 16:40:33 +0200 From: Emmanuel Lecharny User-Agent: Thunderbird 1.5.0.14ubu (X11/20080306) MIME-Version: 1.0 To: users@directory.apache.org Subject: Re: Performance : ApacheDS and web applications References: <000001c89595$87510a00$0202a8c0@SPACESTATION> In-Reply-To: <000001c89595$87510a00$0202a8c0@SPACESTATION> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Wim V wrote: > Hi, > Hi, Let's try to give you some answer, assuming that there are not absolute, as they will depend on many different factors, including the server you will use... > > I want to use apachDS for user persistence in a web application. > How is the performance of apache DS (embedded or not) in the following > situation, which can exist if users are allowed to "register themselves" in > the directory : > > - Large number of users (inetOrgPerson) in all in one ou (f.e. users) > - rdn consist of only one attribute, which is uid > > Let's say I have 1.000.000 users or more and they all live in > ou=sales, ou=css, ou=users, dc=theonlinecompany, dc=com > with a dn like > uid=tomsr19878, ou=sales, ou=css, ou=users, dc=theonlinecompany, dc=com > (unless they are promoted) > Ok, Typically what we are using when we do some performance tests using MakeLdif and Slamd. > A badly structured tree, that is. > Well, not that much. I would say, a typical LDAP tree. > > More specifically my questions are these : > > - What is performance in terms of lookup (number/second) of credentials and > authorities/group memberships? > Depends. We have reached 12 000 random search requests per second on a 16 way CPU, on a server loaded with 4 million entries. You can have better performance using the server embedded, as you won't have the network layer, which is quite costly (no more network latency, no more ASN.1 BER encoding/decoding). I would say you may gain 30% more in this case. > - What is application performance in the given situation related to using > the classic backend : > - Database server > - 3 tables : users, groups (or units) and authorities > - All 3 tables indexed. > No idea. Never tested it... > - How does this situation affect performance of lookups in other units of > the same directory? > Depends on what you store in the other partitions. The main issue is the cache : you can affect some cache to each partition, so if you define a partition specifically for your need, the impact on the other partitions would be noticable, but limited. > - Does apache support indexing of units (or something else maybe?) > (Was apacheDS in some way designed keeping this in mind?) > What do you mean by "indexing of units" ? Can you define what you call a "unit" ? ADS is using BTrees internally, which is a well known O(log2(N)) structure, FYI. You can set index on each attribute, if needed. > - Did anyone practically test ApacheDS in these conditions yet? > yes, as I said, the last time we did such tests was one month ago, with 4 millions entries, and doing a random lookup on the server. > What were the results? > 12 000 search/s, returning the full entry (with all the non-operational attributes). > > Thanks to everyone for all comments. > Hope it helps. -- -- cordialement, regards, Emmanuel L�charny www.iktek.com directory.apache.org