Non clustered redis options #559

Closed
julienym wants to merge 8 commits from main into main
julienym commented 2023-11-11 00:17:23 +00:00 (Migrated from gitea.com)

Description of the change

Enable the options to use a standalone or replication non clustered Redis

Benefits

Cluster Redis requires 6 instances/pod, harder to start and explore the product.

Possible drawbacks

Might be missing updated documentation

Applicable issues

Additional information

⚠ BREAKING

Checklist

  • Parameters are documented in the values.yaml and added to the README.md using readme-generator-for-helm
  • Breaking changes are documented in the README.md
  • Templating unittests are added
<!-- Before you open the request please review the following guidelines and tips to help it be more easily integrated: - Describe the scope of your change - i.e. what the change does. - Describe any known limitations with your change. - Please run any tests or examples that can exercise your modified code. Thank you for contributing! We will try to review, test and integrate the change as soon as we can. --> ### Description of the change Enable the options to use a standalone or replication non clustered Redis ### Benefits Cluster Redis requires 6 instances/pod, harder to start and explore the product. ### Possible drawbacks Might be missing updated documentation ### Applicable issues ### Additional information ### ⚠ BREAKING ### Checklist <!-- [Place an '[X]' (no spaces) in all applicable fields. Please remove unrelated fields.] --> - [ ] Parameters are documented in the `values.yaml` and added to the `README.md` using [readme-generator-for-helm](https://github.com/bitnami-labs/readme-generator-for-helm) - [ ] Breaking changes are documented in the `README.md` - [ ] Templating unittests are added
pat-s commented 2023-11-16 21:02:24 +00:00 (Migrated from gitea.com)

@julienym Thanks for the request/pointer. We're currently discussing this internally and will come up with some changes/feedback in due time. Thanks for your patience.

@julienym Thanks for the request/pointer. We're currently discussing this internally and will come up with some changes/feedback in due time. Thanks for your patience.
pat-s commented 2024-03-03 20:50:09 +00:00 (Migrated from gitea.com)

@julienym Sorry for the long delay!

I'd say adding a non-clustered redis is in fact a good idea, as an option for non-HA deployments. Therefore I'd suggest to use the "standalone" mode with just one replica by default - so that non-HA users can enable the option and get a minimal one-pod setup.

I'd also leave all other options to the defaults of the sub-chart. Users can always change them as needed. What is important for users is mainly the general availability of the sub-chart.

Do you want to update the version and the suggested changes from above?

@julienym Sorry for the long delay! I'd say adding a non-clustered redis is in fact a good idea, as an option for non-HA deployments. Therefore I'd suggest to use the "standalone" mode with just one replica by default - so that non-HA users can enable the option and get a minimal one-pod setup. I'd also leave all other options to the defaults of the sub-chart. Users can always change them as needed. What is important for users is mainly the general availability of the sub-chart. Do you want to update the version and the suggested changes from above?
julienym commented 2024-03-27 00:27:27 +00:00 (Migrated from gitea.com)

@pat-s Done, ran unittests and make readme too

@pat-s Done, ran unittests and make readme too
justusbunsi commented 2024-03-27 05:33:06 +00:00 (Migrated from gitea.com)

@julienym Highly appreciate your continuing. I just skimmed over the changes. Please add unit tests to ensure correct rendering with the new options. Some useful testing scenarios:

  • Fail when both redis options are enabled
  • Render expected resources when standalone redis is enabled
  • Configure Gitea to Redis standalone when enabled
@julienym Highly appreciate your continuing. I just skimmed over the changes. Please add unit tests to ensure correct rendering with the new options. Some useful testing scenarios: - Fail when both redis options are enabled - Render expected resources when standalone redis is enabled - Configure Gitea to Redis standalone when enabled
julienym commented 2024-04-03 21:53:12 +00:00 (Migrated from gitea.com)

@justusbunsi Did my best, hopefully everything is fine!

@justusbunsi Did my best, hopefully everything is fine!
pat-s commented 2024-05-31 12:16:09 +00:00 (Migrated from gitea.com)

@justusbunsi Do you want to check this again so it can maybe make it into the upcoming 1.22 release?

@justusbunsi Do you want to check this again so it can maybe make it into the upcoming 1.22 release?
pat-s commented 2024-07-02 08:45:08 +00:00 (Migrated from gitea.com)

Superseded by #672

Superseded by #672

Pull request closed

Sign in to join this conversation.
No description provided.