Merge pull request #889 from element-hq/bbz/tweak-delayed-events-routing

Be clearer about routing the delayed_events GET request
This commit is contained in:
Ben Banfield-Zanin authored and GitHub committed 2025-11-24 10:56:26 +00:00
commit fd1135e29c
3 files changed
+6 -3

No files matched your search

@@ -9,7 +9,6 @@ SPDX-License-Identifier: AGPL-3.0-only
# A map file that is used in haproxy config to map from matrix paths to the
# named backend. The format is: path_regexp backend_name
{{ if dig "client-reader" "enabled" false $root.Values.synapse.workers }}
{{- /*
The client-reader worker could also support the following GET requests
when the related workers are not enabled. To keep things simple, we don't support
@@ -26,5 +25,3 @@ workers instead if these requests path are under high load.
# presence
^/\_matrix/client/(api/v1|r0|v3|unstable)/presence/
*/}}
^/_matrix/client/unstable/org.matrix.msc4140/delayed_events client-reader
{{- end }}
@@ -228,6 +228,7 @@ responsibleForMedia
"^/_matrix/client/(api/v1|r0|v3|unstable)/directory/room/.*$"
"^/_matrix/client/(r0|v3|unstable)/capabilities$"
"^/_matrix/client/(r0|v3|unstable)/notifications$"
"^/_matrix/client/unstable/org.matrix.msc4140/delayed_events$"
"^/_synapse/admin/v1/rooms/[^/]+$"
) }}
+5
View File
@@ -0,0 +1,5 @@
Better handle the only worker-capable delayed-events endpoint.
`^/_matrix/client/unstable/org.matrix.msc4140/delayed_events$` only handles `GET`
so this is clearer rather than relying on `path_map_file_get.tpl`. This is a slight
divergence from the docs for now but should be addressed soon.