Skip to content

Commit

Permalink
support for compressed configuration (pegasystems#672)
Browse files Browse the repository at this point in the history
  • Loading branch information
akshithac-21 authored Dec 5, 2023
1 parent 9ccd6b5 commit 1dc316c
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions charts/pega/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,23 @@ tier:
webXML: |-
...
```
### Pega compressed configuration files

To use [Pega configuration files](https://github.com/pegasystems/pega-helm-charts/blob/master/charts/pega/README.md#pega-configuration-files) in compressed format when deploying Pega Platform, replace each file with its compressed format file by completing the following steps:

1) Compress each configuration file using the following command in your local terminal:
```
- cat "<path_to_actual_uncompressed_file_in_local>" | gzip -c | base64
```
Example for a prconfig.xml file:
```
cat "pega-helm-charts/charts/pega/config/deploy/prconfig.xml" | gzip -c | base64
```
2) Provide the file content with the output of the command for each file executed.
3) Set the `compressedConfigurations` in values.yaml to `true`, as in the following example:
```yaml
compressedConfigurations: true
```

### Pega diagnostic user

Expand Down
6 changes: 6 additions & 0 deletions charts/pega/templates/pega-environment-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ data:
JDBC_TIMEOUT_PROPERTIES_RO: {{ .Values.global.jdbc.readerConnectionTimeoutProperties }}
{{- else }}
JDBC_TIMEOUT_PROPERTIES_RO: ""
{{- end }}
# compression flag to decompress the config files of Pega Installation.
{{- if .Values.global.compressedConfigurations }}
IS_PEGA_CONFIG_COMPRESSED: "{{ .Values.global.compressedConfigurations }}"
{{- else }}
IS_PEGA_CONFIG_COMPRESSED: "false"
{{- end }}
# Rules schema of the Pega installation
{{ if (eq (include "performUpgradeAndDeployment" .) "true") }}
Expand Down
4 changes: 4 additions & 0 deletions charts/pega/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ global:
serviceHost: "API_SERVICE_ADDRESS"
httpsServicePort: "SERVICE_PORT_HTTPS"

# Set the `compressedConfigurations` parameter to `true` when the configuration files under charts/pega/config/deploy are in compressed format.
# For more information, see the “Pega compressed configuration files” section in the Pega Helm chart documentation.
compressedConfigurations: false

# Specify the Pega tiers to deploy
tier:
- name: "web"
Expand Down

0 comments on commit 1dc316c

Please sign in to comment.