Sun Java System Communications Express 6.3 管理指南

Communications Express 中的 LDAP 故障转移机制

本节介绍了如何设置和配置 LDAP 池以及设置 LDAP 连接来提高 Communications Express 的效率。一些 Communications Express 组件需要连接到 LDAP 服务器来检索和管理信息。如果登录的用户非常多,则与 LDAP 服务器建立连接及从中检索信息可能会需要很长时间。如果创建了 Communications Express 可以使用的 LDAP 连接池,则可以缩短建立连接及检索信息的周转时间。

在典型的 Communications Express 生产环境中,可以采用 LDAP 负载平衡和故障转移机制。其中,一台 LDAP 服务器(称为主服务器)负责检索信息,另外一组服务器(称为故障转移服务器)在出现故障(即主服务器出现故障)时使用。这样,可以避免出现单一故障点。

Communications Express 包含一个 LDAP 故障转移管理器模块,它负责从主服务器或从属服务器中检索连接。每个负载平衡服务器都维护一个可用空闲连接池。每当 Communications Express 组件需要连接到 LDAP 服务器时,LDAP 故障转移管理器就会为该组件提供 LDAP 连接池中的连接。

Procedure针对 LDAP 故障转移配置 Communications Express

要配置 Communications Express 以创建 LDAP 故障转移管理器,需要在 uwcauth.properties 文件中设置一些参数。

  1. 转到 uwc-deploy-path/WEB-INF/config/ 目录。

  2. 编辑 uwcauth.properties 文件并设置以下参数。

    • ldapusersession.ldapport:将此参数设置为 LDAP 服务器使用的端口。

    • ldapusersession.ldaphost:将此参数设置为 LDAP 服务器名称的 LDAP 主机列表。这可以是用逗号分隔的列表。如果 LDAP 服务器使用的是非默认端口,可以用逗号指定该项。例如,host1, host2:1290, host3, host4:2546。其中,host1host3 使用的是默认端口,而 host2host4 使用的是非默认端口。

  3. 重新启动在其中部署 Communications Express 的 Web 容器。