Ondřej, hello.

On 20 Jan 2023, at 16:19, Ondřej Kuzník wrote:

> DNS retrieval and parsing of SRV records is the easy part, and libevent
>  has code to help us with that already. It's the management of the
>  backends on the tier (shutting down those that aren't listed anymore,
>  adding those that are new, rearranging the lists) all while the server
>  is still running unless we request a full server pause for it. And any
>  of the backends being removed might still have pending operations, what
>  do we do with those?
>
>  And then the code that uses those levels and weights for each request
>  that comes in, in an efficient way.

Ah, right -- fair enough.  I'd misunderstood where the gap was.

Looking at ldap_domain2hostlist, I still think my sort algorithm is more 
elegant, here, than use of the Fisher-Yates one (*cough*), but it's not like 
this is going to be a hotspot in the code!

Changing the subject slightly, since there is SRV support in libldap, is there 
any chance that it'll become possible to specify a SRV domain in ldap.conf, in 
place of the list of LDAP URIs in option 'URI'.  That is, it'd be useful to be 
able to say 'URI DNS:ldap.example.com' in there.  Supporting something similar 
to that is why I wrote this code.

Best wishes,

Norman


-- 
Norman Gray  :  https://nxg.me.uk

Reply via email to