[TDS learning Document 6] sets the server

Source: Internet
Author: User

Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/

1. Change the server port and enable language label features
Check whether the language Tag feature is enabled:
Idsldapsearch-B ""-S base objectclass = * IBM-enabledcapabilities
If OID 1.3.6.1.4.1.4203.1.5.4 is returned, this feature is enabled.
If you specify a non-default port and enable the Language Label feature:
Idsldapmodify-D-w-I
Filename is like:
Changetype: Modify
Replace: IBM-slapdport
IBM-slapdport: 399
-
Replace: IBM-slapdsecureport
IBM-slapdsecureport: 699
DN: Cn = directory, Cn = rdbm backends, Cn = IBM directory, Cn = schemas, Cn = Configuration
Replace: IBM-slapdlanguagetagsenabled
IBM-slapdlanguagetagsenabled: True
You can dynamically enable or disable Language tags without restarting the server.
2. Set Performance
You can change search restrictions and connection settings to improve performance.
Idsldapmodify-D-w-I
Filename is like:
DN: Cn = directory, Cn = rdbm backends, Cn = IBM directory, Cn = schemas, Cn = Configuration
Changetype: Modify
Replace: IBM-slapddbconnections
IBM-slapddbconnections: 15
-
Replace: IBM-slapdrepldbconns
IBM-slapdrepldbconns: 4
3. Set the minimum ulimits
This is very important for the server to run smoothly. at startup, the Directory Server verifies that the value of the current ulimit option is greater than or equal to the value specified in the configuration file, if not, the server sets the value of the current process to the value of the ulimit option.
Ldapmodify-D-w-I
Filename is like:
DN: Cn = ulimits, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdulimitvirtualmemory
IBM-slapdulimitvirtualmemory:
4. Search Settings:
You can set parameters to control the user's search capacity, such as page search or sorted search.
Idsldapmodify-D-w-I
DN: Cn = Configuration
Changetype: Modify
Replace: IBM-slapdtimelimit
IBM-slapdtimelimit: 900
-
Replace: IBM-slapdderefaliases
IBM-slapdderefaliases: {never | find | search | always}
-
Replace: IBM-slapdsizelimit
IBM-slapdsizelimit: 500
DN: Cn = directory, Cn = rdbm backends, Cn = IBM directory, Cn = schemas, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdpagedresallownonadmin
IBM-slapdpagedresallownonadmin: false
-
Replace: IBM-slapdpagedreslmt
IBM-slapdpagedreslmt: 3
-
Replace: IBM-slapdsortkeylimit
IBM-slapdsortkeylimit: 3
-
Replace: IBM-slapdsortsrchallownonadmin
IBM-slapdsortsrchallownonadmin: false
DN: Cn = front end, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdidletimeout
IBM-slapdidletimeout: 300
DN: Cn = virtuallistview, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdvlvenabled
IBM-slapdvlvenabled:
-
Replace IBM-slapdmaxvlvbeforecount
IBM-slapdmaxvlvbeforecount:
DN: Cn = persistent search, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdenablepersistentsearch
IBM-slapdenablepersistentsearch: True
-
Replace: IBM-slapdmaxpersistentsearches
IBM-slapdmaxpersistentsearches:
5. Event reminder settings
Enable:
Idsldapmodify-D-w-I
DN: Cn = Event Notification, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdenableeventnotification
IBM-slapdenableeventnotification: True
-
Replace: IBM-slapdmaxeventsperconnection
IBM-slapdmaxeventsperconnection: 100
-
Replace: IBM-slapdmaxeventstotal
IBM-slapdmaxeventstotal: 0
After enabling the service, you must restart it to make it take effect. If you only change the settings, you do not need to restart.
Disable:
Idsldapmodify-D-w-I
DN: Cn = Event Notification, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdenableeventnotification
IBM-slapdenableeventnotification: false
To restart.
6. Handling Function Support
The handling process allows a program to update a group of portals simultaneously with one action.
Enable:
Idsldapmodify-D-w-I
DN: Cn = Transaction, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdtransactionenable
IBM-slapdtransactionenable: True
-
Replace: IBM-slapdmaxnumoftransactions
IBM-slapdmaxnumoftransactions: 20
-
Replace: IBM-slapdmaxoppertransaction
IBM-slapdmaxoppertransaction: 5
-
Replace: IBM-slapdmaxtimelimitoftransactions
Alibaba-slapdmaxtimelimitoftransactions: 300
Disable:
Idsldapmodify-D-w-I
DN: Cn = Transaction, Cn = Configuration
Changetype: Modify
Replace: IBM-slapdtransactionenable
IBM-slapdtransactionenable: false
7. Add a subscript for deletion:
A subscript suffixe defines a top entry of the local directory inheritance structure. This dn is also the DN of other entries in directory inheritance. Note: a specific entry that matches suffixe must be added to the directory.
Added: idscfgsuf-I-s
Delete: idsucfgsuf-I-s
8. Tombstone-entry for deleting records
With this function, you can place the entry to be deleted in the tombstone subtree, Cn = deleted objects, and then the attribute table will be updated, the deleted entry is added with an isdeleted attribute to indicate that the entry has been deleted.
Enable:
Idsldapmodify-D-w-F
DN: Cn = directory, Cn = rdbm backends, Cn = IBM directory, Cn = schemas, Cn = Configuration
IBM-slapdtombstoneenabled: True
Re-read the configuration file:
Idsldapexop-D-w-op readconfig-scope entire
Configure tombstone survival time:
Idsldapmodify-D-W
DN: Cn = directory, Cn = rdbm backends, Cn = IBM directory, Cn = schemas, Cn = Configuration
IBM-slapdtombstonelifetime:

Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.