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

PXC restore jobs pod resources requests values are overwritten by spec.resources.limits attributes from pxc-restore resource definition #1671

Open
konoox opened this issue Mar 14, 2024 · 1 comment
Labels

Comments

@konoox
Copy link

konoox commented Mar 14, 2024

Report

PXC restore jobs pod resources requests values are overwritten by spec.resources.limits attributes from pxc-restore resource definition.

More about the problem

When you create a new pxc-restore resource, you can specify spec.resources.requests and spec.resources.limits attributes in the yaml definition. However, no matter what you put inside the spec.resources.requests attributes, both resources requests and limits in the related jobs pod will take the values specified in spec.resources.limits attributes.

Steps to reproduce

1 - Create a pxc cluster with a backup storage configured
2 - Run a pxc backup of the cluster and wait for its successfull completion
3 - Prepare a pxc restore definition targeting the previous backup with both spec.resources.requests and spec.resources.limits attributes defined with different values
4 - Apply the pxc restore resource on the cluster
5 - See that the related job pod resources requests and limits are only filled by the values specified in the spec.resources.limits attributes of the restore definition. spec.resources.requests attributes are just ignored.

Versions

1 - Kubernetes - v1.27.6
2 - Operator - Percona Operator for MySQL based on Percona XtraDB Cluster 1.13.0
3 - Database - MySQL XtraDB 8.0

Anything else?

No response

@konoox konoox added the bug label Mar 14, 2024
@spron-in
Copy link
Collaborator

spron-in commented Apr 1, 2024

Raised https://perconadev.atlassian.net/browse/K8SPXC-1379

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

No branches or pull requests

2 participants