Skip to content

Massive memory consumption on KIND #101

@Dimcon

Description

@Dimcon

What happened:
After installing the operator and launching a DB the memory usage spiked to 13GB before any connections were made to the DB.
image (4)
The memory usage is from MysqlD running inside a Kind k8s cluster on my local machine.
Here's a snapshot of the memory using prometheus within Lens
image

What you expected to happen:
After installation the pod tends to consume negligible memory. Around 200MB at idle. Even after a few thousand rows are added we don't normally see more than 300MB memory usage within k8s.

How to reproduce it (as minimally and precisely as possible):
Environment:
Fedora 35
Docker
Kind
Prometheus
Lens for monitoring

Set up Kubernetes IN Docker (KIND)
https://kind.sigs.k8s.io/
Install bitpoke mysql operator v0.6.2
Create the following DB:

apiVersion: v1
kind: Secret
metadata:
  name: myapp-mysql-secret
  namespace: myapp
type: Opaque
data:
  ROOT_PASSWORD: ****
  USER: ****
  PASSWORD: ****
  DATABASE: ****

---
apiVersion: mysql.presslabs.org/v1alpha1
kind: MysqlCluster
metadata:
  name: myapp
  namespace: myapp
spec:
  replicas: 1
  secretName: myapp-mysql-secret
  volumeSpec:
    persistentVolumeClaim:
      accessModes: ["ReadWriteOnce"]
      resources:
        requests:
          storage: 1Gi

Watch memory usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions