Skip to content

Commit fd6632f

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

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

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

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,25 @@ 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+
28+
To keep things simple
29+
30+
*/-}}
1331
^/_matrix/client/unstable/org.matrix.msc4140/delayed_events client-reader
1432
^/_matrix/client/(api/v1|r0|v3|unstable)/devices/ client-reader
1533
{{- end }}

matrix-tools/internal/pkg/secret/secret_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func TestGenerateSecret(t *testing.T) {
9898

9999
for _, tc := range testCases {
100100
t.Run(tc.name, func(t *testing.T) {
101-
client := testclient.NewClientset()
101+
client := testclient.NewClientset()
102102
// Create a namespace
103103
_, err := client.CoreV1().Namespaces().Create(context.Background(), &corev1.Namespace{ObjectMeta: metav1.ObjectMeta{Name: tc.namespace}}, metav1.CreateOptions{})
104104
if err != nil {

0 commit comments

Comments
 (0)