-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Superset Visualizations are timing out after 60 seconds. Want to increase that. How can I implement it? #5993
Comments
Hi All, |
In superset config.py, you can set SUPERSET_WEBSERVER_TIMEOUT,or when you do superset runserver -t 120.Try it. |
@qin4zhang |
+1 on this issue, same problem here. Long queries run well in the SQL lab but not in graph views. |
@abhioncbr could the issue be related to this line ? https://github.com/apache/incubator-superset/blob/a1d867cf2f3e519c454cd33d60b9772f9c7551e2/superset/assets/src/chart/Chart.jsx#L179 I see @mistercrunch adjusted the loader rendering recently aed774e , and I have the impression that "50" is a hard coded timeout that should come from the config |
I'm currently using Superset 0.28.1 and have the same issue. |
This can be solved in making changes to file chartAction.js.html
|
You can increase the timeout, but ultimately the "explore view" and dashboard view are meant to be somewhat interactive and the "less than a few minutes" time frame is ok for those use cases. If the query takes more than that, say 5-15 minutes, it's pretty clear that it's either too big of a workload, or simply the wrong database engine to power data exploration or dashboarding use cases. For the Hive use-case, it'd be reasonable perhaps use Hive in a data pipeline to prepare/summarize the data further and load it in a more interactive database, or use Presto. The timeout setup, from an administrative standpoint, prevents users from shooting themselves in the foot. You'll have to make sure any proxy or load balancer in front of Superset (if any) has longer timeouts setup than Superset itself. Typically web requests are expected to timeout in the 30-120 seconds time frame. |
@CoryChaplin the |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Has there been any new developments resolving the 'unexpected error' when a query runtime runs for too long? |
IMHO, most of the real world query for analytics will be running 60 sec+. How can the cap even exists? |
@swamy16 did you find how to extend the timeout? |
SUPERSET_WEBSERVER_TIMEOUT =300 works for me |
In addition, has anyone deployed superset on docker? I would like to increase the timeout there as well. |
setting SUPERSET_WEBSERVER_TIMEOUT won't work |
any updates on this? did anyone manage to fix it? |
+1 here |
You could try adding |
Here is what I did to solve this error on Superset v2.1 docker-compose Step2: cd to .../superset/docker and download file run-server.sh and edit as follow: |
I have slightly different but i believe in the same category issue. I have set the following values: Thanks |
if version is 1.x you will not find run-server.sh try edit .../superset/docker/docker-entrypoint.sh |
I was using docker version 2.5 and actually my reply above didn't work. edit /superset/docker/run-server.sh won't work. I had to go inside the container of superset_app and modified it as follow sudo docker exec -it -u root superset_cache bash (access Superset cache container as root user) SERVER_WORKER_AMOUNT:-6 (Based on the specs of the instant running Superset) |
I bumped into the same issue. I'm running v2.1 on k8s. Tried fixing as @LeoDiep mentioned above but didn't work. The visualisation still got timeout after 60 seconds. As I inspected the k8s pod running the webserver, Anyone can help me with this? TY in advance! |
Hi, did you edit the superset_config.py : SUPERSET_WEBSERVER_TIMEOUT = int(timedelta(minutes=5).total_seconds()) |
You could also check the |
Hi
Is this resolved for you? We did the same change still same issue for Superset installed version 3.0.1 |
instead of SUPERSET_WEBSERVER_TIMEOUT = int(timedelta(minutes=5).total_seconds()) |
I hope this email finds you well. Message Ghazi Triki |
Can you send me an example of nginx-config? |
apiVersion: v1 |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
Expected results
Actual results
Steps to reproduce
The text was updated successfully, but these errors were encountered: