slow response for Accounting (delay 1s) module rest
hi, i used FreeRADIUS Version 3.0.13 with module rest, module rest always respond 200 (OK) no have any logics, for access request is fast ~ 0.05 sec. for accounting request is always delay 1 sec. tcpdump 08:00:42.118052 IP 1.1.1.20.47219 > 2.2.2.126.radius: RADIUS, Access-Request (1), id: 0xa2 length: 384 08:00:42.123236 IP 2.2.2.126.radius > 1.1.1.20.47219: RADIUS, Access-Accept (2), id: 0xa2 length: 43 08:00:43.498508 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS, Accounting-Request (4), id: 0xa5 length: 1023 08:00:43.885234 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS, Accounting-Request (4), id: 0xa5 length: 1023 08:00:44.185854 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS, Accounting-Request (4), id: 0xa5 length: 1023 08:00:44.486452 IP 1.1.1.20.47219 > 2.2.2.126.radius-acct: RADIUS, Accounting-Request (4), id: 0xa5 length: 1023 08:00:44.503668 IP 2.2.2.126.radius-acct > 1.1.1.20.47219: RADIUS, Accounting-Response (5), id: 0xa5 length: 43 log radius Tue May 23 08:00:43 2017 : Error: (25) Ignoring duplicate packet from client 1.1.1.20 port 47219 - ID: 165 due to unfinished request in component accounting module rest Tue May 23 08:00:44 2017 : Error: (25) Ignoring duplicate packet from client 1.1.1.20 port 47219 - ID: 165 due to unfinished request in component accounting module rest Tue May 23 08:00:44 2017 : Error: (25) Ignoring duplicate packet from client 1.1.1.20 port 47219 - ID: 165 due to unfinished request in component accounting module rest config max_request_time = 30 cleanup_delay = 1 max_requests = 65535 hostname_lookups = no max_attributes = 500 reject_delay = 0 status_server = yes proxy_requests = no test backend for rest in ab (Apache Benchmark) is very fast. How i can make accounting response < 0.05 sec ?
On May 23, 2017, at 1:35 AM, Dmitry Yashin via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
hi, i used FreeRADIUS Version 3.0.13 with module rest, module rest always respond 200 (OK) no have any logics, for access request is fast ~ 0.05 sec. for accounting request is always delay 1 sec.
The REST back-end is slow. There is nothing in FreeRADIUS which magically waits 1s, but only for accounting packets. Or, you've re-configured FreeRADIUS to do something that's taking a long time.
tcpdump 08:00:42.118052 IP 1.1.1.20.47219 > 2.2.2.126.radius: RADIUS, Access-Request (1), id: 0xa2 length: 384
Read the debug log as suggested in the FAQ, "man" page, web pages, and daily on this list. Honestly, there is just no excuse for posting tcpdumps instead of reading the debug log. Alan DeKok.
Thanks! but backend rest answerd only code 200 and doing nothing (for auth/acct). If i run freeradius with "-X" , i not see any duplicate message and all delay 0.9 sec . in ab test backed rest is fast ... On Tue, 23 May 2017 at 14:40, Alan DeKok <aland@deployingradius.com> wrote:
On May 23, 2017, at 1:35 AM, Dmitry Yashin via Freeradius-Users < freeradius-users@lists.freeradius.org> wrote:
hi, i used FreeRADIUS Version 3.0.13 with module rest, module rest always respond 200 (OK) no have any logics, for access request is fast ~ 0.05
sec.
for accounting request is always delay 1 sec.
The REST back-end is slow.
There is nothing in FreeRADIUS which magically waits 1s, but only for accounting packets.
Or, you've re-configured FreeRADIUS to do something that's taking a long time.
tcpdump 08:00:42.118052 IP 1.1.1.20.47219 > 2.2.2.126.radius: RADIUS, Access-Request (1), id: 0xa2 length: 384
Read the debug log as suggested in the FAQ, "man" page, web pages, and daily on this list.
Honestly, there is just no excuse for posting tcpdumps instead of reading the debug log.
Alan DeKok.
On May 23, 2017, at 9:01 AM, Dmitry Yashin via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
Thanks! but backend rest answerd only code 200 and doing nothing (for auth/acct). If i run freeradius with "-X" , i not see any duplicate message and all delay 0.9 sec .
The default configuration of the server does NOT delay for 1s. It responses immediately to requests. So, the delay is something you added in your local configuration. Since you're not going to post the debug log, it's impossible to help you. And if you do post it, use "radiusd -Xx", because that gives timestamps. This is one of the few situations where "-Xx" is useful. Alan DeKok..
Thank you! i found slow moment in back-end. when i move back-ent to nginx (fcgi), speed answer is up. вт, 23 мая 2017 г. в 16:13, Alan DeKok <aland@deployingradius.com>:
On May 23, 2017, at 9:01 AM, Dmitry Yashin via Freeradius-Users < freeradius-users@lists.freeradius.org> wrote:
Thanks! but backend rest answerd only code 200 and doing nothing (for auth/acct). If i run freeradius with "-X" , i not see any duplicate message and all delay 0.9 sec .
The default configuration of the server does NOT delay for 1s. It responses immediately to requests.
So, the delay is something you added in your local configuration.
Since you're not going to post the debug log, it's impossible to help you.
And if you do post it, use "radiusd -Xx", because that gives timestamps. This is one of the few situations where "-Xx" is useful.
Alan DeKok..
participants (2)
-
Alan DeKok -
Dmitry Yashin