forked from opendatacube/datacube-wps
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from csiro-easi/gunicorn-workers
Change to async worker class and increase timeout
- Loading branch information
Showing
4 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
from prometheus_flask_exporter.multiprocess import \ | ||
GunicornInternalPrometheusMetrics | ||
|
||
# Settings, https://docs.gunicorn.org/en/stable/settings.html | ||
# Check what the server sees: gunicorn --print-config datacube_wps:app | ||
timeout = 600 # 10 mins | ||
worker_class = 'gevent' | ||
|
||
def child_exit(server, worker): | ||
GunicornInternalPrometheusMetrics.mark_process_dead_on_child_exit(worker.pid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters