Following command will give you the exact record count under the given dn: {ou=subscribers,dc=mycompany,dc=com}
Script is using the virtual attribute called {numsubordinates}
sh /space/opends/OpenDS-2.2.0/bin/ldapsearch -h localhost -p 389 -D cn='Directory Manager' -w mycpassword -b "ou=subscribers,dc=mycompany,dc=com" -s base "objectclass=*" numsubordinates| grep "numsubordinates:"| cut -c "18-" > /space/.subscriberCount
Note: Output will be saved under /space/.subscriberCount file.Please customize it for yourself
Showing posts with label opends help. Show all posts
Showing posts with label opends help. Show all posts
Wednesday, March 3, 2010
Opends replication
[root@dual1 bin]# ./dsreplication enable --host1 192.168.241.179 --port1 4444 --bindDN1 "cn=Directory Manager" --bindPassword1 mypassword --replicationPort1 8989 --host2 192.168.241.195 --port2 4444 --bindDN2 "cn=Directory Manager" --bindPassword2 tneu34 --replicationPort2 8990 --adminUID admin --adminPassword mypassword --baseDN "dc=mycompany,dc=com" -X -n
[root@dual1 bin]# ./dsreplication initialize --baseDN "dc=mycompany,dc=com" --adminUID admin --adminPassword mypassword --hostSource 192.168.241.179 --portSource 4444 --hostDestination 192.168.241.195 --portDestination 4444 -X –n
After executing dsreplication initialize all entries under the given base db {dc=mycompany,dc=com} will be replicated to secondary ldap server.for 1.2G records it takes a few minutes {~3-5 min}
Commands are needed to be executed only primary ldap server.
[root@dual1 bin]# ./dsreplication initialize --baseDN "dc=mycompany,dc=com" --adminUID admin --adminPassword mypassword --hostSource 192.168.241.179 --portSource 4444 --hostDestination 192.168.241.195 --portDestination 4444 -X –n
After executing dsreplication initialize all entries under the given base db {dc=mycompany,dc=com} will be replicated to secondary ldap server.for 1.2G records it takes a few minutes {~3-5 min}
Commands are needed to be executed only primary ldap server.
Saturday, February 27, 2010
How To Tune Performance of OpenDS

Set the following JVM_ARGS in the file $OPENDS_INSTALL_DIR/config/java.properties for the start-ds command.
-Xms1536m -Xmx1536m -XX:NewSize=768m -XX:MaxNewSize=768m -XX:SurvivorRatio=5 -XX:TargetSurvivorRatio=90 -XX:MaxTenuringThreshold=12 -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+CMSIncrementalPacing -XX:+CMSParallelRemarkEnabled -XX:+UseParNewGC -XX:MaxPermSize=128m -XX:+UseTLAB -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -XX:+DisableExplicitGC -XX:+HeapDumpOnOutOfMemoryError
Also to prevent the OPENDS HIGH CPU USAGE problem you must enable the beackendDB (berkley JE Database) cache by using the following command.Note that this command can be used while system is running up and have load.Tested enough :)
[root@ochemw bin]# ./dsconfig -h localhost --port 4444 -D "cn=Directory Manager" -w password-X -n set-backend-prop --backend-name userRoot --set db-cache-percent:50
For the details and cache percentage calculations you can refer to the opends perf. tuning page.
Subscribe to:
Posts (Atom)