Hi all, Can anyone explain me why radius is going hang when its receive more 2000 request in one time. I configured rlm_perl and it is working if there is small traffic. But when the traffics reached more than 2000 the radius is stopped. I used example.pl for authentication, authorization and accounting with mysql DB. Can any lead me where is exactly fault. ----------------radius.log------------------ Sun Oct 9 10:27:33 2005 : Info: Detach perl 0x9a26c38 Sun Oct 9 10:27:33 2005 : rlm_perl: rlm_perl::Detaching. Reloading. Done. Sun Oct 9 10:27:33 2005 : Info: detach at 0x9a26c38 returned status 0 Sun Oct 9 10:27:33 2005 : Info: Detach perl 0x9b8c090 Sun Oct 9 10:27:33 2005 : rlm_perl: rlm_perl::Detaching. Reloading. Done. Sun Oct 9 10:27:33 2005 : Info: detach at 0x9b8c090 returned status 0 Sun Oct 9 10:27:33 2005 : Info: Detach perl 0x9c9ba08 Sun Oct 9 10:27:33 2005 : rlm_perl: rlm_perl::Detaching. Reloading. Done. Sun Oct 9 10:27:33 2005 : Info: detach at 0x9c9ba08 returned status 0 Sun Oct 9 10:27:33 2005 : Info: Detach perl 0x9da9e70 Sun Oct 9 10:27:33 2005 : rlm_perl: rlm_perl::Detaching. Reloading. Done. Sun Oct 9 10:27:33 2005 : Info: detach at 0x9da9e70 returned status 0 Sun Oct 9 10:27:33 2005 : Info: Detach perl 0x9eb7f80 Sun Oct 9 10:27:33 2005 : rlm_perl: rlm_perl::Detaching. Reloading. Done. Sun Oct 9 10:27:33 2005 : Info: detach at 0x9eb7f80 returned status 0 Sun Oct 9 10:27:33 2005 : rlm_perl: rlm_perl::Detaching. Reloading. Done. Sun Oct 9 10:27:36 2005 : Info: Using deprecated naslist file. Support for this will go away soon. Sun Oct 9 10:27:36 2005 : Info: rlm_exec: Wait=yes but no output defined. Did you mean output=none? Sun Oct 9 10:27:37 2005 : Info: Ready to process requests. -------- Yours, Abdul Lateef Computer Programmer HATIF COM Mob: +974 - 5405022 Tel: +974 - 4883068 ICQ: 276994704 YM!: abdul_zu Fax: +974 - 4883063 Doha Qatar http://www.hatif.com __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
On Sunday 09 October 2005 12:29, Abdul Lateef wrote:
Hi all,
Can anyone explain me why radius is going hang when its receive more 2000 request in one time. I configured rlm_perl and it is working if there is small traffic. But when the traffics reached more than 2000 the radius is stopped.
I used example.pl for authentication, authorization and accounting with mysql DB. Can any lead me where is exactly fault.
To work with sql and rlm_perl you need to make an separate sql connection for each thread. This can be done using sub CLONE {} which is automatically called when new thread is created. There you can connect to mysql server. Another usefull point is to make perl pool with fixed size for example use 16 or 32 perl threads. Check your database - are you using indexes, keys etc. On my site we can handle with fixed 64 threads an average of 20.137 requests/second on thread. -- Best Regards, Boian Jordanov SNE Orbitel - Next Generation Telecom tel. +359 2 4004 723 tel. +359 2 4004 002
participants (2)
-
Abdul Lateef -
Boyan Jordanov