OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

Profiler on Large complex dataset via starburst hammers the data sources causing performance issues

Open celticht32 opened this issue 9 months ago • 7 comments

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

celticht32 avatar Feb 06 '26 02:02 celticht32

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?

TeddyCr avatar Feb 10 '26 18:02 TeddyCr

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.

celticht32 avatar Feb 12 '26 14:02 celticht32

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

celticht32 avatar Feb 12 '26 14:02 celticht32

The statistics I can give you are this:

  1. 300 million + rows - profiler did over 5k queries
  2. 200 million + rows - profiler did only 7 queries
  3. 88 million rows - profiler did 871 queries
  4. 72 million rows - profiler did 429 queries
  5. 1-71 million rows - profiler did 9k queries
  6. 500k - 1 million rows - profiller did 13k queries
  7. 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.

celticht32 avatar Feb 12 '26 14:02 celticht32

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

TeddyCr avatar Mar 03 '26 00:03 TeddyCr

I have

celticht32 avatar Apr 20 '26 21:04 celticht32

@celticht32 we are shipping a few improvements in 1.13. I'll be closing this for now.

TeddyCr avatar Jul 15 '26 21:07 TeddyCr