FW: Duplicate Accounting maybe once, twice a day
Fajar A. Nugraha
list at fajar.net
Wed Apr 13 17:16:34 CEST 2011
On Wed, Apr 13, 2011 at 5:12 PM, Alan DeKok <aland at deployingradius.com> wrote:
> Marius Pesé wrote:
>> This is both the same package. Maybe the odd thing is not the duplicate every once in a while but rather the fact that the bulk of them is not duplicated?
>
> Accounting packets WILL get sent twice. There's little you can do to
> avoid that.
>
> You need to design the system so that it handles duplicate accounting
> packets.
... which sometimes is as simple as changing the database schema to
use (username,acctuniqid) as unique key. When you do that and a
duplicate accounting start packet arrives, the default
accounting_start_query (insert) on dialup.conf should fail and
accounting_start_query_alt (update) will be executed instead. So you
won't have duplicate records.
--
Fajar
More information about the Freeradius-Users
mailing list