Friday, July 18, 2014

How to improve freeRadius performance.

I was bored, had nothing to do, so decided to play with freeRadius configurations and see how they affect the overall performance. I was amazed that how this tricky settings can decrease or increase the power.

I was able to tweak freeRadius maximum performance from 400/sec to almost 1000 !

.conf File
Parameter
Before
After
Default
Notes
radiusd.conf
max_request_time
60
15
30
30 is suggested in Prod.
radiusd.conf
Cleanup_delay
5
2
6
3 is suggested in Prod.
radiusd.conf
max_requests
1024
5120
256

radiusd.conf
max_servers
32
64
?

radiusd.conf
min_spare_servers
5
15
?

radiusd.conf
max_spare_servers
10
35
?

radiusd.conf
max_queue_size
65536
131072
65536

sql.conf
num_sql_socks
5
32
?

sql.conf
connect_failure_retry_delay
60
5
60
10 is suggested is prod.

Indeed, this is a customized settings based on our servers and other resources. But I think it can give you some ideas.

No comments:

Post a Comment