Skip to content

Commit 2fd5839

Browse files
add a comment about the specialized GET requests path
1 parent 7bca73d commit 2fd5839

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

charts/matrix-stack/configs/synapse/path_map_file_get.tpl

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,22 @@ SPDX-License-Identifier: AGPL-3.0-only
99
# A map file that is used in haproxy config to map from matrix paths to the
1010
# named backend. The format is: path_regexp backend_name
1111
{{ if dig "client-reader" "enabled" false $root.Values.synapse.workers }}
12-
^/_matrix/client/(api/v1|r0|v3|unstable)/pushrules/ client-reader
12+
{{- /*
13+
The client-reader worker could also support the following GET requests
14+
when the related workers are not enabled. To keep things simple, we don't support
15+
this optimization here and we invite the chart user to directly deploy the related
16+
workers instead if these requests path are under high load.
17+
18+
# push-rules
19+
^/\_matrix/client/(api/v1|r0|v3|unstable)/pushrules/
20+
21+
# receipts-account
22+
^/\_matrix/client/(r0|v3|unstable)/._/tags
23+
^/\_matrix/client/(r0|v3|unstable)/._/account\_data
24+
25+
# presence
26+
^/\_matrix/client/(api/v1|r0|v3|unstable)/presence/
27+
*/}}
1328
^/_matrix/client/unstable/org.matrix.msc4140/delayed_events client-reader
1429
^/_matrix/client/(api/v1|r0|v3|unstable)/devices/ client-reader
1530
{{- end }}

0 commit comments

Comments
 (0)