10
you are viewing a single comment's thread
view the rest of the comments

Yeah. There's a retry queue, which does expire after a certain time period, but for a short outage that's how it'd work.

[-] ocean@lemmy.selfhostcat.com 3 points 5 days ago

Do you know about how long it is?

I don't recall exactly, but it's more like days rather than hours. At some point the instances will mark you as down, and then stop trying to federate with you, so there's a hard limit but it's fairly generous and not especially aggressive.

I found the PR for the queue, and it mentions retries but doesn't seem to mention exact timing, at least to my quick read. ( https://github.com/LemmyNet/lemmy/pull/3605 )

[-] ocean@lemmy.selfhostcat.com 1 points 5 days ago

Thanks for further details and that PR! Days sounds great. I usually try to fix it within 12 hours or so

Lemmy does exponential backoff with something like this:
retry_in = min(1.25^retry_count, 24*3600)
Basically, the timer for the next retry will grow exponentially until it reaches 1 day, then it continues to retry every day.

By that time, about 5 days will have gone by going through the previous retry failures.

If will eventually give up and mark as dead but I don't remember the threshold for that.

[-] ocean@lemmy.selfhostcat.com 1 points 5 days ago

Thanks for the function! Great to know :)

this post was submitted on 17 Feb 2025
10 points (91.7% liked)

Lemmy Support

4731 readers
5 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS