Re: Freeradius-Users Digest, Vol 53, Issue 11
I deactivated buffered-sql and logging directly to mysql by deafult module. Just one basic question : Buffered_SQL is single threaded module? and does not make use of available mysql threads to complete the jobs in parallel? Thanks, Rams.
Message: 5 Date: Thu, 03 Sep 2009 05:32:53 +0100 From: Arran Cudbard-Bell <a.cudbard-bell@sussex.ac.uk> Subject: Re: freeradius2.1.6| buffered-sql | acctstoptime problems To: FreeRadius users mailing list <freeradius-users@lists.freeradius.org> Message-ID: <4A9F46F5.7060806@sussex.ac.uk> Content-Type: text/plain; charset="utf-8"
Alan DeKok wrote:
Ivan Kalik wrote:
Counter? Write detail.work.counter onto the disk, increment it every time packet is processed and return to zero when detail.work is deleted. It will say how many packets to skip when radiusd is restarted.
Hmm... OK. Or slightly differently: the offset in the file of where it last read a packet.
Yep that's a good option.
Maybe for 2.1.8.
This is pretty much a none issue. Just have the detail file writer start a new file every minute/hour, then the number of repeated entries is very small. It's only when you have it start a new file every day, or use one monolithic detail file that you run into problems.
-Arran
I deactivated buffered-sql and logging directly to mysql by deafult module. Just one basic question : Buffered_SQL is single threaded module? and does not make use of available mysql threads to complete the jobs in parallel?
No, but near enough. Detail reader deliberately reads packets at a reduced rate. Authentication queries are fast - about 10x faster than accounting queries. On top of that you should aim to complete authentication as quick as possible, while if there is a delay in processing accounting data of a few seconds it's hardly going to get noticed. Imagine authentication queries as fast cars and acconting queries as a slow lorries. The idea of buffered-sql is to separate out lorries into a slow lane and leave motorway clear for fast cars to wizz by. You can increase the speed at which detail reader works but the effect of that would be to spread out lorries all over the motorway, slowing the cars down. Even if the reader gets stuck and lane with the lorries stops, the authentication will still work, and new lorries will pile up at the back of the slow lane. Once you get the lane working again, lorries will be on their way, again with no impact to authentication (cars). Ivan Kalik Kalik Informatika ISP
participants (3)
-
Alan Buxey -
Ivan Kalik -
ramesh p