4

K8SPSMDB-603

 2 years ago
source link: https://jira.percona.com/browse/K8SPSMDB-603
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
[K8SPSMDB-603] Operator checks presence of CPU limit when deciding whether to set wiredTigerCacheSizeGB

Details

  • Type: Bug
  • Status: Done
  • Priority: Medium
  • Resolution: Fixed
  • Affects Version/s: 1.10.0
  • Fix Version/s: 1.11.0
  • Component/s: None
  • Labels:
  • Needs Review:
  • Needs QA:
  • Needs Deploy:

Description

PSMDB Operator allows setting the size of cache memory for WiredTiger. The logic is here https://github.com/percona/percona-server-mongodb-operator/blob/main/pkg/psmdb/container.go#L307.

The problem is it doesn't work if only the memory limit is set for the pod because the operator checks for the value of the CPU limit when deciding whether to try putting the cache value or not: https://github.com/percona/percona-server-mongodb-operator/blob/main/pkg/psmdb/container.go#L194.

The operator should check for the memory limit being set, not the CPU limit.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK