File tree Expand file tree Collapse file tree 3 files changed +58
-3
lines changed Expand file tree Collapse file tree 3 files changed +58
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
name : synapse
3
- version : 0.23 .0
3
+ version : 0.24 .0
Original file line number Diff line number Diff line change 1
1
{{- range $worker, $options := .Values.synapse.autoscalingWorkers }}
2
- {{- if $options.autoscaling.enabled }}
3
2
{{- $name := $worker | replace "_" "-"}}
3
+ {{- if $options.autoscaling.enabled }}
4
4
---
5
5
apiVersion : autoscaling/v2
6
6
kind : HorizontalPodAutoscaler
19
19
name : cpu
20
20
target :
21
21
type : Utilization
22
- averageUtilization : 75
22
+ averageUtilization : 65
23
23
behavior :
24
24
scaleDown :
25
25
stabilizationWindowSeconds : 300
34
34
value : 2
35
35
periodSeconds : 15
36
36
{{- end }}
37
+ {{- if $options.kedaAutoscaling.enabled }}
38
+ ---
39
+ apiVersion : keda.sh/v1alpha1
40
+ kind : ScaledObject
41
+ metadata :
42
+ name : synapse-{{ $name }}-cron
43
+ spec :
44
+ scaleTargetRef :
45
+ name : synapse-{{ $name }}
46
+ minReplicaCount : {{ $options.kedaAutoscaling.minReplicaCount }}
47
+ cooldownPeriod : 300
48
+ triggers :
49
+ - type : cron
50
+ metadata :
51
+ timezone : {{ $options.kedaAutoscaling.timezone | quote }}
52
+ start : {{ $options.kedaAutoscaling.start | quote }}
53
+ end : {{ $options.kedaAutoscaling.end | quote }}
54
+ desiredReplicas : {{ $options.kedaAutoscaling.desiredReplicas | quote }}
55
+ {{- end }}
37
56
{{- end }}
Original file line number Diff line number Diff line change @@ -36,27 +36,63 @@ synapse:
36
36
federation_sender :
37
37
replicas : 1
38
38
resources : {}
39
+ # https://keda.sh/docs/2.17/scalers/cron/
40
+ kedaAutoscaling :
41
+ enabled : false
42
+ timezone : " Europe/Kyiv"
43
+ start : " 0 9 * * *"
44
+ end : " 0 19 * * *"
45
+ desiredReplicas : 5
46
+ minReplicaCount : 2
47
+ # HPA
39
48
autoscaling :
40
49
enabled : true
41
50
minReplicas : 1
42
51
maxReplicas : 10
43
52
client_reader :
44
53
replicas : 2
45
54
resources : {}
55
+ # https://keda.sh/docs/2.17/scalers/cron/
56
+ kedaAutoscaling :
57
+ enabled : false
58
+ timezone : " Europe/Kyiv"
59
+ start : " 0 9 * * *"
60
+ end : " 0 19 * * *"
61
+ desiredReplicas : 15
62
+ minReplicaCount : 5
63
+ # HPA
46
64
autoscaling :
47
65
enabled : true
48
66
minReplicas : 1
49
67
maxReplicas : 10
50
68
event_creator :
51
69
replicas : 2
52
70
resources : {}
71
+ # https://keda.sh/docs/2.17/scalers/cron/
72
+ kedaAutoscaling :
73
+ enabled : false
74
+ timezone : " Europe/Kyiv"
75
+ start : " 0 9 * * *"
76
+ end : " 0 19 * * *"
77
+ desiredReplicas : 5
78
+ minReplicaCount : 2
79
+ # HPA
53
80
autoscaling :
54
81
enabled : true
55
82
minReplicas : 1
56
83
maxReplicas : 10
57
84
media_repository :
58
85
replicas : 2
59
86
resources : {}
87
+ # https://keda.sh/docs/2.17/scalers/cron/
88
+ kedaAutoscaling :
89
+ enabled : false
90
+ timezone : " Europe/Kyiv"
91
+ start : " 0 9 * * *"
92
+ end : " 0 19 * * *"
93
+ desiredReplicas : 5
94
+ minReplicaCount : 2
95
+ # HPA
60
96
autoscaling :
61
97
enabled : true
62
98
minReplicas : 1
You can’t perform that action at this time.
0 commit comments