Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#4253 - Upgrade Redis Version and increase Memory - Part 1 #4292

Merged

Conversation

guru-aot
Copy link
Collaborator

@guru-aot guru-aot commented Jan 25, 2025

Team, the below files are copied from bitnami (https://github.com/bitnami/charts/tree/main/bitnami/redis-cluster) for the charts, so please ignore the review on these files below
image
or in folders

base files in devops/helm/redis-cluster
devops/helm/redis-cluster/templates

Make file is created for easy installtion of helm charts.

The values.yaml overridden with values from the values-{NAMESPACE}.yaml.
The recommendation values are not given in the https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ link given, but as per the examples, redis cluster starts at a minimum configuration of Nano where the values are given in this https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15.

I will create a the next PR with the actual values for namespaces values-{NAMESPACE}.yaml.

To enable the github action initial commit of the file is created.

NOTE: Additional file changes
sources/camunda-docker-compose-core.yml - missed network type
sources/packages/forms/Dockerfile.dev is changed to enable development environment login

@guru-aot guru-aot marked this pull request as ready for review January 28, 2025 20:22
if [ "${{ inputs.action }}" == "install" ]; then
make install NAMESPACE=${{ secrets.OPENSHIFT_ENV_NAMESPACE }}
elif [ "${{ inputs.action }}" == "upgrade" ]; then
PASSWORD=$(oc get secret redis-cluster -n ${{ secrets.OPENSHIFT_ENV_NAMESPACE }} -o jsonpath="{.data.redis-password}" | base64 --decode)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double-checking, will it not print the Redis password to the GHA execution logs, right?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the output of this one? Is there any change expected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see the echo "::add-mask::$PASSWORD" now in the file.
Sharing the GHA dos reference here for future reference: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#masking-a-value-in-a-log

metrics:
## @param metrics.enabled Start a side-car prometheus exporter
##
enabled: false
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If time allows, can we have the metrics enabled to check the monitoring in sysdig?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will verify in the future PR

Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice start, please:

  • take look at the comments;
  • adjust the title;
  • assign the PR to yourself;
  • add some labels.

@guru-aot guru-aot self-assigned this Jan 28, 2025
@guru-aot guru-aot added the Devops Devops label Jan 28, 2025
@guru-aot guru-aot changed the title Initial commit #4253-Upgrade Redis Version and increase Memory- Part 1 Jan 28, 2025
Copy link

Copy link

Backend Unit Tests Coverage Report

Totals Coverage
Statements: 22.61% ( 3884 / 17179 )
Methods: 10.41% ( 226 / 2172 )
Lines: 26.01% ( 3350 / 12880 )
Branches: 14.48% ( 308 / 2127 )

Copy link

E2E Workflow Workers Coverage Report

Totals Coverage
Statements: 65.59% ( 589 / 898 )
Methods: 59.63% ( 65 / 109 )
Lines: 68.72% ( 468 / 681 )
Branches: 51.85% ( 56 / 108 )

Copy link

E2E Queue Consumers Coverage Report

Totals Coverage
Statements: 86.14% ( 1249 / 1450 )
Methods: 82.42% ( 136 / 165 )
Lines: 88.51% ( 1032 / 1166 )
Branches: 68.07% ( 81 / 119 )

Copy link

E2E SIMS API Coverage Report

Totals Coverage
Statements: 68.11% ( 6019 / 8837 )
Methods: 65.84% ( 742 / 1127 )
Lines: 71.94% ( 4712 / 6550 )
Branches: 48.71% ( 565 / 1160 )

@lewischen-aot lewischen-aot self-requested a review January 28, 2025 22:44
@andrewsignori-aot andrewsignori-aot changed the title #4253-Upgrade Redis Version and increase Memory- Part 1 #4253 - Upgrade Redis Version and increase Memory- Part 1 Jan 28, 2025
@andrewsignori-aot andrewsignori-aot changed the title #4253 - Upgrade Redis Version and increase Memory- Part 1 #4253 - Upgrade Redis Version and increase Memory - Part 1 Jan 28, 2025
Copy link
Collaborator

@andrewsignori-aot andrewsignori-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work, looks good 👍

Copy link
Collaborator

@lewischen-aot lewischen-aot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT 👍 Nice work

@guru-aot guru-aot added this pull request to the merge queue Jan 29, 2025
Merged via the queue into main with commit 6f6118b Jan 29, 2025
21 checks passed
@guru-aot guru-aot deleted the feature/#4253-Upgrade_Redis_version_and_increase_Memory branch January 29, 2025 00:15
Comment on lines +163 to +170
serviceAccount:
## @param serviceAccount.create Specifies whether a ServiceAccount should be created
##
create: true
## @param serviceAccount.name The name of the ServiceAccount to create
## If not set and create is true, a name is generated using the fullname template
##
name: ""
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, please check if service account creation is mandatory.
image

- ReadWriteOnce
## @param persistence.size Size of data volume
##
size: 8Gi
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, can't keep the pvc size to 1Gi as it is today?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Devops Devops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants