@@ -211,7 +211,7 @@ data:
211211 name: whoami_hash
212212 - match:
213213 safe_regex:
214- regex: '^/_matrix/client/unstable/org.matrix.simplified_msc3575/sync'
214+ regex: '^/_matrix/client/unstable/org\ .matrix\ .simplified_msc3575/sync'
215215 route:
216216 timeout: 300s
217217 auto_host_rewrite: true
@@ -606,39 +606,60 @@ data:
606606 cluster: httpd-matrix-auth
607607 - match:
608608 safe_regex:
609- regex: '^/_matrix/client/(r0|v3|unstable)/keys/query $'
609+ regex: '^/_matrix/client/(r0|v3|unstable)/keys/changes $'
610610 route:
611611 timeout: 300s
612612 auto_host_rewrite: true
613613 cluster: httpd-client-keys
614614 - match:
615615 safe_regex:
616- regex: '^/_matrix/client/(r0|v3|unstable)/keys/changes $'
616+ regex: '^/_matrix/client/(r0|v3|unstable)/keys/claim $'
617617 route:
618618 timeout: 300s
619619 auto_host_rewrite: true
620620 cluster: httpd-client-keys
621621 - match:
622622 safe_regex:
623- regex: '^/_matrix/client/(r0|v3|unstable)/keys/claim $'
623+ regex: '^/_matrix/client/(r0|v3|unstable)/keys/query $'
624624 route:
625625 timeout: 300s
626626 auto_host_rewrite: true
627- cluster: httpd-client-keys
627+ cluster: httpd-client-keys-user-ring-hash
628+ hash_policy:
629+ - header:
630+ header_name: X-Hash-Key
631+ typed_per_filter_config:
632+ envoy.filters.http.lua:
633+ "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute
634+ name: whoami_hash
628635 - match:
629636 safe_regex:
630637 regex: '^/_matrix/client/(r0|v3|unstable)/room_keys/'
631638 route:
632639 timeout: 300s
633640 auto_host_rewrite: true
634- cluster: httpd-client-keys
641+ cluster: httpd-client-keys-user-ring-hash
642+ hash_policy:
643+ - header:
644+ header_name: X-Hash-Key
645+ typed_per_filter_config:
646+ envoy.filters.http.lua:
647+ "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute
648+ name: whoami_hash
635649 - match:
636650 safe_regex:
637651 regex: '^/_matrix/client/(r0|v3|unstable)/room_keys/.*'
638652 route:
639653 timeout: 300s
640654 auto_host_rewrite: true
641- cluster: httpd-client-keys
655+ cluster: httpd-client-keys-user-ring-hash
656+ hash_policy:
657+ - header:
658+ header_name: X-Hash-Key
659+ typed_per_filter_config:
660+ envoy.filters.http.lua:
661+ "@type": type.googleapis.com/envoy.extensions.filters.http.lua.v3.LuaPerRoute
662+ name: whoami_hash
642663 - match:
643664 safe_regex:
644665 regex: '^/_matrix/client/(api/v1|r0|v3|unstable)/rooms/.*/redact.*'
@@ -928,7 +949,7 @@ data:
928949 cluster: httpd-client-reader
929950 - match:
930951 safe_regex:
931- regex: '^/_matrix/client/unstable/org.matrix.msc4140/delayed_events(/.*/restart)?$'
952+ regex: '^/_matrix/client/unstable/org\ .matrix\ .msc4140/delayed_events(/.*/restart)?$'
932953 route:
933954 timeout: 300s
934955 auto_host_rewrite: true
@@ -1090,6 +1111,31 @@ data:
10901111 socket_address:
10911112 address: synapse-client-keys-headless
10921113 port_value: 8008
1114+ - name: httpd-client-keys-user-ring-hash
1115+ connect_timeout: 1.00s
1116+ type: STRICT_DNS
1117+ dns_lookup_family: V4_ONLY
1118+ ignore_health_on_host_removal: true
1119+ lb_policy: RING_HASH
1120+ circuit_breakers:
1121+ thresholds:
1122+ - priority: DEFAULT
1123+ max_connections: 30000
1124+ max_requests: 8192
1125+ max_retries: 3
1126+ - priority: HIGH
1127+ max_connections: 30000
1128+ max_requests: 8192
1129+ max_retries: 3
1130+ load_assignment:
1131+ cluster_name: httpd-client-keys-user-ring-hash
1132+ endpoints:
1133+ - lb_endpoints:
1134+ - endpoint:
1135+ address:
1136+ socket_address:
1137+ address: synapse-client-keys-headless
1138+ port_value: 8008
10931139 - name: httpd-federation-ip-hash
10941140 connect_timeout: 1.00s
10951141 type: STRICT_DNS
0 commit comments