Profiler on Large complex dataset via starburst hammers the data sources causing performance issues
Affected module Impacts the source system. Seems to get in a query loop when running and does not time out
Describe the bug We setup the connector for Trino to talk to Starburst and the profiler agent was turned on. The profiler impacted the performance of the complex data stores that Starburst connected to and did not time out. In one case the query lasted over 4 hours and seemed to be stuck in a loop without erroring out or timing out
Expected behavior in the case of a loop there should have been a query time out.
Version:
- RHEL 8
- Python latest.
- 1.11 or Later
in the case of a loop there should have been a query time out. There is a timeout, though once the query is sent to the database engine the timeout is then controlled by your query engine (i.e. starburst in that case).
Can you share more details about the config, how many tables were you profiling, how big the tables, any partitioning sampling set in OM?
config is the default for profiler nothing was changed. it somehow got added to a production starburst machine (we are investigating who did this). But the query ran for 4 hours before it got into the query loop. There are 8 databases that the starburst system returned. Each Database has 40 to 200 tables depending on the database. No error in the logs or timeout occured. I know the default timeout for profiler is 12 hours... is there a way to make the default alot less than 12 hours or have some sort of alert in the tooling that says this profiler is taking a long period. I looked at the airflow and OMD logs and there is nothing noting that this loop occured in the logs.
as an additional bit of information I just looked and one of the databases has over 1k tables. I may be able to get the statistics they saw on the database to a limited extent as these are production machines that this occured on and can not publicly put detailed information on our machines... so let me know what I can provide that may help
The statistics I can give you are this:
- 300 million + rows - profiler did over 5k queries
- 200 million + rows - profiler did only 7 queries
- 88 million rows - profiler did 871 queries
- 72 million rows - profiler did 429 queries
- 1-71 million rows - profiler did 9k queries
- 500k - 1 million rows - profiller did 13k queries
- 100k - 500k rows - profiler did 4k queries
Each of the above are different tables in multiple databases that starburst connects to
One profile run had over 313m rows returned over a 5 hour time taking 4hours of cpu time before they killed it. One instance the query repeated 89 times running 16 minutes each returning 327m rows each time.
I can not share the profile SQL query that ran as I am not permitted.
hope this helps.
Can you check out the best practice we highlight here ? https://docs.open-metadata.org/v1.12.x/how-to-guides/data-quality-observability/profiler/profiler-workflow#profiler-best-practices
I have
@celticht32 we are shipping a few improvements in 1.13. I'll be closing this for now.