Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

synapse loaded by lots of /federation/v1/event/... requests #2164

Open
richvdh opened this issue Apr 26, 2017 · 1 comment
Open

synapse loaded by lots of /federation/v1/event/... requests #2164

richvdh opened this issue Apr 26, 2017 · 1 comment
Labels
A-Federation A-Performance Performance, both client-facing and admin-facing O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.

Comments

@richvdh
Copy link
Member

richvdh commented Apr 26, 2017

Every so often, my synapse goes off and spends a couple of hours spinning at 100% CPU. Investigation reveals that it is mostly spending that time processing /federation/v1/event/ requests - basically some other server in the federation starts hammering it for a load of events.

There are two questions here:

  • why are other servers hammering it?
  • it seems surprisingly expensive to serve the request. The CPU times are quite variable but some of them are over 200ms per request - which takes a while when there are tens of thousands of requests.
@richvdh
Copy link
Member Author

richvdh commented Apr 26, 2017

anecdotally, the worst offenders seem to be on older synapses; in particular stephenson.cc which is on 0.18.7.

@reivilibre reivilibre added A-Performance Performance, both client-facing and admin-facing T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues. S-Minor Blocks non-critical functionality, workarounds exist. O-Uncommon Most users are unlikely to come across this or unexpected workflow labels May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Federation A-Performance Performance, both client-facing and admin-facing O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Blocks non-critical functionality, workarounds exist. T-Defect Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Projects
None yet
Development

No branches or pull requests

2 participants