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

fix(docker/helm): Make webserver query timeout adjustable #15007

Merged

Conversation

danielewood
Copy link
Contributor

SUMMARY

We have long running dashboard queries (2-3 minutes) which were getting tripped up by the 60 second timeout with 504 Gateway Timeout.

I modified the dockerfile to keep the default 60 second timeout on gunicorn, but allow GUNICORN_TIMEOUT env to override.

I also modified the values.yml to provide the needed placeholders to implementing a longer timeout at gunicorn, superset_webserver_timeout, and the nginx proxy timeout.

Note: This change is non-disruptive, no end user will be impacted unless they turn on settings in the values.yaml.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

  1. Run a query on a dashboard that takes longer than 60 seconds, watch it time out.
  2. Apply patch, enable new helm lines, do same query, watch it work.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@danielewood danielewood changed the title Fix(docker/helm): Make webserver query timeout adjustable fix(docker/helm): Make webserver query timeout adjustable Jun 6, 2021
Copy link
Member

@amitmiran137 amitmiran137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!
again another nice contribution

@amitmiran137 amitmiran137 merged commit 6edf340 into apache:master Jun 16, 2021
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
* Allow timeout override, but keep default if unset

* Add template placeholder values for timeout change

* Bump chart version

* linting

* remove whitespace
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
* Allow timeout override, but keep default if unset

* Add template placeholder values for timeout change

* Bump chart version

* linting

* remove whitespace
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
* Allow timeout override, but keep default if unset

* Add template placeholder values for timeout change

* Bump chart version

* linting

* remove whitespace
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/S 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants