You need to configure the weights of an attached data source in relation to the weights of any other attached data sources in the data source pool. Consider the weights of all of your attached data sources. If a data source has a weight of disabled for a type of operation, requests of that type are never sent to that data source. If a data source has a weight of 0 (zero), no requests are distributed to that data source unless all other data sources are unavailable. Therefore, data sources configured with a weight of 0 are used only when all other data sources are down.
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
View the list of data sources that are attached to the data source pool.
$ dpconf list-attached-ldap-data-sources -h host -p port pool-name |
View the properties of one of the attached data sources.
$ dpconf get-attached-ldap-data-source-prop pool-name \ attached-data-source-name |
The properties of an attached data source define the weight for each type of operation. The default weights of an attached data source are as follows:
add-weight : disabled bind-weight : disabled compare-weight : disabled delete-weight : disabled modify-dn-weight : disabled modify-weight : disabled search-weight : disabled |
Configure the weights of one of the attached data sources.
$ dpconf set-attached-ldap-data-source-prop -h host -p port pool-name \ attached-data-source-name add-weight:value \ bind-weight:value compare-weight:value delete-weight:value \ modify-dn-weight:value modify-weight:value search-weight:value |
Repeat Step 2 and Step 3 for the other attached data sources.
Compare the key parameters of the attached data sources.
$ dpconf list-attached-ldap-data-sources -h host -p port -v pool-name |
For example, a data source pool can contain data sources with the following weights:
$ dpconf list-attached-ldap-data-sources -h host1 -p 1389 -v myPool Name add-weight bind-weight compare-weight delete-weight modify-dn-weight modify-weight search-weight ---- ---------- ----------- -------------- ------------- ---------------- ------------- ------------- DS-1 disabled 3 disabled disabled disabled disabled disabled DS-2 2 2 2 2 2 2 2 DS-3 1 1 1 1 1 1 1 |