-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Add some metrics for inbound and outbound federation processing times #7755
Conversation
This tracks the time between the event is persisted and it being sent to destination servers (to remote homeservers or application servers).
84c5580
to
5f7a5c0
Compare
self._send_pdu(event, destinations) | ||
|
||
now = self.clock.time_msec() | ||
ts = await self.store.get_received_ts(event.event_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any concern about how much latency this will add by hitting the database again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, though I think in this case its a very simple query and will be dwarfed by the complexity of the get_hosts_in_room
query above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright. 👍
changelog.d/7755.misc
Outdated
@@ -0,0 +1 @@ | |||
Add some metrics for inbound and outbound federation latencies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth mentioning the metric names in case people want to use them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine. I'm guessing this is to help figure out what part of the federation sender is going slow?
Co-authored-by: Patrick Cloke <[email protected]>
And for some potential KPIs |
Introduced in #7755, not yet released.
Introduced in #7755, not yet released.
* commit 'dc80a0762': 1.16.0rc1 Back out MSC2625 implementation (#7761) Additional configuration options for auto-join rooms (#7763) Add some metrics for inbound and outbound federation processing times (#7755) Explain the purpose of the "tests" conditional dependency requirement (#7751) Add another yield point to state res v2 (#7746) Move flake8 to end. Don't exit script on failure (#7738) Make tox actions work on Debian 10 (#7703) Yield during large v2 state res. (#7735) add org.matrix.login.jwt so that m.login.jwt can be deprecated (#7675) Set Content-Length for Metrics requests (#7730) Sync ignored table names in synapse_port_db to current database schema (#7717) Allow local media to be marked as safe from being quarantined. (#7718) Convert directory handler to async/await (#7727) Speed up state res v2 across large state differences. (#7725)
These metrics measure: