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

Operator should prevent reducing the number of cores #3639

Closed
nicolaferraro opened this issue Jan 28, 2022 · 0 comments · Fixed by #3640
Closed

Operator should prevent reducing the number of cores #3639

nicolaferraro opened this issue Jan 28, 2022 · 0 comments · Fixed by #3640
Labels
kind/bug Something isn't working

Comments

@nicolaferraro
Copy link
Member

Version & Environment

Redpanda version: (use rpk version): latest

What went wrong?

If a user creates a Redpanda Cluster CR with e.g. 3 cores (computed from a combination of CPU/memory request) and then reduces it to e.g. 2 cores, the operator currently allows the change but the node fails to start.

What should have happened instead?

The operator should block changes resulting in a reduction of cores, to prevent node downtime. Possibly it should enforce this only for already running clusters.

How to reproduce the issue?

  1. Create a cluster CR with spec->replicas=1 and spec->resources->request and limit set to cpu=3, memory=6Gi
  2. Wait for the cluster to run
  3. Update the CR setting spec->resources->request and limit to cpu=2, memory=6Gi
  4. The pod will crash on start

cc: @alenkacz , @0xdiba

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant