Document how to set up multiple event persisters (#8706)

This commit is contained in:
Erik Johnston 2020-11-03 10:27:11 +00:00 committed by GitHub
parent d04c2d19b3
commit 4b09b7438e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

1
changelog.d/8706.doc Normal file
View File

@ -0,0 +1 @@
Document experimental support for running multiple event persisters.

View File

@ -319,6 +319,18 @@ stream_writers:
events: event_persister1
```
The `events` stream also experimentally supports having multiple writers, where
work is sharded between them by room ID. Note that you *must* restart all worker
instances when adding or removing event persisters. An example `stream_writers`
configuration with multiple writers:
```yaml
stream_writers:
events:
- event_persister1
- event_persister2
```
#### Background tasks
There is also *experimental* support for moving background tasks to a separate