Directory Proxy Server creates a dedicated connection to a data source if there have been no requests to or responses from the data source for a specified interval.
You can use DSCC to perform this task. For information, see Directory Service Control Center Interface and the DSCC online help.
Set the monitoring mode for the data source to proactive.
$ dpconf set-ldap-data-source-prop -h host -p port datasource monitoring-mode:proactive |
Configure the monitoring search request that is performed by Directory Proxy Server.
$ dpconf set-ldap-data-source-prop -h host -p port datasource \ monitoring-bind-timeout:timeout monitoring-entry-dn:dn \ monitoring-search-filter:filter monitoring-entry-timeout:timeout |
The following properties are used in the search request:
The length of time that Directory Proxy Server waits to establish a connection to the data source. By default, the value of this property is 5 seconds.
The DN of the target entry in the search request. By default, this property is the root DSE entry ("").
The search filter.
The length of time that Directory Proxy Server waits for the search response. By default, the value of this property is 5 seconds.
(Optional) Configure the proactive monitoring to bind as a specific user.
$ dpconf set-ldap-data-source-prop ldap-data-source \ monitoring-bind-dn:uid=user-id monitoring-bind-pwd-file:password-file |
Replace the user-id with a valid dn such as uid=bjensen,dc=example,dc=com and password-file with a path to the file containing password.
By default, the bind is performed as anonymous, that is, both the monitoring-bind-dn and monitoring-bind-pwd attributes are set to none.
Set the polling interval.
$ dpconf set-ldap-data-source-prop -h host -p port datasource \ down-monitoring-interval:interval |
If a connection is down, Directory Proxy Server polls the connection at this interval to detect its recovery. If the interval is not specified, the value of monitoring-interval is used.
(Optional) Configure the availability monitor to specify the number of times it will poll the connection when it is first detected as down.
$ dpconf set-ldap-data-source-prop -h host -p port datasource monitoring-retry-count:count |
Configure an alert to be sent when a data source is detected as offline or online, as described in Configuring Administrative Alerts for Directory Proxy Server.