我目前在EC2的Ubuntu12.04上运行OpenLdap 2.4.31。在对ldap服务器执行ldapsearch或ldapadd命令时,我遇到了一个随机超时的问题。
ldap服务器确实没有负载,我将它们用于EC2内部主机名的名称解析,并使用ldap作为puppet的外部节点分类器。
当超时发生时,我得到以下错误:
LDAP (简单):无法联系ldap_sasl_bind服务器
如果我重新运行命令,它工作正常,这会导致我的自动化中出现一些问题(虽然我可以对此进行错误检查,但它一开始就发生了,这似乎很奇怪)。
这是我的slapd.conf的副本(有一些环境特定的信息被注释掉了),希望有人能对我在配置中遗漏的东西有一些建议,以防止超时问题:
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/core.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/collective.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/corba.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/cosine.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/duaconf.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/dyngroup.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/inetorgperson.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/java.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/misc.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/nis.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/openldap.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/ppolicy.schema
include /opt/openldap/openldap-2.4.31/etc/openldap/schema/puppet.schema
pidfile /opt/openldap/openldap-2.4.31/var/run/slapd.pid
argsfile /opt/openldap/openldap-2.4.31/var/run/slapd.args
loglevel 0
serverID 001
database bdb
suffix "dc=example,dc=local"
rootdn "cn=admin,dc=example,dc=local"
rootpw secret
directory /opt/openldap/openldap-2.4.31/var/openldap-data
idletimeout 120
timelimit 300
cachesize 2000
syncrepl rid=000
provider=ldap://10.10.10.10
type=refreshAndPersist
retry="5 5 10 +"
searchbase="dc=example,dc=local"
attrs="*,+"
bindmethod=simple
binddn="cn=admin,dc=example,dc=local"
credentials=secret
syncrepl rid=000
provider=ldap://10.10.10.20
type=refreshAndPersist
retry="5 5 10 +"
searchbase="dc=example,dc=local"
attrs="*,+"
bindmethod=simple
binddn="cn=admin,dc=example,dc=local"
credentials=secret
index entryCSN eq
index entryUUID eq
mirrormode TRUE
overlay syncprov
syncprov-checkpoint 100 10发布于 2012-07-13 15:18:29
忽略这个问题。我的自我修复自动化是错误的配置,并且每一分钟都在意外地重新启动懒惰的进程。
https://stackoverflow.com/questions/11465044
复制相似问题