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

redpanda: simplify setting redpanda resources #375

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

chrisseto
Copy link
Contributor

@chrisseto chrisseto commented Jan 8, 2025

Based on:

8ddd726 redpanda: refactor resource flag computations

This commit has no user facing changes. It refactors the various functions that
affect and define the redpanda container's resources and the resource related
CLI flags (--smp, --memory, --reserve-memory, and --overprovisioned)
into methods on the RedpandaResource struct.

35492dc redpanda: simplify setting redpanda resources

Prior to this commit it was not possible to "mix and match" the resource
requests and limits of the redpanda container. The redpanda chart also required
users to grok a new model of resources unique to the chart which made the chart
less user friendly.

This commit introduces a more user friendly and backwards compatible way of
directly controlling the requests and limits of the redpanda container. Rather
than directly exposing the --smp, --memory, --reserve-memory, and
--overprovisioned flags to the end user, this method will infer them from the
provided values with updated best practices.

redpanda-data/helm-charts#1494
K8S-325
K8S-434

@chrisseto chrisseto changed the title Chris/p/redpanda direct resources redpanda: simplify setting redpanda resources Jan 8, 2025
@chrisseto
Copy link
Contributor Author

This is a mirror/rebase of redpanda-data/helm-charts#1622 as the operator is now the host of the charts.

This commit has no user facing changes. It refactors the various functions that
affect and define the redpanda container's resources and the resource related
CLI flags (`--smp`, `--memory`, `--reserve-memory`, and `--overprovisioned`)
into methods on the `RedpandaResource` struct.
Prior to this commit it was not possible to "mix and match" the resource
requests and limits of the redpanda container. The redpanda chart also required
users to grok a new model of resources unique to the chart which made the chart
less user friendly.

This commit introduces a more user friendly and backwards compatible way of
directly controlling the requests and limits of the redpanda container. Rather
than directly exposing the `--smp`, `--memory`, `--reserve-memory`, and
`--overprovisioned` flags to the end user, this method will infer them from the
provided values with updated best practices.

redpanda-data/helm-charts#1494
K8S-325
K8S-434
@chrisseto chrisseto force-pushed the chris/p/redpanda-direct-resources branch from 35492dc to 1e8fa75 Compare January 9, 2025 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant