20090219 performance monitoring tools for ldap - plembo/onemoretech GitHub Wiki

title: Performance Monitoring Tools for LDAP link: https://onemoretech.wordpress.com/2009/02/19/performance-monitoring-tools-for-ldap/ author: lembobro description: post_id: 373 created: 2009/02/19 22:29:12 created_gmt: 2009/02/19 22:29:12 comment_status: open post_name: performance-monitoring-tools-for-ldap status: publish post_type: post

Performance Monitoring Tools for LDAP

Just a few tools to note here today. All of these come by way of Kostas Kalevras’s blog.

Up first, an article about some tools from Prefetch Technologies.

The featured utility is ldap-stats.pl, which parses an OpenLDAP server log and analyzes what’s there.

Another tool linked by Kostas is Prefetch’s ldap-gather.pl, a script that collects performance data from the directory’s “cn=monitor” branch.

The Prefetch site also has an extensive article entitled Monitoring OpenLDAP server performance that highlights some additional tools and techniques whose usefulness can extend beyond the subject open source server. The one that caught my eye was ldap-ping.pl, a script that lets you do an LDAP protocol “ping” to measure latencies between clients and servers. Example output:

$ ldap-ping.pl -s ldap.prefetch.net -p 389 -d 10 Querying LDAP server ldap.prefetch.net:389 every 10 seconds (Ctrl-C to stop): Fri Nov 12 16:42:14 2004: new=0.025s, = bind=0.008s, search=0.067s, unbind=0.003s [local port=50377] [Normal Delay] Fri Nov 12 16:42:25 2004: new=0.011s, = bind=0.001s, search=0.015s, unbind=0.001s [local port=50378] [Normal Delay] Fri Nov 12 16:42:35 2004: new=0.010s, = bind=0.002s, search=0.015s, unbind=0.001s [local port=50379] [Normal Delay] Fri Nov 12 16:42:45 2004: new=0.009s, = bind=0.002s, search=0.015s, unbind=0.001s [local port=50380] [Normal Delay]

Another interesting post by Kostas is Using Directory Server Resource Kit to measure OpenLDAP performance. That’s the Sun Java Directory Resource Kit he’s referring to. The link provided here is to the documentation for the standalone v5.2 edition. For v6.x, “Directory Server Enterprise Edition”, the resource kit has been bundled with the server software and the doc integrated into the main product set. The advantage of this piece by Kostas is how well it points up what can be done with the included tools, particularly those that measure authentication and search rates, as well as the one that measures entry modification rates. None of these are as thorough as slamd, but as Kostas says, they are a lot less daunting to set up and use.

Copyright 2004-2019 Phil Lembo