Not enough memory: new auto-config map

I get the following error in the operator when creating a new mysql database when using the helm charts.

{"level":"error","ts":1602022523.6436498,"logger":"controller-runtime.controller","msg":"Reconciler error","controller":"perconaxtradbcluster-controller","request":"pxc-db4/pxc-db4-pxc-db-pxc-db","error":"new auto-config map: not enough memory","errorVerbose":"not enough memory

new auto-config map

github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).reconcileConfigMap

/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:689

github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).deploy

/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:459

github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc.(*ReconcilePerconaXtraDBCluster).Reconcile

/go/src/github.com/percona/percona-xtradb-cluster-operator/pkg/controller/pxc/controller.go:242

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:256

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211

k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152

k8s.io/apimachinery/pkg/util/wait.JitterUntil

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153

k8s.io/apimachinery/pkg/util/wait.Until

/go/src/github.com

/percona/percona-xtradb-cluster-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88

runtime.goexit

/usr/local/go/src/runtime/asm_amd64.s:1373","stacktrace":"github.com/go-logr/zapr.(*zapLogger).Error

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/github.com/go-logr/zapr/zapr.go:128

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:258

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:232

sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).worker

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/sigs.k8s.io/controller-runtime/pkg/internal/controller/controller.go:211

k8s.io/apimachinery/pkg/util/wait.JitterUntil.func1

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:152

k8s.io/apimachinery/pkg/util/wait.JitterUntil

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:153

k8s.io/apimachinery/pkg/util/wait.Until

/go/src/github.com/percona/percona-xtradb-cluster-operator/vendor/k8s.io/apimachinery/pkg/util/wait/wait.go:88"}

Hello @codejamninja,

please check the limits you are setting for PXC containers.

The way it works is the following:

  • We have auto-tuning mechanism

  • This auto-tuning mechanism takes the memory (RAM) limits set for PXC containers and based on these limits tunes mysql for better performance

  • If memory limits are less than 12 MB - you get this error (see code here).

But point taken - we will tune the error message to make it clear.

1 Like