PXC helm configuration sets equivalent limits on each container

Description

As in topic when I deploy pxc with pxc limits set to xGB and x cores it shares that limits through all containers.

 

 

Its pathologic situation that logs container with real usage < 25mb locate 4gb ram at my node.

Is there any hint to fix that problem? Or fix in pxc is needed ?

Environment

Kubernetes v1.19
Helm 3.5.4
Pxc 1.7

Smart Checklist

Activity

Jira Bot August 13, 2021 at 7:56 PM

To:
CC:

Hi, I'm jira-bot, Percona's Jira automation tool. I've detected that someone from
Percona has made an edit to the Summary field of an issue that you reported.

I'm not sentient (yet) so I'm not sure whether the person fixed a typo, changed
a few words, or completely rewrote the text. In any case, it is Percona Engineering's
intention to make the Summary and Description of an issue as accurate as possible
so that we're fixing the actual problem you're encountering, and to avoid
misunderstandings about symptoms and causes.

If the current Summary does not accurately reflect the problem you are reporting,
or if you feel the change was otherwise inappropriate in some way, please add a
new comment explaining things and we'll address it as soon as we can.

This message will be added only once per issue, regardless of how many times
the Summary is edited.

message-code:summary-edited

Lalit Choudhary July 8, 2021 at 11:43 AM

Hi

Thank you for the PR.

Paweł Babilas May 21, 2021 at 9:58 AM

Hi, thanks for answear. dunno how i missed this out. PR was send. Thanks

Mykola Marzhan May 10, 2021 at 7:28 AM

Hi ,

once again, we have different sections for different containers in Pod
1. main container - https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/cr.yaml#L76-L86
2. sidecars - https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/cr.yaml#L87-L93
3. log containers - https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/cr.yaml#L352-L355
4. pmm - https://github.com/percona/percona-xtradb-cluster-operator/blob/main/deploy/cr.yaml#L363-L366

if you configured all these sections correctly, without a helm chart - everything should work fine.

could you please show the applied Custom Resource which doesn't work for you?

Paweł Babilas May 10, 2021 at 5:48 AM

@Mykola Marzhan,

As you mentioned the limits are available but as I write it sets same resources in every pod container.

resources: requests: cpu: 2 memory: '4Gi' limits: cpu: 2 memory: '4Gi'

this is my configuration for pxc, and it sets for all 4 containers inside pod the same limits so one pod of mysql-pxc has 16 gb limits. Like this:

Containers: pmm-client: Limits: cpu: 2 memory: 4Gi Requests: cpu: 2 memory: 4Gi logs: Limits: cpu: 2 memory: 4Gi Requests: cpu: 2 memory: 4Gi logrotate: Limits: cpu: 2 memory: 4Gi Requests: cpu: 2 memory: 4Gi pxc: Limits: cpu: 2 memory: 4Gi Requests: cpu: 2 memory: 4Gi
Done

Details

Assignee

Reporter

Fix versions

Priority

Smart Checklist

Created April 20, 2021 at 11:41 AM
Updated March 5, 2024 at 5:53 PM
Resolved November 16, 2021 at 2:02 PM

Flag notifications