List Info

Thread: Re: Stress tool to FDS




Re: Stress tool to FDS
country flaguser name
Brazil
2007-02-16 06:46:56
Thank you,
Is's a good tool. I found another one too called Apache
JMeter. 

Best regards,
Renato.
> Renato Ribeiro da Silva wrote:
> > Is there any stress tool to FDS? I need to
simulate a large number of binds and searches in Directory.
> >
> > Thanks in advance,
> > Renato.
> >
> >
> > --
> > Fedora-directory-users mailing list
> > Fedora-directory-usersredhat.com
> > https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users
> >   
> Please take a look at
/opt/fedora-ds/shared/bin/{rsearch, ldclt} if they 
> meet your requirements.
> =====================================================
> Usage: rsearch -D binddn -w bindpw -s suffix -f filter
[options]
> -?       -- print Usage (this message)
> -H        -- print Usage (this message)
> -h host   -- ldap server host  (default: localhost)
> -p port   -- ldap server port  (default: 389)
> -S scope  -- search SCOPE [0,1,or 2]  (default: 2)
> -b        -- bind before every operation
> -u        -- don't unbind -- just close the connection
> -L        -- set linger -- connection discarded when
closed
> -N        -- No operation -- just bind (ignore mdc)
> -v        -- verbose
> -y        -- nodelay
> -q        -- quiet
> -l        -- logging
> -m        -- operaton: modify non-indexed attr
(description). -B required
> -M        -- operaton: modify indexed attr
(telephonenumber). -B required
> -d        -- operaton: delete. -B required
> -c        -- operaton: compare. -B required
> -i file   -- name file; used for the search filter
> -B file   -- [DN and] UID file (use '-B ?' to see the
format)
> -A attrs  -- list of attributes for search request
> -a file   -- list of attributes for search request in a
file
>           -- (use '-a ?' to see the format ; -a &
-A are mutually 
> exclusive)
> -n number -- (reserved for future use)
> -j number -- sample interval, in seconds  (default:
10)
> -t number -- threads  (default: 1)
> -T number -- Time limit, in seconds; cmd stops when
exceeds <number>
> -V        -- show running average
> -C num    -- take num samples, then stop
> -R num    -- drop connection & reconnect every num
searches
> -x        -- Use -B file for binding; ignored if -B is
not given
> =====================================================
> usage: ldclt [-qQvV] [-E <max errors>]
>              [-b <base DN>] [-h <host>] [-p
<port>] [-t <timeout>]
>              [-D <bind DN>] [-w <passwd>]
>              [-e <execParams>] [-a <max
pending>]
>              [-n <nb threads>] [-i <nb
times>] [-N <nb samples>]
>              [-I <err number>] [-T
<total>]
>              [-r <low> -R <high>]
>              [-f <filter>] [-s <scope>]
>              [-S <slave>] [-P<master
port>]
>              [-W <waitsec>] [-Z
<certfile>]
> 
>         This tool is a ldap client targetted to
validate the reliability of
>         the product under test under hard use.
> 
>         The valid options are:
>          -a  Asynchronous mode, with max pending
operations.
>          -b  Give the base DN to use. Default
"o=sun,c=us".
>          -D  Bind DN. See -w
>          -E  Max errors allowed.                  
Default 1000.
>          -e  Execution parameters:
>                 add         : ldap_add() entries.
>                 append      : append entries to the
genldif file.
>                 ascii       : ascii 7-bits strings.
>                 attreplace=name:mask    : replace
attribute of existing 
> entry.
>                 attrlist=name:name:name : specify list
of attribs to 
> retrieve
>                 attrsonly=0|1  : ldap_search()
parameter. Set 0 to read 
> values.
>                 bindeach    : ldap_bind() for each
operation.
>                 bindonly    : only bind/unbind, no
other operation is 
> performed.
>                 close       : will close() the fd,
rather than 
> ldap_unbind().
>                 cltcertname=name : name of the SSL
client certificate
>                 commoncounter    : all threads share
the same counter.
>                 counteach   : count each operation not
only successful ones.
>                 delete                : ldap_delete()
entries.
>                 dontsleeponserverdown : will loop very
fast if server down.
>                 emailPerson           :
objectclass=emailPerson (-e add 
> only).
>                 esearch               : exact search.
>                 genldif=filename      : generates a
ldif file
>                 imagesdir=path        : specify where
are the images.
>                 incr                  : incremental
values.
>                 inetOrgPerson         :
objectclass=inetOrgPerson (-e 
> add only).
>                 keydbfile=file        : filename of the
key database
>                 keydbpin=password     : password for
accessing the key 
> database
>                 noglobalstats         : don't print
periodical global 
> statistics
>                 noloop                : does not loop
the incremental 
> numbers.
>                 object=filename       : build object
from input file
>                 person                :
objectclass=person (-e add only).
>                 random                : random filters,
etc...
>                 randomattrlist=name:name:name : random
select attrib in 
> the list
>                 randombase             : random base
DN.
>                 randombaselow=value    : low value for
random generator.
>                 randombasehigh=value   : high value for
random generator.
>                 randombinddn           : random bind
DN.
>                 randombinddnfromfile=fine : retrieve
bind DN & passwd 
> from file
>                 randombinddnlow=value  : low value for
random generator.
>                 randombinddnhigh=value : high value for
random generator.
>                 rdn=attrname:value     : alternate for
-f.
>                 referral=on|off|rebind : change
referral behaviour.
>                 scalab01               : activates
scalab01 scenario.
>                 scalab01_cnxduration   : maximum
connection duration.
>                 scalab01_maxcnxnb      : modem pool
size.
>                 scalab01_wait          : sleep()
between 2 attempts to 
> connect.
>                 smoothshutdown         : main thread
waits till the 
> worker threads exit.
>                 string      : create random strings
rather than random 
> numbers.
>                 v2          : ldap v2.
>                 withnewparent : rename with newparent
specified as argument.
>          -f  Filter for searches.
>          -h  Host to connect.                     
Default "localhost".
>          -i  Number of times inactivity allowed.  
Default 3 (30 seconds)
>          -I  Ignore errors (cf. -E).              
Default none.
>          -n  Number of threads.                   
Default 10.
>          -N  Number of samples (10 seconds each). 
Default infinite.
>          -p  Server port.                         
Default 389.
>          -P  Master port (to check replication).  
Default 16000.
>          -q  Quiet mode. See option -I.
>          -Q  Super quiet mode.
>          -r  Range's low value.
>          -R  Range's high value.
>          -s  Scope. May be base, subtree or one.  
Default subtree.
>          -S  Slave to check.
>          -t  LDAP operations timeout. Default 30
seconds.
>          -T  Total number of operations per thread.    
   Default infinite.
>          -v  Verbose.
>          -V  Very verbose.
>          -w  Bind passwd. See -D.
>          -W  Wait between two operations.         
Default 0 seconds.
>          -Z  certfile. Turn on SSL and use certfile as
the certificate DB
> 
> 


--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users

Re: Stress tool to FDS
country flaguser name
United States
2007-02-16 11:05:25
On 02/16/2007 07:46 AM, Renato Ribeiro da Silva wrote:
> Thank you,
> Is's a good tool. I found another one too called Apache
JMeter. 

Renato,

If you're comfortable with the complexity of JMeter, you
might also have 
a look at slamd (http://slamd.com), which already
includes unit tests 
for LDAP.  In fact, it was originally designed for LDAP
stress-testing, 
so it might do a more thorough job than JMeter.

The big advantage slamd has over ldclt/rsearch (which are
quite handy, 
and shouldn't be overlooked), is that it can be used for
distributed 
load testing.

Enjoy,

-tt

-- 
Tom Throckmorton
OIT - CSI
Duke University

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-dir
ectory-users

Re: Stress tool to FDS
user name
2007-02-16 15:02:01
You can use JMETER for load testing as well. I have never tried slam D but I will tell you what i think its biggest benefit is
Another is the LDAPDecoder, which can operate as either a simple LDAP proxy or analyze tcpdump and snoop capture files to decode LDAP communication in human-readable form or even automatically generate SLAMD scripts based on the captured data so that the same communication can be automatically replayed or customized to simulate real-world directory-enabled applications
 
Let me tell you if you have every tried to go through ldap logs and pick out queries and try to design a stress test of your application you quickly determine you need an intern. Its a slow process.
 
I like the idea of recording real ldap traffic and then just playing it  back.
Edward
&nbsp;
On 2/16/07, Tom Throckmorton < throckduke.edu">throckduke.edu&gt; wrote:
On 02/16/2007 07:46 AM, Renato Ribeiro da Silva wrote:
>; Thank you,
> Is's a good tool. I found another one too called Apache JMeter.

Renato,

If you're comfortable with the complexity of JMeter, you might also have
a look at slamd (http://slamd.com), which already includes unit tests
for LDAP. ; In fact, it was originally designed for LDAP stress-testing,
so it might do a more thorough job than JMeter.

The big advantage slamd has over ldclt/rsearch (which are quite handy,
and shouldn9;t be overlooked), is that it can be used for distributed
load testing.

Enjoy,

-tt

--
Tom Throckmorton
OIT - CSI
Duke University

--
Fedora-directory-users mailing list
Fedora-directory-usersredhat.com">Fedora-directory-usersredhat.com
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )