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

Helm chart installation times out and starts to consume huge amount of CPU #27931

Open
3 tasks done
margorczynski opened this issue Apr 7, 2024 · 5 comments
Open
3 tasks done
Assignees

Comments

@margorczynski
Copy link

Bug description

After trying to install Superset on my local minikube k8s cluster I get the following:

  • chart installation times out or hangs up
  • a gunicorn process is spawned that along with the dockerd consumes huge amounts of CPU (16-core Ryzen 7950X)

How to reproduce the bug

  1. helm upgrade --install superset superset/superset --namespace=mynamespace

Screenshots/recordings

image
image
image

Superset version

3.1.2

Python version

I don't know

Node version

I don't know

Browser

Not applicable

Additional context

No other Helm installation on the cluster causes such issues

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@villebro
Copy link
Member

villebro commented Apr 8, 2024

@margorczynski please add which version of the Helm chart you're running.

@margorczynski
Copy link
Author

It should be the latest considering the command: @villebro

image

@margorczynski
Copy link
Author

margorczynski commented Apr 9, 2024

From what I see in Kubernetes the superset-init-db job constantly spawns failing pods that fail with the following:

image

I didn't see any config value to set the secret in the Helm chart. And if it would be required shouldn't the install fail because of a missing parameter?

@margorczynski
Copy link
Author

margorczynski commented Apr 9, 2024

After running the install with values that override SECRET_KEY it install correctly. So it looks like I misunderstood the guide. But still it says: Default security settings and passwords are included but you SHOULD override those with your own, in particular: but it seems SHOULD should be replace by MUST for it to work and mention it before the install command.

Maybe an explicit mention before the helm install command? Or is it possible to generate it automatically and put it into Kubernetes secrets?

Still, after it install and 10 minutes pass I still see a sharp increase in resource usage and Kubernetes becomes unresponsive:
image
image

I will try to play around with the settings of minikube and Docker as there might be some issue there on my side but other charts like MinIO or Grafana didn't cause such problems

EDIT: After re-creating minikube with more resources (8 CPU, 16GB memory) it starts and works normally, can be closed with maybe some update to the Helm install docs

@rusackas
Copy link
Member

rusackas commented Apr 9, 2024

it seems SHOULD should be replace by MUST for it to work

I'll open a PR for this... but please feel free to make additional docs PRs or let me know what changes you think need to be made. I'll see the PR to close this issue when merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants