0

I have an openldap server which is not able to cater to all the connection requests it is getting. It stops responding - ie. clients which attempt a connection get an error 'Can't contact LDAP server (-1)' after about 2 - 3 minutes. There is high traffic (as far as I know) and the problem occurs throughout the day - the server responds, then reaches a peak - stops and then responds again.

Kindly guide me - all help is greatly appreciated. Thanks in advance.

2 Answers 2

1

As a very first step, you should try to find out what the bottleneck is for your scenario:

  • Does it take too long to look up the queried data in the database? If yes, can you speed it up with creating some indexes for common queries?
  • If disk access is too slow, maybe you can put the database onto another (very fast) disk where LDAP has exclusive access?
  • Does your System have enough RAM, or is it always swapping? Typically, LDAP databases should fit entirely into RAM if you don't have really large datasets. If not, add RAM.
  • Is your network connection saturated? This is often a consequence of an LDAP server doubling as a file server or slow connections (10MB). If this is the case, maybe you can put in a faster network card or a second one.
  • Is the server only an LDAP server or has it other heavy jobs? If yes, put it on separate, faster, hardware.

If all of this doesnt' help you'll need to add secondary servers to your setup and/or put some branches of your tree onto different servers. In the first case, you'll need to inform your clients of the different servers, depending on how they are configured, where round-robin DNS is the easiest way, IMHO. In the second case, your clients have to be capable of handling referrals so your original server can just send them over to the other servers.

2
  • and if you've already performed the above, adding that information to your question might provide more information to help people help you.
    – samt
    Sep 14, 2009 at 15:45
  • Yes, and maybe some information about the scenario in which you use LDAP (kind/amount of data, number of users etc.).
    – Sven
    Sep 14, 2009 at 15:47
0

Sorry folks. A review/audit of the configuration led me to find that the cachesize and idlcachesize had mistakenly become 0. Thanks anyways as the discussion was going in the right direction.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .