Fw: question about realms file format
aland at ox.org
Wed Aug 31 22:14:34 CEST 2005
"Thanh Lim" <limt at corp.earthlink.net> wrote:
> How much longer will we need to support the old realms file format?
I'd like to fix it in the CVS head, which will hopefully become 2.0.
> I'm looking into updating all code dealing with the REALM
> structure, and improving performance for lookups, etc. and am unsure
> if I should be updating that code as well.
> Also, I notice within the REALM structure, every single time, a linked
> list iteration occurs, many times, the active and account active flag is
> checked, and set, even if it's not the ip address and port that we are
> looking for. Why was it done this way, and shouldn't we just update the
> active flag only when we find the right one(s)?
It's for things like load-balancing & fail-over. If you're
load-balancing requests to "N" home servers, then you need to wake the
dead ones up, even though you're not sending packets to them. If you
don't wake them up, you'll *never* send packets to them.
A better solution would be to have something run through the lists
every second or so, and wake up the dead servers. That would have the
same effect, with less performance impact.
More information about the Freeradius-Devel