From a0de0696c50dfe1325ff8695b9acb0c75d116d8d Mon Sep 17 00:00:00 2001 From: Tyler Bigler Date: Fri, 1 Nov 2019 10:23:25 -0400 Subject: [PATCH 1/3] Add max_requests details to example config --- docs/installation/3-http-daemon.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/installation/3-http-daemon.md b/docs/installation/3-http-daemon.md index dcf16101e..7ddbf8713 100644 --- a/docs/installation/3-http-daemon.md +++ b/docs/installation/3-http-daemon.md @@ -108,7 +108,7 @@ Install gunicorn: # pip3 install gunicorn ``` -Save the following configuration in the root netbox installation path as `gunicorn_config.py` (e.g. `/opt/netbox/gunicorn_config.py` per our example installation). Be sure to verify the location of the gunicorn executable on your server (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed. If using CentOS/RHEL, change the username from `www-data` to `nginx` or `apache`. +Save the following configuration in the root netbox installation path as `gunicorn_config.py` (e.g. `/opt/netbox/gunicorn_config.py` per our example installation). Be sure to verify the location of the gunicorn executable on your server (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed. If using CentOS/RHEL, change the username from `www-data` to `nginx` or `apache`. More info on `max_requests` information can be found in the [gunicorn docs](https://docs.gunicorn.org/en/stable/settings.html#max-requests). ```no-highlight command = '/usr/bin/gunicorn' @@ -116,6 +116,8 @@ pythonpath = '/opt/netbox/netbox' bind = '127.0.0.1:8001' workers = 3 user = 'www-data' +max_requests = 1000 +max_requests_jitter = 200 ``` # supervisord Installation From 7bf09a30858ba62aad19fa85b2ae3dee18c134ba Mon Sep 17 00:00:00 2001 From: Tyler Bigler Date: Fri, 1 Nov 2019 10:26:53 -0400 Subject: [PATCH 2/3] Remove redundant word --- docs/installation/3-http-daemon.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/installation/3-http-daemon.md b/docs/installation/3-http-daemon.md index 7ddbf8713..7cef07d7d 100644 --- a/docs/installation/3-http-daemon.md +++ b/docs/installation/3-http-daemon.md @@ -108,7 +108,7 @@ Install gunicorn: # pip3 install gunicorn ``` -Save the following configuration in the root netbox installation path as `gunicorn_config.py` (e.g. `/opt/netbox/gunicorn_config.py` per our example installation). Be sure to verify the location of the gunicorn executable on your server (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed. If using CentOS/RHEL, change the username from `www-data` to `nginx` or `apache`. More info on `max_requests` information can be found in the [gunicorn docs](https://docs.gunicorn.org/en/stable/settings.html#max-requests). +Save the following configuration in the root netbox installation path as `gunicorn_config.py` (e.g. `/opt/netbox/gunicorn_config.py` per our example installation). Be sure to verify the location of the gunicorn executable on your server (e.g. `which gunicorn`) and to update the `pythonpath` variable if needed. If using CentOS/RHEL, change the username from `www-data` to `nginx` or `apache`. More info on `max_requests` can be found in the [gunicorn docs](https://docs.gunicorn.org/en/stable/settings.html#max-requests). ```no-highlight command = '/usr/bin/gunicorn' From 2a8fa01a570767f36b1b3931e6e73f0d74439029 Mon Sep 17 00:00:00 2001 From: Tyler Bigler Date: Fri, 1 Nov 2019 12:09:44 -0400 Subject: [PATCH 3/3] Increase request counts for max_requests --- docs/installation/3-http-daemon.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/installation/3-http-daemon.md b/docs/installation/3-http-daemon.md index 7cef07d7d..c1bcf7ca8 100644 --- a/docs/installation/3-http-daemon.md +++ b/docs/installation/3-http-daemon.md @@ -116,8 +116,8 @@ pythonpath = '/opt/netbox/netbox' bind = '127.0.0.1:8001' workers = 3 user = 'www-data' -max_requests = 1000 -max_requests_jitter = 200 +max_requests = 5000 +max_requests_jitter = 500 ``` # supervisord Installation