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

Remove connections per replication stream metric. #7195

Merged
merged 2 commits into from
Apr 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/7195.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Move catchup of replication streams logic to worker.
16 changes: 0 additions & 16 deletions synapse/replication/tcp/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,6 @@ def __init__(self, hs):

self.streams_by_name = {stream.NAME: stream for stream in self.streams}

LaterGauge(
"synapse_replication_tcp_resource_connections_per_stream",
"",
["stream_name"],
lambda: {
(stream_name,): len(
[
conn
for conn in self.connections
if stream_name in conn.replication_streams
]
)
for stream_name in self.streams_by_name
},
)

self.federation_sender = None
if not hs.config.send_federation:
self.federation_sender = hs.get_federation_sender()
Expand Down