-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello Gregory,

I'm quite interested in this script you wrote, can you mail it to the
list, or to me?

Yours sincerely,
Bebbet

On 12-1-2016 15:59, Thomas, Gregory A wrote:
> I had the same problem when I was running on a box with somewhat
> limited resources and it did appear that it was the iplog_history
> that was slowing it down.
> 
> I decided that I did not need the extended history in the GUI, but
> wanted to keep it somewhere. I created a script that takes any
> entries from the iplog_history over 8 days old and move them to a
> new table with the same structure named iplog_archive  The task was
> a bit slow, so I added an index on iplog_history.start_time. The
> final line of the script is to optimize iplog_history.
> 
> This job runs every morning at 4AM. Since the putting this in
> place, the GUI interface when looking at users and their devices is
> sooooo much faster. I know I lose some ability to find instant
> history, but I still have it on the system if I really need to find
> it. To gain easy access to the DB, I have an older version of
> phpMyAdmin (4.2.2 because newer version are not compatible with the
> CentOS Source Distribution of MySQL)
> 
> -- Gregory A. Thomas Student Life Support Specialist University of
> Wisconsin-Parkside [email protected] 262.595.2432
> 
> 
> -----Original Message----- From: Morris, Andi
> [mailto:[email protected]] Sent: Tuesday, January 12, 2016
> 7:01 AM To: [email protected] Subject: Re:
> [PacketFence-users] Admin GUI - Node details slow.
> 
> Just to note, I also see this issue. If as a result of Jake's
> question there comes some routine maintenance that should be done
> on the database, please let me know.
> 
> I already run the built in maintenance script, but I notice that I
> have several fragmented tables in the sql tuner results, I'm not
> sure whether this is also having an adverse effect.
> 
> Cheers, Andi
> 
> -----Original Message----- From: Sallee, Jake
> [mailto:[email protected]] Sent: 11 January 2016 23:54 To:
> [email protected] Subject: Re:
> [PacketFence-users] Admin GUI - Node details slow.
> 
> My iplog_hostory table is sitting @ 87,910,019 records : )
> 
> Slow query log shows this: ==================================== #
> Time: 160111 17:40:33 # User@Host: pf[pf] @ localhost [] #
> Query_time: 81.359632  Lock_time: 0.000075 Rows_sent: 25
> Rows_examined: 4597 use pf; SET timestamp=1452555633; SELECT *
> FROM (SELECT *, UNIX_TIMESTAMP(start_time) AS start_timestamp,
> UNIX_TIMESTAMP(end_time) AS end_timestamp FROM iplog WHERE mac =
> '70:1a:04:ba:f4:a1' ORDER BY start_time DESC) AS a UNION ALL SELECT
> * FROM (SELECT *, UNIX_TIMESTAMP(start_time) AS start_timestamp,
> UNIX_TIMESTAMP(end_time) AS end_timestamp FROM iplog_history WHERE
> mac = '70:1a:04:ba:f4:a1' ORDER BY start_time DESC) AS b ORDER BY
> start_time DESC LIMIT 25;
> =================================================
> 
> I think it may be time to truncate this table.
> 
> Jake Sallee Godfather of Bandwidth System Engineer University of
> Mary Hardin-Baylor WWW.UMHB.EDU
> 
> 900 College St. Belton, Texas 76513 Fone: 254-295-4658 Phax:
> 254-295-4221
> 
> 
> From: Louis Munro [[email protected]]
> 
> Sent: Monday, January 11, 2016 12:29 PM
> 
> To: [email protected]
> 
> Subject: Re: [PacketFence-users] Admin GUI - Node details slow.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> On Jan 11, 2016, at 9:28 , Sallee, Jake <[email protected]> 
> wrote:
> 
> 
> At this moment my radacct table is sitting at 4,439,397 rows and my
> radacct_log table is 18,638,591.  Could this be causing the issue?
> 
> 
> 
> 
> 
> 
> Quite possibly. I am saying this without checking but it seems like
> a likely culprit.
> 
> Can you turn on slow query logging on your database? That should
> tell us more.
> 
> 
> See http://dev.mysql.com/doc/refman/5.7/en/slow-query-log.html for
> some details about that.
> 
> Regards, -- Louis Munro [email protected]  ::  www.inverse.ca 
> +1.514.447.4918 x125  :: +1 (866) 353-6153 x125 Inverse inc. ::
> Leaders behind SOGo (www.sogo.nu) and PacketFence
> (www.packetfence.org)
> 
> 
> 
> 
> 
> ----------------------------------------------------------------------
- --------
>
> 
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 
> _______________________________________________ PacketFence-users
> mailing list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
> ________________________________
> 
> [Cardiff Metropolitan University - 150 years of nurturing
> talent]<http://www.cardiffmet.ac.uk/cardiffmet150>
> 
> ----------------------------------------------------------------------
- --------
>
> 
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 
> _______________________________________________ PacketFence-users
> mailing list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
> 
> ----------------------------------------------------------------------
- --------
>
> 
Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month 
> Monitor end-to-end web transactions and take corrective actions
> now Troubleshoot faster and improve end-user experience. Signup
> Now! 
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 
> _______________________________________________ PacketFence-users
> mailing list [email protected] 
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWww5LAAoJEK4DrpKfQ+uoRLsP/3RUirU4Dfo3kVnZMA63gxjk
s19V6lRGv0mRmCk4gRRZfhZ0jzDIRLXNlc21hLIxs2gNm0pHRf4cnybsU2Ulicn5
7wKY8LkjxX3KQ+t5Ib/UrIJTbWYhUQaoW2W6g0gek38hY5kX2pDA6HzgU/Ra15Ap
BrXbuqRK/LfFpwFJauyM2SI+r1ke32TX8pNgiiI5HseTOIWAK9AE4wka/RAt4cCB
peIkXOS/6AlzM+zTVMID0p5yc/o1H8T0SQTabuj/JyGx8bV24w/QOP7nSmbTbNJq
kXinflfzPpJMqFl8Nafx1Q3017WgtkcK4SxPgEwWqof71Q90AW3hcufgVf0A0QyH
zJsMCVuGFceYa0TopY3FpqTj2bxvl9hSfhQWwqmW8IRhtTVHrlM0lcizcHr21uiz
Po2Iqsh3qZZE3SL1bnpft/qskGtkwmnIJwFbWcVHHK/GXysXx0nt6EKOuFBuGvKo
m9ye9ZW3sFtMSc50beuu6xtc7burSiTKEzVN1IuWNHH8nDGTDf8n8bRibQ+XY1mB
iRzr6ZV7NSo1KnJJOIopx5W6uQSQK78Ez38tVzdJPaIPt7OAmCaLDtib9Ty4T5qg
e5H5AA5f3YFzh6tPU7YbKDQf4DAu50tQ+Y1ZPifMv4DTIqRSt/o1klL6l93mkmWI
8//SNt/g9HDVnaI4rBRH
=gG/9
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to