0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-11-14 05:41:12 +01:00
dendrite/setup/jetstream
Neil e93bdd56fd
Set max age for roomserver input stream to avoid excessive interior deletes (#3145)
If old messages build up in the input stream and do not get processed
successfully, this can create a significant drift between the stream
first sequence and the consumer ack floors, which results in a slow and
expensive start-up when interest-based retention is in use.

If a message is sat in the stream for 24 hours, it's probably not going
to get processed successfully, so let NATS drop them instead. Dendrite
can reconcile by fetching missing events later if it needs to.

---------

Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2023-07-07 19:59:34 +02:00
..
helpers.go Use t.TempDir for SQLite databases, so tests don't rip out each others databases (#2950) 2023-01-23 13:17:15 +01:00
log.go Unify logging by using logrus for jetstream logs (#2976) 2023-02-24 08:56:53 +01:00
nats.go Set max age for roomserver input stream to avoid excessive interior deletes (#3145) 2023-07-07 19:59:34 +02:00
streams.go Set max age for roomserver input stream to avoid excessive interior deletes (#3145) 2023-07-07 19:59:34 +02:00