Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Massive memory consumption on KIND #101

Open
Dimcon opened this issue Jul 13, 2022 · 0 comments
Open

Massive memory consumption on KIND #101

Dimcon opened this issue Jul 13, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@Dimcon
Copy link

Dimcon commented Jul 13, 2022

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.

@Dimcon Dimcon added the bug Something isn't working label Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant