As previously discussed here https://feddit.de/post/1285536 , I am trying to properly decommission my private instance. My main issue: even though I unsubscribed from all communities, the server still gets a lot of POST requests with likes, comments, etc. So how do I tell all the instances to stop sending announcements? I also don’t want to go the hacky way of bogus DNS entries, as that won’t be good for the other instances. This also continues if I simply shut down the stack, just resulting in a lot of 404s.
Is there a manual for this I missed in all the googling?
Commendable that you want to help, but the software needs to handle dead installations as there is no possible way to enforce people to decommission. :) Might be worth dropping just to help the use case of how this gets handled. I feel like you did everything you could.
This is a wild guess, but have you tried hacking your proxy to return
410 GONE
for the ActivityPub endpoints? A well behaved system is supposed to interpret that response as meaning that the resource is gone forever and to stop trying. I have no idea how Lemmy will respond, but it might be a step along the way to disappearing the endpoints once you’ve run out of other ideas to see if the rate announcements starts to fall off.There is no way at the moment but to unsubscribe from all communities before stopping the instance. There is a bug ticket open at the moment.
I tried that. Even after unsubscribing from everything I still get the announcement traffic. Which might als be a problem as the instance is on 0.17.4, while lemmy.world (which is sending most of them) is on the 8.18.1 RC train.
Subscribe/unsubscribe transactions between servers has a 10 second timeout and been unreliable for over a month, regardless of version.
They are only just now adding code for dead-server detection because down servers are causing part of the overloads.
There is a PR on GitHub that implements checks towards all the federated instances and those who doesn’t respond for a few days will be marked as stale and the instance will stop sending updates to them
Ah, that sounds exactly like what’s needed here. Thanks for the info.
I’d also like to know this. Out of curiosity I looked into whether blocking an instance would send some kind of message to de-federate, but that does not appear to be the case. If you look at beehaw and lemmy.world you can see that beehaw has lemmy.world blocked but lemmy.world is still federated with beehaw.
I looked through the ActivityPub spec and didn’t find anything interesting there either.
Also found this closed bug report on their github which really went nowhere. But that let me down the rabbit hole to this commit.
I think the conclusion I’ve come to is that, as of today, there is no proper way to decom a lemmy instance. I think the best we can hope for is for there to be maturity detecting, flagging, and ultimately removing dead peers.