Skip to content

Commit

Permalink
Added docs example to tweak gunicorn worker config (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 committed Dec 23, 2020
1 parent 39b3903 commit 49c0a55
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,13 @@ The `UvicornWorker` implementation uses the `uvloop` and `httptools` implementat

Gunicorn provides a different set of configuration options to Uvicorn, so some options such as `--limit-concurrency` are not yet supported when running with Gunicorn.

If you need to pass uvicorn's config arguments to gunicorn workers then you'll have to subclass `UvicornWorker`:

```python
class MyUvicornWorker(UvicornWorker):
CONFIG_KWARGS = {"loop": "asyncio", "http": "h11", "lifespan": "off"}
```

### Supervisor

To use `supervisor` as a process manager you should either:
Expand Down

0 comments on commit 49c0a55

Please sign in to comment.