Skip to content

Commit 054dbdd

Browse files
committed
fix-caches
1 parent 7c8b27f commit 054dbdd

7 files changed

Lines changed: 150 additions & 21 deletions

charts/synapse/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
apiVersion: v2
33
name: synapse
44
description: matrix synapse kubernetes deployment
5-
version: 2.3.0
5+
version: 2.3.1
66
appVersion: 1.151.0

charts/synapse/templates/synapse-secret.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,12 @@ stringData:
348348
caches:
349349
expire_caches: true
350350
global_factor: {{ $.Values.synapse.caches.globalFactor }}
351+
{{- if $.Values.synapse.caches.perCacheFactors }}
352+
per_cache_factors:
353+
{{- range $key, $val := $.Values.synapse.caches.perCacheFactors }}
354+
{{ $key }}: {{ printf "%.1f" ($val | float64) }}
355+
{{- end }}
356+
{{- end }}
351357
cache_entry_ttl: {{ $.Values.synapse.caches.cacheEntryTtl }}
352358
sync_response_cache_duration: {{ $.Values.synapse.caches.syncResponseCacheDuration }}
353359
cache_autotuning:

charts/synapse/tests/golden/fixtures/test-synapse-secret-no-pgbouncer-stream-writers.golden.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ stringData:
224224
caches:
225225
expire_caches: true
226226
global_factor: 0.5
227+
per_cache_factors:
228+
does_pair_of_users_share_a_room: 5.0
229+
get_unread_event_push_actions_by_room_for_user: 10.0
227230
cache_entry_ttl: 30m
228231
sync_response_cache_duration: 2m
229232
cache_autotuning:
@@ -474,6 +477,9 @@ stringData:
474477
caches:
475478
expire_caches: true
476479
global_factor: 0.5
480+
per_cache_factors:
481+
does_pair_of_users_share_a_room: 5.0
482+
get_unread_event_push_actions_by_room_for_user: 10.0
477483
cache_entry_ttl: 30m
478484
sync_response_cache_duration: 2m
479485
cache_autotuning:
@@ -732,6 +738,9 @@ stringData:
732738
caches:
733739
expire_caches: true
734740
global_factor: 0.5
741+
per_cache_factors:
742+
does_pair_of_users_share_a_room: 5.0
743+
get_unread_event_push_actions_by_room_for_user: 10.0
735744
cache_entry_ttl: 30m
736745
sync_response_cache_duration: 2m
737746
cache_autotuning:
@@ -997,6 +1006,9 @@ stringData:
9971006
caches:
9981007
expire_caches: true
9991008
global_factor: 0.5
1009+
per_cache_factors:
1010+
does_pair_of_users_share_a_room: 5.0
1011+
get_unread_event_push_actions_by_room_for_user: 10.0
10001012
cache_entry_ttl: 30m
10011013
sync_response_cache_duration: 2m
10021014
cache_autotuning:
@@ -1262,6 +1274,9 @@ stringData:
12621274
caches:
12631275
expire_caches: true
12641276
global_factor: 0.5
1277+
per_cache_factors:
1278+
does_pair_of_users_share_a_room: 5.0
1279+
get_unread_event_push_actions_by_room_for_user: 10.0
12651280
cache_entry_ttl: 30m
12661281
sync_response_cache_duration: 2m
12671282
cache_autotuning:
@@ -1520,6 +1535,9 @@ stringData:
15201535
caches:
15211536
expire_caches: true
15221537
global_factor: 0.5
1538+
per_cache_factors:
1539+
does_pair_of_users_share_a_room: 5.0
1540+
get_unread_event_push_actions_by_room_for_user: 10.0
15231541
cache_entry_ttl: 30m
15241542
sync_response_cache_duration: 2m
15251543
cache_autotuning:
@@ -1785,6 +1803,9 @@ stringData:
17851803
caches:
17861804
expire_caches: true
17871805
global_factor: 0.5
1806+
per_cache_factors:
1807+
does_pair_of_users_share_a_room: 5.0
1808+
get_unread_event_push_actions_by_room_for_user: 10.0
17881809
cache_entry_ttl: 30m
17891810
sync_response_cache_duration: 2m
17901811
cache_autotuning:
@@ -2049,6 +2070,9 @@ stringData:
20492070
caches:
20502071
expire_caches: true
20512072
global_factor: 0.5
2073+
per_cache_factors:
2074+
does_pair_of_users_share_a_room: 5.0
2075+
get_unread_event_push_actions_by_room_for_user: 10.0
20522076
cache_entry_ttl: 30m
20532077
sync_response_cache_duration: 2m
20542078
cache_autotuning:
@@ -2309,6 +2333,9 @@ stringData:
23092333
caches:
23102334
expire_caches: true
23112335
global_factor: 0.5
2336+
per_cache_factors:
2337+
does_pair_of_users_share_a_room: 5.0
2338+
get_unread_event_push_actions_by_room_for_user: 10.0
23122339
cache_entry_ttl: 30m
23132340
sync_response_cache_duration: 2m
23142341
cache_autotuning:
@@ -2569,6 +2596,9 @@ stringData:
25692596
caches:
25702597
expire_caches: true
25712598
global_factor: 0.5
2599+
per_cache_factors:
2600+
does_pair_of_users_share_a_room: 5.0
2601+
get_unread_event_push_actions_by_room_for_user: 10.0
25722602
cache_entry_ttl: 30m
25732603
sync_response_cache_duration: 2m
25742604
cache_autotuning:
@@ -2834,6 +2864,9 @@ stringData:
28342864
caches:
28352865
expire_caches: true
28362866
global_factor: 0.5
2867+
per_cache_factors:
2868+
does_pair_of_users_share_a_room: 5.0
2869+
get_unread_event_push_actions_by_room_for_user: 10.0
28372870
cache_entry_ttl: 30m
28382871
sync_response_cache_duration: 2m
28392872
cache_autotuning:
@@ -3099,6 +3132,9 @@ stringData:
30993132
caches:
31003133
expire_caches: true
31013134
global_factor: 0.5
3135+
per_cache_factors:
3136+
does_pair_of_users_share_a_room: 5.0
3137+
get_unread_event_push_actions_by_room_for_user: 10.0
31023138
cache_entry_ttl: 30m
31033139
sync_response_cache_duration: 2m
31043140
cache_autotuning:
@@ -3349,6 +3385,9 @@ stringData:
33493385
caches:
33503386
expire_caches: true
33513387
global_factor: 0.5
3388+
per_cache_factors:
3389+
does_pair_of_users_share_a_room: 5.0
3390+
get_unread_event_push_actions_by_room_for_user: 10.0
33523391
cache_entry_ttl: 30m
33533392
sync_response_cache_duration: 2m
33543393
cache_autotuning:
@@ -3614,6 +3653,9 @@ stringData:
36143653
caches:
36153654
expire_caches: true
36163655
global_factor: 0.5
3656+
per_cache_factors:
3657+
does_pair_of_users_share_a_room: 5.0
3658+
get_unread_event_push_actions_by_room_for_user: 10.0
36173659
cache_entry_ttl: 30m
36183660
sync_response_cache_duration: 2m
36193661
cache_autotuning:
@@ -3872,6 +3914,9 @@ stringData:
38723914
caches:
38733915
expire_caches: true
38743916
global_factor: 0.5
3917+
per_cache_factors:
3918+
does_pair_of_users_share_a_room: 5.0
3919+
get_unread_event_push_actions_by_room_for_user: 10.0
38753920
cache_entry_ttl: 30m
38763921
sync_response_cache_duration: 2m
38773922
cache_autotuning:
@@ -4130,6 +4175,9 @@ stringData:
41304175
caches:
41314176
expire_caches: true
41324177
global_factor: 0.5
4178+
per_cache_factors:
4179+
does_pair_of_users_share_a_room: 5.0
4180+
get_unread_event_push_actions_by_room_for_user: 10.0
41334181
cache_entry_ttl: 30m
41344182
sync_response_cache_duration: 2m
41354183
cache_autotuning:
@@ -4395,6 +4443,9 @@ stringData:
43954443
caches:
43964444
expire_caches: true
43974445
global_factor: 0.5
4446+
per_cache_factors:
4447+
does_pair_of_users_share_a_room: 5.0
4448+
get_unread_event_push_actions_by_room_for_user: 10.0
43984449
cache_entry_ttl: 30m
43994450
sync_response_cache_duration: 2m
44004451
cache_autotuning:
@@ -4660,6 +4711,9 @@ stringData:
46604711
caches:
46614712
expire_caches: true
46624713
global_factor: 0.5
4714+
per_cache_factors:
4715+
does_pair_of_users_share_a_room: 5.0
4716+
get_unread_event_push_actions_by_room_for_user: 10.0
46634717
cache_entry_ttl: 30m
46644718
sync_response_cache_duration: 2m
46654719
cache_autotuning:
@@ -4925,6 +4979,9 @@ stringData:
49254979
caches:
49264980
expire_caches: true
49274981
global_factor: 0.5
4982+
per_cache_factors:
4983+
does_pair_of_users_share_a_room: 5.0
4984+
get_unread_event_push_actions_by_room_for_user: 10.0
49284985
cache_entry_ttl: 30m
49294986
sync_response_cache_duration: 2m
49304987
cache_autotuning:
@@ -5183,6 +5240,9 @@ stringData:
51835240
caches:
51845241
expire_caches: true
51855242
global_factor: 0.5
5243+
per_cache_factors:
5244+
does_pair_of_users_share_a_room: 5.0
5245+
get_unread_event_push_actions_by_room_for_user: 10.0
51865246
cache_entry_ttl: 30m
51875247
sync_response_cache_duration: 2m
51885248
cache_autotuning:

0 commit comments

Comments
 (0)