<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br>> that allows freeradius makes authentications with radacct historical tables?<br><br></div>The table radacct is not used for authentication. Radacct stores accounting information only. Hence, it is safe to delete old entries in order to free memory.<br>
<br>> Also I thought in make quarterly tables but this is a proble to authenticate users.<br><br></div>I do not understand your point. What exactly is the problem?<br><br></div>Here ist what we do: Due to legal right, we are only allowed to store the accounting information for seven days anyway. Hence I wrote I little SQL script that is periodically invoked through crontab. In principle the SQL script performs two steps:<br>
<br></div>1) For any entry that has an accounting start and an accounting update time that is older than five times the update intervall but has no accounting stop time, the accounting stop time is set to the last accounting update time. Because the update time was not updated recently, we must assume that the sessions is stalled. I.e. the session has stopped, but we missed the acct stop message for some reason.<br>
<br></div>2) Select any row which most recent time entry (any of start, update, stop time) is older than 7 days and delete that row.<br><br></div><div>Of course, depending on your SQL server you should pay attention to table locking, because freeradius still access the database while the script is running.<br>
</div><div><br></div>Matthias<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/17 Antonio Fernández Pérez <span dir="ltr"><<a href="mailto:antoniofernandez@fabergames.com" target="_blank">antoniofernandez@fabergames.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi everybody,<br><br>I have a radacct table with more than 12300000 rows. I have increased RAM memory recently because the data base is working with InnoDB engine and was necessary to load data into the buffer. But, anybody knows some technique that allows freeradius makes authentications with radacct historical tables?<br>
<br>I have thought in grouping rows using the UserName, keeping only one row for each user. Also I thought in make quarterly tables but this is a proble to authenticate users.<br><br>Any ideas?<br><br>Thanks in advance.<br>
<br>Regards,<br><br>Antonio.</div>
<br>-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br></blockquote></div><br><br clear="all"><br>-- <br>Matthias Nagel<br>
Parkstraße 27<br>76131 Karlsruhe<br><br>Festnetz: +49-721-96869289<br>Mobil: +49-151-15998774<br>e-Mail: <a href="mailto:matthias.h.nagel@gmail.com" target="_blank">matthias.h.nagel@gmail.com</a><br>ICQ: 499797758<br>Skype: nagmat84
</div>