When data retention parameters are changed, mitra starts removing unnecessary posts from the database and associated media from the filesystem. Media deletion happens in background tasks which block other background tasks, including incoming federation (not outgoing, which uses different thread).
If the number of deleted posts is huge, processing of media cleanup tasks may take a long time, leading to a noticeable delay in federation. But this doesn't lead to data loss.
> Postgres will use 100% CPU to delete remote posts & media until it's done after a few hours.
i'm going to try it with an instance i'm synthetically filling up to see if i can offer some insight. my guess is that it's based on the amount of media objects/etc which determines how long it will exhaust the threads. there may be a way to optimize the query statement or general operation
> i'm not sure. postgres is using 100% cpu, i assume it's reading shit, but at the same time my instance is in a non working state due to well, expired domain xDDD
it's unlikely postgres is banging all the cores at 100% due to an expired domain. start dumping out some postgres logs to see what's happening. this should not be happening unless you're on some single core vps and you've got some other process hitting it hard.
No, this is what happened because he changed (reduced) the remote post retention. Same thing happened to 0.5dollah.click yesterday after I changed ours. Postgres will use 100% CPU to delete remote posts & media until it's done after a few hours. Until that happens, there's no incoming federation. I let @silverpill know about it.
@fwc@bigtony@griffith@sneeden i'm not sure. postgres is using 100% cpu, i assume it's reading shit, but at the same time my instance is in a non working state due to well, expired domain xDDD