bundlewrap/bundles/netbox/files/gunicorn_config.py
2021-08-21 12:32:40 +02:00

8 lines
219 B
Python

command = '/opt/netbox/venv/bin/gunicorn'
pythonpath = '/opt/netbox/src/netbox'
bind = '127.0.0.1:22080'
workers = ${min(node.metadata.get('vm/cpu', 1), 6)*2+1}
threads = 1
max_requests = 5000
max_requests_jitter = 500