You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was looking into why the index of ara takes so long to load (2s on good days) and I found that ara does 7 queries per playbook displayed in the table (6 counts for plays, tasks, results, hosts, files, records and 1 select for the labels).
We use ARA_PAGE_SIZE=50 but there are really no reason for the page to load that slow.
I've played with it a bit and with postgres you can get the same data off the db in 58ms by counting in the playbooks query and doing a join+aggregate for the labels.
I think I am affected by the same thing that is causing the issue here but in a different way, after upgrading ara-server from 1.6.1 to 1.7.0 our playbook runs have had 50% increase in run times (some are 6min to 9min, some went from 14min to 21min )
Why I think the root cause is the same is because there is a ~2sec delay between each task run reporting to ara server.
I was looking into why the index of ara takes so long to load (2s on good days) and I found that ara does 7 queries per playbook displayed in the table (6 counts for plays, tasks, results, hosts, files, records and 1 select for the labels).
We use
ARA_PAGE_SIZE=50
but there are really no reason for the page to load that slow.I've played with it a bit and with postgres you can get the same data off the db in 58ms by counting in the playbooks query and doing a join+aggregate for the labels.
ara/ara/api/serializers.py
Lines 36 to 47 in dde7674
The text was updated successfully, but these errors were encountered: