Hi all -- I am curious how much load does the UI p...
# prefect-ui
t
Hi all -- I am curious how much load does the UI place on the database, specifically when browsing the flow runs page and the live graph when looking at a specific flow run? Is there a way of configuring how often this loop happens? I ask as I am beginning to really hammer my service with work from my HPC, and I want to try to understand all aspects as best I can.
c
The ui should be making fewer requests now than it did a few versions ago as we fixed some bugs that were causing the ui to make a fair amount of duplicate requests (I can look up specifically what versions have these fixes). But it does make quite a lot of requests in order to show the amount of detail it does. The live flow run graph polls at an interval based on how many task and subflows are being displayed. The more there are the longer it waits to update. But it’s as tight as a one second interval I believe. Not configurable but if it’s causing issues we’d be open to changing what the defaults are.
🙌 2
t
Great! Thanks for that. Is there a way to outright disable the graph?
Just curious. I really do love it, just trying to slim down my load on my poor little server.
c
There isn’t currently a way to disable the graph. If you have a large flow run that produces a lot of tasks and subflows it’ll ask before it makes the requests and attempts to render. But that’s only on completed runs, so that would save one or two requests at most. The graph shouldn’t be putting much load on the api/database compared to the rest of the page.
t
Great -- thanks a lot 🙂