Zack Williams | 048c683 | 2020-08-02 21:14:35 -0700 | [diff] [blame^] | 1 | {# |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | #} |
| 5 | # The IP address (typically localhost) and port that the Netbox WSGI process should listen on |
| 6 | bind = 'localhost:8001' |
| 7 | |
| 8 | # Number of gunicorn workers to spawn. This should typically be 2n+1, where |
| 9 | # n is the number of CPU cores present. |
| 10 | workers = {{ ansible_processor_vcpus + 1 }} |
| 11 | |
| 12 | # Number of threads per worker process |
| 13 | threads = 3 |
| 14 | |
| 15 | # Timeout (in seconds) for a request to complete |
| 16 | timeout = 120 |
| 17 | |
| 18 | # The maximum number of requests a worker can handle before being respawned |
| 19 | max_requests = 5000 |
| 20 | max_requests_jitter = 500 |