Bug #113118 update cpu limit in innodbclusters cr not work
| Submitted: | 17 Nov 2023 8:29 | Modified: | 17 Nov 2023 23:24 |
|---|---|---|---|
| Reporter: | Bing Ma (OCA) | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Operator | Severity: | S2 (Serious) |
| Version: | mysql-operator-0.12.0 | OS: | Ubuntu |
| Assigned to: | CPU Architecture: | Any |
[17 Nov 2023 23:24]
MySQL Verification Team
Thank you for your report.
[6 Feb 2024 16:57]
Andrey Hristov
Posted by developer:
Hi,
updating the limits is currently not allowed. However, specifying them at creation time is allowed. An example:
apiVersion: mysql.oracle.com/v2
kind: InnoDBCluster
metadata:
name: mycluster
namespace: mine
spec:
instances: 3
tlsUseSelfSigned: false
router:
instances: 1
tlsSecretName: mycluster-router-tls-secret
secretName: mycluster-cluster-secret
imagePullPolicy : IfNotPresent
baseServerId: 2000
version: 8.3.0
serviceAccountName: mycluster-sa
tlsCASecretName: mycluster-ca-secret
tlsSecretName: mycluster-tls-secret
podSpec:
containers:
- name: mysql
resources:
limits:
cpu: 750m
memory: 4096Mi
requests:
cpu: 250m
memory: 2048Mi
terminationGracePeriodSeconds: 10
[17 May 2024 14:38]
Eric Trinh
Would be really great to be allowed to better comply with declarative aspect of kubernetes where what you declare is what is applied.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
Description: update cpu limit in innodbclusters cr not work, but the container's cpu limit not changed ===in ic resources containers: - image: release-ci.xxx.io/demo/community-server:8.2.0 name: mysql resources: limits: cpu: "2" memory: 1Gi requests: cpu: 100m memory: 512Mi ===the container resources: limits: cpu: '1' memory: 1Gi requests: cpu: 100m memory: 512Mi How to repeat: change the cpu limit in the ic cr