-
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
Expose more gunicorn options #2119
Comments
You have to double check that all the libraries are gevent safe, if something block then everything blocks. |
My example configuration was just meant to demonstrate that it would be rather useful to allow for specifying further gunicorn option to the superset runserver command. In my eyes, a clean and very flexible approach would be a command line option for specifying a gunicorn config file. @xrmx Thanks for pointing out that there might be incompatibilities. I was not aware of this. However, I actually don't even know a suitable approach of how to double check if the libraries are gevent safe. As corrected in my initial post, further benchmarks did not confirm significant performance benefits. |
@rumbin I'm open to exposing more in the CLI's subcommand if you want to submit a PR, though keep in mind that anyone can just issue their own |
Make sure these boxes are checked before submitting your issue - thank you!
Superset version
0.15.4
Expected results
Passing more gunicorn settings is possible, either via
superset runserver
options or by using a config file.Actual results
Only a few command options are available, some are even hardcoded.
This is the invocation command surrently used:
Steps to reproduce
Try passing gunicorn options like
worker_class
,threads
,graceful_timeout
orkeepalive
as command options tosuperset runserver
.Background info
For testing purpose, I modified the invocation command as follows:
This way, my long-running queries dropped to 1/4th of the original duration.
Update 2017-02-05: Disregard this statement. In further tests, the default worker_class "sync" led to comparable results. It may boil down to training effects on the DB.
Now I'm looking for a way to pass the additional options in a clean way which will survive future superset upgrades.
The text was updated successfully, but these errors were encountered: