Skip to content

Commit

Permalink
fix: limit connections a worker can accept at any time
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Feb 9, 2025
1 parent ea11cd9 commit 57ac77c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/templates/bench/supervisor.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ environment={% for key, value in environment_variables.items() %}{{ key }}="{{ v
{% endif %}

[program:frappe-bench-frappe-web]
command=/home/frappe/frappe-bench/env/bin/gunicorn --bind 0.0.0.0:8000 --workers {{ gunicorn_workers }} --timeout {{ http_timeout }} --graceful-timeout 30 --worker-tmp-dir /dev/shm frappe.app:application --preload --statsd-host={{ statsd_host }} --statsd-prefix={{ name }} {% if gunicorn_threads_per_worker > 0 %} --worker-class=gthread --threads={{ gunicorn_threads_per_worker }}{% endif %} --reuse-port {% if gunicorn_workers > 1 %} --max-requests 5000 --max-requests-jitter 1000 {% endif %}
command=/home/frappe/frappe-bench/env/bin/gunicorn --bind 0.0.0.0:8000 --workers {{ gunicorn_workers }} --timeout {{ http_timeout }} --graceful-timeout 30 --worker-tmp-dir /dev/shm frappe.app:application --preload --statsd-host={{ statsd_host }} --statsd-prefix={{ name }} {% if gunicorn_threads_per_worker > 0 %} --worker-class=gthread --threads={{ gunicorn_threads_per_worker }}{% endif %} --reuse-port {% if gunicorn_workers > 1 %} --max-requests 5000 --max-requests-jitter 1000 {% endif %} --worker-connections={{ (gunicorn_threads_per_worker + 2) }} --keep-alive=0
environment=FORWARDED_ALLOW_IPS="*"
priority=4
autostart=true
Expand Down

0 comments on commit 57ac77c

Please sign in to comment.