fix(configs): removed waitress as a default runner for web service on development.
One of the big issues discovered receantly was due to waitress vs gunicorn differences on handling requests. Since gunicorn has a nice dev mode with code reloader we should use it as a default runner so we can avoid such issues in the past where dev setup runned different workers than production.
This commit is contained in:
parent
1f3e46703e
commit
4462f85332
2 changed files with 2 additions and 24 deletions
7
Makefile
7
Makefile
|
|
@ -139,15 +139,10 @@ sh:
|
|||
make dev-sh
|
||||
|
||||
|
||||
.PHONY: dev-srv
|
||||
## run develop server instance, docker exec -it $(docker ps -q --filter 'name=dev-enterprise-ce') /bin/bash
|
||||
dev-srv:
|
||||
pserve --reload .dev/dev.ini
|
||||
|
||||
## Allows changes of workers e.g make dev-srv-g workers=2
|
||||
workers?=1
|
||||
|
||||
.PHONY: dev-srv-g
|
||||
.PHONY: dev-srv
|
||||
## run gunicorn multi process workers
|
||||
dev-srv-g:
|
||||
gunicorn --paste=.dev/dev.ini --bind=0.0.0.0:10020 --config=.dev/gunicorn_config.py --timeout=120 --reload --workers=$(workers)
|
||||
|
|
|
|||
|
|
@ -31,23 +31,6 @@ debug = true
|
|||
host = 127.0.0.1
|
||||
port = 10020
|
||||
|
||||
; ##################################################
|
||||
; WAITRESS WSGI SERVER - Recommended for Development
|
||||
; ##################################################
|
||||
|
||||
; use server type
|
||||
use = egg:waitress#main
|
||||
|
||||
; number of worker threads
|
||||
threads = 5
|
||||
|
||||
; MAX BODY SIZE 100GB
|
||||
max_request_body_size = 107374182400
|
||||
|
||||
; Use poll instead of select, fixes file descriptors limits problems.
|
||||
; May not work on old windows systems.
|
||||
asyncore_use_poll = true
|
||||
|
||||
|
||||
; ###########################
|
||||
; GUNICORN APPLICATION SERVER
|
||||
|
|
@ -56,7 +39,7 @@ asyncore_use_poll = true
|
|||
; run with gunicorn --paste rhodecode.ini --config gunicorn_conf.py
|
||||
|
||||
; Module to use, this setting shouldn't be changed
|
||||
#use = egg:gunicorn#main
|
||||
use = egg:gunicorn#main
|
||||
|
||||
; Prefix middleware for RhodeCode.
|
||||
; recommended when using proxy setup.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue