Skip to content

Commit 5c11abe

Browse files
authored
refactor: set default replicas to 1 for secondary storage (#4150)
1 parent b5d23cc commit 5c11abe

File tree

7 files changed

+16
-0
lines changed

7 files changed

+16
-0
lines changed

charts/camunda-platform-8.8/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1491,6 +1491,7 @@ Please see the corresponding [release guide](../../docs/release.md) to find out
14911491
| `global.orchestration.Affinity` | can be used to define pod affinity or anti-affinity https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity | |
14921492
| `orchestration.priorityClassName` | can be used to define the broker pods priority https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass | `""` |
14931493
| `orchestration.index.prefix` | if specified, defines web apps index prefix in Elasticsearch/OpenSearch. Note, for Zeebe index prefix, use "global.elasticsearch.prefix". | `""` |
1494+
| `orchestration.index.replicas` | can be used to specify the number of replicas for indices in Elasticsearch/OpenSearch | `1` |
14941495
| `orchestration.retention` | configuration for Camunda exporter index. | |
14951496
| `orchestration.retention.enabled` | if true, the ILM Policy is created and applied to the index templates. | `false` |
14961497
| `orchestration.retention.minimumAge` | defines how old the data must be, before the data is deleted as a duration. | `30d` |

charts/camunda-platform-8.8/templates/orchestration/configmap.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,8 @@ data:
287287
minimumAge: {{ .Values.orchestration.history.retention.minimumAge | quote }}
288288
policyName: {{ .Values.orchestration.history.retention.policyName | quote }}
289289
{{- end }}
290+
index:
291+
numberOfReplicas: {{ .Values.orchestration.index.replicas }}
290292
awsEnabled: {{ .Values.global.opensearch.aws.enabled | default false }}
291293
{{- end }}
292294

charts/camunda-platform-8.8/test/unit/orchestration/golden/configmap-authorizations.golden.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ data:
153153
clusterName: elasticsearch
154154
# Database full url
155155
url: "http://camunda-platform-test-elasticsearch:9200"
156+
index:
157+
numberOfReplicas: 1
156158
awsEnabled: false
157159
158160
#

charts/camunda-platform-8.8/test/unit/orchestration/golden/configmap-log4j2.golden.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ data:
153153
clusterName: elasticsearch
154154
# Database full url
155155
url: "http://camunda-platform-test-elasticsearch:9200"
156+
index:
157+
numberOfReplicas: 1
156158
awsEnabled: false
157159
158160
#

charts/camunda-platform-8.8/test/unit/orchestration/golden/configmap.golden.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ data:
153153
clusterName: elasticsearch
154154
# Database full url
155155
url: "http://camunda-platform-test-elasticsearch:9200"
156+
index:
157+
numberOfReplicas: 1
156158
awsEnabled: false
157159
158160
#

charts/camunda-platform-8.8/values.schema.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6078,6 +6078,11 @@
60786078
"type": "string",
60796079
"description": "if specified, defines web apps index prefix in Elasticsearch/OpenSearch. Note, for Zeebe index prefix, use \"global.elasticsearch.prefix\".",
60806080
"default": ""
6081+
},
6082+
"replicas": {
6083+
"type": "number",
6084+
"description": "can be used to specify the number of replicas for indices in Elasticsearch/OpenSearch",
6085+
"default": 1
60816086
}
60826087
}
60836088
},

charts/camunda-platform-8.8/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2853,6 +2853,8 @@ orchestration:
28532853
index:
28542854
## @param orchestration.index.prefix if specified, defines web apps index prefix in Elasticsearch/OpenSearch. Note, for Zeebe index prefix, use "global.elasticsearch.prefix".
28552855
prefix: ""
2856+
## @param orchestration.index.replicas can be used to specify the number of replicas for indices in Elasticsearch/OpenSearch
2857+
replicas: 1
28562858

28572859
## @extra orchestration.retention configuration for Camunda exporter index.
28582860
retention:

0 commit comments

Comments
 (0)