When using LDAP service discovery the SRV records are sorted by priority and weight: XWikiLDAPConnection.java#L355 If two SRV records have the same priority, the server with the higher weight is always contacted first. However, according to RFC2782 the server with the higher weight "SHOULD be given a proportionately higher probability of being selected". |