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

redash_adhoc_worker eats CPU massively #3891

Closed
koooge opened this issue Jun 10, 2019 · 4 comments
Closed

redash_adhoc_worker eats CPU massively #3891

koooge opened this issue Jun 10, 2019 · 4 comments

Comments

@koooge
Copy link
Contributor

koooge commented Jun 10, 2019

Issue Summary

Hi there. redash_adhoc_worker sometimes becomes CPU eater and redash cannot work normally. When it becomes so, I reboot the machine to recover it, but it would not smart. So, I suppose redash needs to handle something adequately. Do you have any ideas?

$ docker stats

CONTAINER ID        NAME                        CPU %               MEM USAGE / LIMIT     MEM %               NET I/O             BLOCK I/O           PIDS
...
9ab7f894ad7d        redash_adhoc_worker_1       144.48%             400.8MiB / 3.794GiB   10.31%              4.11GB / 2.6GB      370MB / 147kB       3
...

Screen Shot 2019-06-10 at 12 34 34

Steps to Reproduce

  1. This is the first step
  2. This is the second step, etc.

Any other info e.g. Why do you consider this to be a bug? What did you expect to happen instead?

Technical details:

  • Redash Version: 7.0.0+b18042
  • Browser/OS: chrome
  • How did you install Redash: EC2 (t3.medium) with AMI
@arikfr
Copy link
Member

arikfr commented Jun 10, 2019

It's probably enough to restart the Docker container instead of the whole machine.

But it's worth understanding what's going on. What types of data sources are you using? How often does this happen?

@koooge
Copy link
Contributor Author

koooge commented Jun 10, 2019

rds_mysql, dynamodb or python (REDASH_ADDITIONAL_QUERY_RUNNERS=redash.query_runner.python). Actually I don't know what query does it cause because some users use this redash 😩

How often does this happen?

maybe 1 per 2week~month

@ranbena
Copy link
Contributor

ranbena commented Jun 16, 2019

@koooge try this out #3903.
Waiting to hear that it works before we land it.

@koooge
Copy link
Contributor Author

koooge commented Jun 17, 2019

Thanks @ranbena ! It's not easy to ensure not to occur this. I close this issue since #3903 was merged. I will reopen this if it reproduces (it would be redash 8).

@koooge koooge closed this as completed Jun 17, 2019
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

3 participants