Skip to content

Commit

Permalink
renaming akkaClusterMaxFramesize in Helm config after migration to Pekko
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed Oct 6, 2023
1 parent f878de5 commit 01f82e5
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion deployment/helm/ditto/Chart.yaml
Expand Up @@ -16,7 +16,7 @@ description: |
A digital twin is a virtual, cloud based, representation of his real world counterpart
(real world “Things”, e.g. devices like sensors, smart heating, connected cars, smart grids, EV charging stations etc).
type: application
version: 3.3.9 # chart version is effectively set by release-job
version: 3.3.10 # chart version is effectively set by release-job
appVersion: nightly
keywords:
- iot-chart
Expand Down
4 changes: 3 additions & 1 deletion deployment/helm/ditto/templates/connectivity-deployment.yaml
Expand Up @@ -164,7 +164,7 @@ spec:
value: "{{ .Values.global.prometheus.port }}"
{{- end }}
- name: REMOTE_MAX_FRAMESIZE
value: "{{ .Values.global.limits.akkaClusterMaxFramesize }}"
value: "{{ .Values.global.limits.clusterMaxFramesize }}"
- name: LIMITS_THINGS_MAX_SIZE
value: "{{ .Values.global.limits.thingsMaxSize }}"
- name: LIMITS_POLICIES_MAX_SIZE
Expand Down Expand Up @@ -211,6 +211,8 @@ spec:
value: "{{ .Values.connectivity.config.cleanup.timerThreshold }}"
- name: CLEANUP_CREDITS_PER_BATCH
value: "{{ .Values.connectivity.config.cleanup.creditsPerBatch }}"
- name: CLEANUP_DELETE_FINAL_DELETED_SNAPSHOT
value: "{{ .Values.connectivity.config.cleanup.deleteFinalDeletedSnapshot }}"
- name: CONNECTION_SNAPSHOT_INTERVAL
value: "{{ .Values.connectivity.config.persistence.snapshots.interval }}"
- name: CONNECTION_SNAPSHOT_THRESHOLD
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/dittoui-deployment.yaml
Expand Up @@ -68,7 +68,7 @@ spec:
cpu: {{ mulf .Values.dittoui.resources.cpu 1000 }}m
memory: {{ .Values.dittoui.resources.memoryMi }}Mi
limits:
# cpu: ""
# cpu: # don't limit
memory: {{ .Values.dittoui.resources.memoryMi }}Mi
volumeMounts:
- name: dittoui-nginx-conf
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/gateway-deployment.yaml
Expand Up @@ -161,7 +161,7 @@ spec:
value: "{{ .Values.global.prometheus.port }}"
{{- end }}
- name: REMOTE_MAX_FRAMESIZE
value: "{{ .Values.global.limits.akkaClusterMaxFramesize }}"
value: "{{ .Values.global.limits.clusterMaxFramesize }}"
- name: LIMITS_THINGS_MAX_SIZE
value: "{{ .Values.global.limits.thingsMaxSize }}"
- name: LIMITS_POLICIES_MAX_SIZE
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/nginx-config.yaml
Expand Up @@ -24,7 +24,7 @@ metadata:
{{ $labels | indent 4 }}
data:
{{ $path | replace "nginx-config/" ""}}: |-
{{ $root.Files.Get $path | indent 4 }}
{{ tpl ($root.Files.Get $path) $ | indent 4 }}
---
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/nginx-deployment.yaml
Expand Up @@ -93,7 +93,7 @@ spec:
cpu: {{ mulf .Values.nginx.resources.cpu 1000 }}m
memory: {{ .Values.nginx.resources.memoryMi }}Mi
limits:
# cpu: ""
# cpu: # don't limit
memory: {{ .Values.nginx.resources.memoryMi }}Mi
volumeMounts:
- name: nginx-conf
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/policies-deployment.yaml
Expand Up @@ -182,7 +182,7 @@ spec:
- name: CLUSTER_DOWNING_DOWN_ALL_WHEN_UNSTABLE
value: "{{ .Values.global.cluster.downAllWhenUnstable }}"
- name: REMOTE_MAX_FRAMESIZE
value: "{{ .Values.global.limits.akkaClusterMaxFramesize }}"
value: "{{ .Values.global.limits.clusterMaxFramesize }}"
- name: LIMITS_THINGS_MAX_SIZE
value: "{{ .Values.global.limits.thingsMaxSize }}"
- name: LIMITS_POLICIES_MAX_SIZE
Expand Down
6 changes: 3 additions & 3 deletions deployment/helm/ditto/templates/swaggerui-deployment.yaml
Expand Up @@ -54,7 +54,7 @@ spec:
- |
mkdir -p /usr/share/nginx/html/openapi
curl -sL https://raw.githubusercontent.com/eclipse/ditto/{{ .Chart.AppVersion }}/documentation/src/main/resources/openapi/ditto-api-2.yml -o /usr/share/nginx/html/openapi/ditto-api-2.yml
sed --in-place "\=- url: 'https://ditto.eclipseprojects.io/api/2'=d" /usr/share/nginx/html/openapi/ditto-api-2.yml
sed --in-place "\=- url: 'https://ditto.eclipseprojects.io/'=d" /usr/share/nginx/html/openapi/ditto-api-2.yml
sed --in-place "/description: online Ditto Sandbox/d" /usr/share/nginx/html/openapi/ditto-api-2.yml
echo "removing Google auth from ditto-api-2.yml"
sed --in-place "/- Google:/,+1d" /usr/share/nginx/html/openapi/ditto-api-2.yml
Expand All @@ -73,7 +73,7 @@ spec:
sed --in-place "/- DevOpsBearer: \[]/d" /usr/share/nginx/html/openapi/ditto-api-2.yml
sed --in-place "/ DevOpsBearer:/,+4d" /usr/share/nginx/html/openapi/ditto-api-2.yml
{{- end }}
sed --in-place "s=- url: /api/2=- url: {{ .Values.global.proxyPart }}/api/2=g" /usr/share/nginx/html/openapi/ditto-api-2.yml
sed --in-place "s=- url: /=- url: {{ .Values.global.proxyPart }}/=g" /usr/share/nginx/html/openapi/ditto-api-2.yml
cp -rv /usr/share/nginx/html/openapi/. /init-config/
volumeMounts:
- name: swagger-ui-init-config
Expand Down Expand Up @@ -104,7 +104,7 @@ spec:
cpu: {{ mulf .Values.swaggerui.resources.cpu 1000 }}m
memory: {{ .Values.swaggerui.resources.memoryMi }}Mi
limits:
# cpu: ""
# cpu: # don't limit
memory: {{ .Values.swaggerui.resources.memoryMi }}Mi
volumeMounts:
- name: swagger-ui-init-config
Expand Down
2 changes: 1 addition & 1 deletion deployment/helm/ditto/templates/things-deployment.yaml
Expand Up @@ -183,7 +183,7 @@ spec:
- name: CLUSTER_DOWNING_DOWN_ALL_WHEN_UNSTABLE
value: "{{ .Values.global.cluster.downAllWhenUnstable }}"
- name: REMOTE_MAX_FRAMESIZE
value: "{{ .Values.global.limits.akkaClusterMaxFramesize }}"
value: "{{ .Values.global.limits.clusterMaxFramesize }}"
- name: LIMITS_THINGS_MAX_SIZE
value: "{{ .Values.global.limits.thingsMaxSize }}"
- name: LIMITS_POLICIES_MAX_SIZE
Expand Down
Expand Up @@ -161,7 +161,7 @@ spec:
- name: CLUSTER_DOWNING_DOWN_ALL_WHEN_UNSTABLE
value: "{{ .Values.global.cluster.downAllWhenUnstable }}"
- name: REMOTE_MAX_FRAMESIZE
value: "{{ .Values.global.limits.akkaClusterMaxFramesize }}"
value: "{{ .Values.global.limits.clusterMaxFramesize }}"
- name: LIMITS_THINGS_MAX_SIZE
value: "{{ .Values.global.limits.thingsMaxSize }}"
- name: LIMITS_POLICIES_MAX_SIZE
Expand Down
4 changes: 2 additions & 2 deletions deployment/helm/ditto/values.yaml
Expand Up @@ -54,8 +54,8 @@ global:
downAllWhenUnstable: "on"
# limits contains information about limit configuration, e.g. towards max. entity and payload sizes
limits:
# akkaClusterMaxFramesize the maximum serialized message size in the cluster, including header data, default: 256 KiB
akkaClusterMaxFramesize: 256k
# clusterMaxFramesize the maximum serialized message size in the cluster, including header data, default: 256 KiB
clusterMaxFramesize: 256k
# thingsMaxSize the maximum possible size of "Thing" entities, default: 100k
thingsMaxSize: 100k
# policiesMaxSize the maximum possible size of "Policy" entities, default: 100k
Expand Down

0 comments on commit 01f82e5

Please sign in to comment.