Hi all, tried doing some searching to see if someo...
# ask-metaflow
b
Hi all, tried doing some searching to see if someone had encountered the same issues we’ve been having with Metaflow UI slowdown. Our metaflow UI has significantly slowed down over time as we have executed more runs on Metaflow and have needed to increase the UI container cpu and memory in order to free up the performance. I’m wondering if we are a unique case in seeing this or we are missing something as far as improving the metaflow UI performance. We only have a few dozen users, but our flow dag’s are fairly complex. Thanks!
1
a
@bulky-portugal-95315 - which views in the UI have slowed down? Can you also comment on what were the original resources for the UI container and what are the newer values?
b
the UI main runs view when you open the main UI page at :8083. The original UI container was at 4 vcpu + 30GB mem, we upped to the next level at 8vcpu and 60GB mem. this is deployed on fargate alongside our metadata service in a separate container
a
That should be plenty. How many runs are in-flight concurrently usually? One quick hack while we debug the issue would be to make sure that the run view is pinned to last 30 days (which should happen by default)
b
we have anywhere between maybe 20-30 runs running concurrently most times. the L30 is where it ends up default when we go to the UI url at
ip:8083
a
and how have you deployed the UI? Is it running against a logical replica of the DB or the master DB?
b
for a datapoint, i just did a refresh and it takes about 24 sec to load the initial 30 rows
ahhh i believe it’s pointing to the master db actually
a
One scenario where the UI could be slow would be if you haven't set up the indices for the UI
We have UIs that have 0.5M runs with 100s-1000s of concurrent executions that are viewable in the runs view with no visually perceptible delay.
b
that’s what i figured, so i’ve been trying to think of what we might be missing. is there a recommended rds instance type as well? I noticed our is only a
m6g.large
from initial setup before we started really adopting metaflow, so i am upgrading that to
m6g.12xlarge
regarding the indices for the UI, is that documented anywhere respective to metaflow’s data schema?
a
b
got it, can you help me understand if the rds instance type and/or iops has any impact to the UI?
a
it does - the beefier the instance, the faster the queries will perform
👍 1