@ClearlyClaire yes I've checked out the new code and I'm running non-docker
still seems stuck
@ClearlyClaire yes I've checked out the new code and I'm running non-docker
still seems stuck
@M0YNG does https://mastodon.radio/sidekiq/busy list long-running jobs?
@ClearlyClaire no, the oldest is Scheduler::FollowRecommendationsScheduler
12 mins ago
the rest are less than a min
@M0YNG this one is exactly the one that will make this migration longer because it locks what's getting migrated! though it should only run once every 24h so it will “only” make the migration longer by up to one hour i guess :x
these long running processes are normal then? All start at 08:21
REFRESH MATERIALIZED VIEW CONCURRENTLY "account_summaries"; | active | IPC | BufferIo
CREATE MATERIALIZED VIEW "tmp_account_summaries" AS +| active | IO | DataFileRead
REFRESH MATERIALIZED VIEW CONCURRENTLY "account_summaries"; | active | IPC | MessageQueueSend
@M0YNG it's weird that you have multiple `REFRESH MATERIALIZED VIEW CONCURRENTLY "account_summaries";` but otherwise yes
the refresh materialized views are from the job, the create materialized view is from the migration
they are all expected to be long-running (and unfortunately, to hold locks)
@ClearlyClaire ok, I guess I'll go leave this and hope.
It would be super helpful if the scale of "long running" is communicated so admins have an idea of if stuff it stuck or just expectedly slow.
There doesn't seem to be an increase in CPU, RAM, or disk activity
For context we have just over 4k total accounts and everything is running on the same server with HDD (not SSD)
@M0YNG the release notes do state “Expect up to a couple hours for very large servers.”, but it's surprising that it is taking more time for you
@ClearlyClaire they do, but what is "very large" ? It would be nice to also have "servers with 1000 accounts should take around [time], 5000 [time]" so we have a rough understanding of the projections.
sidekiq is still running FollowRecommendationsScheduler after 54 mins so hopefully stuff will start moving soon
@M0YNG “very large servers” is about the size of mastodon.social, so not your case; we cannot make such predictions because it depends on lots of parameters and we cannot test everything
@ClearlyClaire understood, simply knowing "very large" means dot social helps too.
sidekiq job is still running after over an hour :alex_scream:
@ClearlyClaire Scheduler::FollowRecommendationsScheduler is still running
It's possible this will take days not hours
@M0YNG what about the state of the SQL queries from earlier?
@ClearlyClaire still there
@M0YNG ok they don't even seem to be blocking each other, they are just reading from the database and it's very slow
```
SELECT COUNT(*) FROM accounts;
SELECT COUNT(*) FROM statuses;
```
@ClearlyClaire finally done, the migrations took another 9.25 hours in addition to however long before getting stuck.
@M0YNG oof! That's unexpectedly long! Glad that it's over, though!