Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

"Accounting" tooks a very long time ...

Hello,

we use Astaro Release 7.304.

When we click "reporting" > "Network usage" > "Accounting" it took a very long time to resolve hostnames.

Is there a way to disable resolving hostnames, like it was in Release 6.x?

Thanks for Help

Regards
Walter


This thread was automatically locked due to age.
  • Hi,
    it probably is not the hostname resolution that takes the time. On the first database call, there is a 5 second timeout while the backend waits for the resolver. After 5 seconds, the resultset will be given to the Webadmin, and all hostnames which have not been resolved until that point will be displayed as "Resolving..." in the Webadmin. The resolver continues to work in the background, and when you click "Update" again the display will be refreshed.

    Most likely it just takes a long time for that database call to finish because of the sheer amount of data which is stored in the database. You can check details in /tmp/confd-debug.log: when you visit the Webadmin->Reporting->Network Usage->Accounting page, the database call is triggered automatically, and you should see the line "using new call Astaro::Reporting::NetAccounting::TopClients". After some time, the line "call execution runtime: x.xx seconds" should appear. This is the raw call execution time, without any DNS resolution. If this already takes a long time, there is not much you can do: either reduce the amount of data which is stored in there (Reporting::Settings, shorten keep times for reporting databases) or use faster hardware.

    Cheers,
     andreas