Patent ID: 8832215

Claim:
A computer product for automatic load-balancing in a plurality of directory servers comprising a master server and one or more replication servers, the computer product comprising a non-transitory computer readable medium, upon which is stored computer readable information that, upon being executed on one or more computers, causes steps comprising: receiving a request for the plurality of directory servers, wherein the plurality of directory servers are Lightweight Directory Access Protocols (LDAP) servers and the request is an LDAP request; identifying the received request to be a read request; conducting a first availability check to determine whether the plurality of directory servers are available or busy; determining, from the first availability check, that the one or more replication servers are busy; and assigning the read request to the master server if the master server is determined to be available, or else conducting a second availability check if the master server is determined to be busy, wherein an automatic load-balancing policy seeks to assign the read request to an available one of the one or more replica servers, if any, before seeking to assign the read request to the master server.