本部分介绍了可以对 Directory Server 进行哪些调节以提高性能。
要提高 Calendar Server 访问 LDAP Directory Server 时的 Communications Express 性能,请为以下 LDAP 属性编制索引:
icsCalendar。此属性用于搜索日历用户或资源的默认日历。将索引类型指定为存在 (pres)、等式 (eq) 或子串 (sub)。
icsCalendarOwned。此属性用于在启用了 LDAP CLD 插件时搜索订阅操作。将索引类型指定为存在 (pres)、等式 (eq) 和子串 (sub)。
comm_dssetup.pl 脚本为 icsCalendar、icsCalendarOwned、mail 和 mailAlternateAddress 属性添加索引。
为了正确完成搜索,用户/组 LDAP Directory Server 配置中的 nsSizeLimit 和 nsLookthroughLimit 参数应该足够大,这一点非常重要。
要确定是否为这些参数设置了适当的值,请键入以下命令:
ldapsearch -b /base/ (&(icscalendarowned=*/user/*)(objectclass=icsCalendarUser))
其中
/base/ 是 Calendar Server 的用户和资源数据所在的 Directory Server 的 LDAP 基本 DN。
/user/ 是最终用户在“日历搜索”对话框中可以输入的值,该对话框位于 Communications Express 中的“订阅”选项下。
如果 nsSizeLimit 或 nsLookthroughLimit 参数不够大,LDAP 服务器就会返回一个错误。
请按照以下原则重置 nsSizeLimit 或 nsLookthroughLimit 参数:
确保 nsSizeLimit 参数的值足够大,以返回所需的全部结果;否则数据可能会被截断,而不显示任何结果。
确保 nsLookthroughLimit 参数的值足够大,以完成 LDAP 目录中所有用户和资源的搜索。如果可能,将 nsLookthroughLimit 设置为 -1。通过执行此操作,可以为 nsLookthroughLimit 排除一切搜索限制。