Skip to content

Commit c95699f

Browse files
committed
feat: configure amount of workers to be 1 by default + doc
1 parent 48dff8b commit c95699f

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ MAINTAINER Michaël Dierick "[email protected]"
44
# Gunicorn Docker config
55
ENV MODULE_NAME web
66
ENV PYTHONPATH "/usr/src/app"
7+
ENV WEB_CONCURRENCY "1"
78

89
# Overrides the start.sh used in `tiangolo/meinheld-gunicorn`
910
COPY ./start.sh /start.sh

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ my-python:
178178
- `MU_SPARQL_TIMEOUT` is used to configure the timeout (in seconds) for SPARQL queries.
179179

180180

181+
Since this template is based on the meinheld-gunicorn-docker image, all possible environment config for that image is also available for the template. See [meinheld-gunicorn-docker#environment-variables](https://github.com/tiangolo/meinheld-gunicorn-docker#environment-variables) for more info. The template configures `WEB_CONCURRENCY` in particular to `1` by default.
182+
181183
### Production
182184

183185
For hosting the app in a production setting, the template depends on [meinheld-gunicorn-docker](https://github.com/tiangolo/meinheld-gunicorn-docker). All [environment variables](https://github.com/tiangolo/meinheld-gunicorn-docker#environment-variables) used by meinheld-gunicorn can be used to configure your service as well.

0 commit comments

Comments
 (0)