matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.83k stars 2.13k forks source link

Receipts worker needs to be sharded #16417

Closed erikjohnston closed 1 year ago

erikjohnston commented 1 year ago

Currently we can only run one receipts worker, we should be able to shard this.

Annoyingly, it looks like most of the CPU cost for receipts is just "overhead", i.e. receiving HTTP requests, DB pool, and replication overhead.

A representative flame.svg:

flame

clokep commented 1 year ago

replication overhead

12461 maybe?