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

Tune gunicorn for production image #1137

Merged
merged 4 commits into from
Sep 7, 2018

Conversation

cutwater
Copy link
Collaborator

@cutwater cutwater commented Sep 7, 2018

Backport: #1130

mkrizek and others added 4 commits September 7, 2018 14:05
(cherry picked from commit 0623ae6)
(cherry picked from commit 4c7ba9f)
* Remove hardcoded number of workers. By default 1 worker is used.
* Remove gevent worker engine. Use sync engine.

Galaxy application was not designed to be run under gevent.
It caused problems with number of cached database connections before
and may have more hidden issues.

Gunicorn will use WEB_CONCURRENCY environment variable to set
number of workers, however using more than 1 worker doesn't work
reliably for metrics scraping and requires additional configuration.

(cherry picked from commit 4cba7c6)
@cutwater cutwater added the backport Backport pull request label Sep 7, 2018
@cutwater cutwater merged commit 9991edf into ansible:stable/3.0 Sep 7, 2018
@cutwater cutwater deleted the backport/3.0/1130 branch September 7, 2018 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Backport pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants