PacketFence - BTS - PacketFence
View Issue Details
0001414PacketFencecorepublic2012-03-30 11:592012-04-18 10:07
fgaudreault 
fgaudreault 
normaltweakN/A
closedfixed 
3.2.0 
3.3.03.3.0 
3c9f6fd30ea95f2f6b49a5840f12d1ee9adb2bd5, d0d74d7ec245b857e8299f791af9e05b7e18cef0
0001414: Improve performance of node accounting
Since now the CoA heavily relies on accounting to perform deauth, and that more people are interested on the BW violations, it is important that this part of the software works, and that is works fast.

This ticket is about potential improvements of the accounting part :
- Missing an index in the radacct table on the callingstationid field (we use this field in where clause, it is a pain on huge tables :S)
- Trim the radacct_log table when we have an acct-stop (remove interims). Since accounting stop contains the total packets, we can get rid of "useless" interim entries.
- Remove sessions that are more than 1 years old

No tags attached.
Issue History
2012-03-30 11:59fgaudreaultNew Issue
2012-03-30 13:45fgaudreaultNote Added: 0002632
2012-03-30 13:46fgaudreaultNote Edited: 0002632
2012-03-30 14:56fgaudreaultgit revision => 3c9f6fd30ea95f2f6b49a5840f12d1ee9adb2bd5
2012-03-30 14:57fgaudreaultNote Added: 0002633
2012-04-12 11:58fgaudreaultgit revision3c9f6fd30ea95f2f6b49a5840f12d1ee9adb2bd5 => 3c9f6fd30ea95f2f6b49a5840f12d1ee9adb2bd5, d0d74d7ec245b857e8299f791af9e05b7e18cef0
2012-04-12 11:58fgaudreaultNote Added: 0002644
2012-04-12 11:58fgaudreaultStatusnew => resolved
2012-04-12 11:58fgaudreaultResolutionopen => fixed
2012-04-12 11:58fgaudreaultAssigned To => fgaudreault
2012-04-18 10:04obilodeauFixed in Version => 3.3.0
2012-04-18 10:04obilodeauTarget Version => 3.3.0
2012-04-18 10:07obilodeauNote Added: 0002663
2012-04-18 10:07obilodeauStatusresolved => closed

Notes
(0002632)
fgaudreault   
2012-03-30 13:45   
(edited on: 2012-03-30 13:46)
For issue 1 :
- We need to add the following to the upgrade-3.2.0-3.3.0.sql :
CREATE INDEX callingstationid ON radacct ( callingstationid );
- We need to adjust the schema with a KEY on callingstationid

For issue 2:
- We can't. We need to keep Interims. This is to add precisions to the bw usage calculation.

For issue 3:
- we need to add a statement in the backup script to delete sessions from the previous years. (< YEAR(CURRENT_DATE()))

That means on January, stats would be reset to 0 for everyone. Maybe it is not optimal, but for many of you, I am sure it is OK. If not let us know, we can move them to an history table in order to get a "last year" metric.

(0002633)
fgaudreault   
2012-03-30 14:57   
Waiting for feature merge prior doing issue 1 commit. Feature 3 is committed in devel.
(0002644)
fgaudreault   
2012-04-12 11:58   
Fixed and commit to stable.
(0002663)
obilodeau   
2012-04-18 10:07   
fixed released last friday