performance issues freeradius 2.1.12

Alan DeKok aland at deployingradius.com
Wed Mar 30 16:38:17 CEST 2016


On Mar 30, 2016, at 5:47 AM, khouzam yaghi <khouzam.yaghi at gmail.com> wrote:
> 
> the php script calculate the overall quota for the user, the monthly and
> the daily , each time i got an interim update for a user i added the
> acctinputoctet and acctoutputoctet to the monthly and daily quota (daily
> quota is to be reset everyday at 12 midnight) and it checks if the users
> exceeds his daily or monthly quota it will decrease his speed as specified
> in the database, the script also take care of the free time, if the isp
> specify a freetime , the server will not add the acctinputoctet and
> acctoutputoctet to the quota at free time.

  You can probably do all of that in "unlang" or Perl.

> is it better to use perl instead of php or what do you think is better??

  The server has support for native Perl scripts, which will be a LOT faster than running an external PHP script for every packet.

> what about receiving conflicting packets error (only from one nas out of 15
> nases). is it the nas that is overloaded or the server is slow?

  It means that the server is slow.

  Your PHP script is slow.  And the database queries it does are probably slow.  You'll need to fix all of that.

  Alan DeKok.




More information about the Freeradius-Users mailing list