Discussion:
Load Balance FreeRadius
o***@jofre.com
2018-11-21 14:49:05 UTC
Permalink
Hi,



Actually I have a free radius on a centos connected to a mariadb database to
give Access to hotspot users.



I'm planning to move the freeradius to AWS and I would like to build 2
freeradius instances and 1 database instance.

The idea is that when a paket is sent the balancer sends to one freeradius
and the freeradius query or update the database and send response.

The when a next packet is sent the balancer sends to the second freeradius
and that query or update the database and send response..



So both freeradius instances uses the same database ..



Maybe it does not have sense because probably the freeradius is not the slow
part so build 2 instances to handle the traffic won't work . the database
should be the slower part here.



Is it possible Theatrically ?



Does it has sense to do this schema ?



What about freeradius on AWS ?



Thanks a lot.

-
List info/subscribe/u
Alan DeKok
2018-11-21 15:05:50 UTC
Permalink
Post by o***@jofre.com
I'm planning to move the freeradius to AWS and I would like to build 2
freeradius instances and 1 database instance.
The idea is that when a paket is sent the balancer sends to one freeradius
and the freeradius query or update the database and send response.
Which load balancer are you using? If it's AWS, it doesn't support UDP. And even if it did, the load balancer isn't RADIUS aware. So it won't do the RADIUS protocol translations necessary for RADIUS load balancing.
Post by o***@jofre.com
So both freeradius instances uses the same database ..
Then that's the single point of failure.

And to be honest, FreeRADIUS can handle many tens of thousands of packets per second. An SQL database is much more limited.
Post by o***@jofre.com
Maybe it does not have sense because probably the freeradius is not the slow
part so build 2 instances to handle the traffic won't work . the database
should be the slower part here.
Exactly. So you don't need 2 RADIUS servers. One will do fine.

Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/us
Alan DeKok
2018-11-21 16:08:52 UTC
Permalink
Hi,
I'm using keepalived in direct routing mode and works perfectly.
Ah, if it's *routing* the packets then yes, it will work.

Alan DeKok.


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.
Loading...