FoundKey/packages/backend/src
Chloe Kudryavtsev 91a4f38871 backend: add automatic dead instance detection
It works by having a day-long cache of
"when did we last successfully communicate with this instance?"
Anything over a specified threshold (1 month) will act as though the instance
is suspended - all outgoing jobs are dropped on processing.
The day-long cache is in place because the ordering is necessarily a
linear scan.
Once an instance comes back online, we will detect that is the case as soon as
we receive an activity from them (which will update the "last communicated at")
field.

Potential future TODOs:
* Improve the caching system, it's actually pretty inefficient as it is.
  CacheBox with a call override?
* Think of ways to make it not-a-linear-scan, since the instances table can get
  pretty big. It's around 4500 on toast cafe.

ChangeLog: Added
2022-10-16 12:16:04 +00:00
..
@types use http-signature module that supports hs2019 (#8635) 2022-05-26 09:12:17 +09:00
boot refactor expiring data and expire signins after 60 days 2022-10-02 00:18:07 +02:00
config remove outgoingAddressFamily 2022-09-30 11:05:50 -04:00
daemons refactor expiring data and expire signins after 60 days 2022-10-02 00:18:07 +02:00
db feat: per-user renote muting 2022-10-11 10:42:39 +00:00
mfm backend: fix mentionedUsers and userInfo queries 2022-09-11 15:28:35 -04:00
misc feat: per-user renote muting 2022-10-11 10:42:39 +00:00
models feat: per-user renote muting 2022-10-11 10:42:39 +00:00
prelude backend: remove unused prelude modules 2022-10-11 01:53:34 -04:00
queue backend: add automatic dead instance detection 2022-10-16 12:16:04 +00:00
remote bacakend: prefer absolute over relative imports 2022-10-01 14:40:30 +02:00
server backend: allow to export only specific emoji 2022-10-12 01:49:53 +02:00
services fix type error 2022-10-16 04:20:11 +02:00
const.ts backend: update THRESHOLD constants to use time constants 2022-10-05 00:54:16 -04:00
env.ts refactoring 2021-11-12 02:02:25 +09:00
global.d.ts refactoring 2021-11-12 02:02:25 +09:00
index.ts backend: change Misskey -> FoundKey and use absolute import in index.ts 2022-10-03 20:04:06 +00:00