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

Use gthread worker (#107) #108

Merged
merged 1 commit into from
Apr 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ run-local:

run-prod:
fuser -k 5000/tcp || true
PYTHONPATH=./ethtx_ce pipenv run gunicorn --workers 4 --max-requests 4000 --timeout 600 --bind :5000 app.wsgi:app
PYTHONPATH=./ethtx_ce pipenv run gunicorn -k gthread --workers 4 --max-requests 4000 --timeout 600 --bind :5000 app.wsgi:app

run-docker:
fuser -k 5000/tcp || true
Expand Down
3 changes: 1 addition & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ web3 = "==5.26.0"
python-dotenv = "*"
flask = ">=2.0.2"
werkzeug = ">=2.0.2"
gunicorn = ">=20.1.0"
gunicorn = {version = ">=20.1.0", extras = ["gthread"]}
flask-httpauth = ">=4.5.0"
gitpython = ">=3.1.24"
jsonpickle = ">=2.0.0"
meinheld = ">=1.0.2"

[dev-packages]
black = "==21.12b0"
Expand Down
2 changes: 1 addition & 1 deletion ethtx_ce/start-reload.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e

# Start Gunicorn
echo "Starting Gunicorn..."
exec pipenv run gunicorn "--reload" -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"
exec pipenv run gunicorn "--reload" -k gthread -c "$GUNICORN_CONF" "$APP_MODULE"
2 changes: 1 addition & 1 deletion ethtx_ce/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ set -e

# Start Gunicorn
echo "Starting Gunicorn..."
exec pipenv run gunicorn -k egg:meinheld#gunicorn_worker -c "$GUNICORN_CONF" "$APP_MODULE"
exec pipenv run gunicorn -k gthread -c "$GUNICORN_CONF" "$APP_MODULE"