Everyone,
The current CVS version of the server now contains support for a
round-robin load distribution of remote proxy requests.
Previously, the server supported multiple entries for the same 'realm'
with different entries in 'proxy.conf'. The server would use each entry
in turn until it was marked dead, and would then move on to the next realm
entry. This is the default behaviour and remains unchanged.
The new behaviour cycles each successive request through all of the listed
servers, so that each request is assigned to a different server as it comes
in.
This is implemented in the 'proxy.conf' via the following entries:
The following sets the max number of servers you want to allow for
each realm. If not set, it will default to 15.
proxy server {
servers_per_realm = 15
}
The following enables a round-robin distribution on a realm:
realm serv.com {
type = radius
authhost = rad1.serv.com:1812
accthost = rad1.serv.com:1813
secret = TheirKey
ldflag = round_robin
nostrip
}
realm serv.com {
type = radius
authhost = rad2.serv.com:1812
accthost = rad2.serv.com:1813
secret = TheirKey
ldflag = round_robin
nostrip
}
In the above example, setting the 'ldflag' attribute with 'round_robin'
enables the load distribution. All realm entries must be configured
identically. IE, they must all have the same flag of 'round_robin' or
'fail_over'. The first packet for 'serv.com' will be sent to rad1.serv.com,
the second packet will be sent to rad2.serv.com, the third packet will be
sent to rad1.serv.com, and so on.
This has been tested to ensure backwards compatability with previous
'proxy.conf' configurations. Remote server failures in a round-robin
distribution situation are handled gracefully, and should not result
in "lost" packets.
If there are any questions or problems associated with this, please
post your experience and any debugging traces showing your problem to
the list.
Thanks,
-Chris
--
\\\|||/// \ StarNet Inc. \ Chris Parker
\ ~ ~ / \ WX *is* Wireless! \ Director, Engineering
| @ @ | \ http://www.starnetwx.net \ (847) 963-0116
oOo---(_)---oOo--\------------------------------------------------------
\ Wholesale Internet Services - http://www.megapop.net
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html