From df471d4bbc575c51c59a3b24a59f38cf6828e429 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Wed, 7 Mar 2018 12:46:07 -0500 Subject: [PATCH 1/4] Add buffer-size to galaxy.yml.sample --- config/galaxy.yml.sample | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/galaxy.yml.sample b/config/galaxy.yml.sample index 6112840f1d7..5db9aee7d30 100644 --- a/config/galaxy.yml.sample +++ b/config/galaxy.yml.sample @@ -23,6 +23,11 @@ uwsgi: # ':8080' to listen on all available network interfaces. http: 127.0.0.1:8080 + # By default uWSGI allocates a very small buffer (4096 bytes) for the headers + # of each request. If you start receiving “invalid request block size” in + # your logs, it could mean you need a bigger buffer. Increase it up to 65535. + buffer-size: 4096 + # Number of web server (worker) processes to fork after the # application has loaded. processes: 1 From 53e6156ddfc5f5fd1f37542de8f859a5e8beaaad Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Wed, 7 Mar 2018 12:48:23 -0500 Subject: [PATCH 2/4] ASCII --- config/galaxy.yml.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/galaxy.yml.sample b/config/galaxy.yml.sample index 5db9aee7d30..f772fb368a9 100644 --- a/config/galaxy.yml.sample +++ b/config/galaxy.yml.sample @@ -24,7 +24,7 @@ uwsgi: http: 127.0.0.1:8080 # By default uWSGI allocates a very small buffer (4096 bytes) for the headers - # of each request. If you start receiving “invalid request block size” in + # of each request. If you start receiving "invalid request block size" in # your logs, it could mean you need a bigger buffer. Increase it up to 65535. buffer-size: 4096 From e65f23e1a326dfe1707a0df055f024e94aadb95e Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Wed, 7 Mar 2018 13:29:20 -0500 Subject: [PATCH 3/4] add to config_manage.py and rebuild --- config/galaxy.yml.sample | 7 ++++--- config/reports.yml.sample | 6 ++++++ config/tool_shed.yml.sample | 6 ++++++ lib/galaxy/webapps/config_manage.py | 5 +++++ 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/config/galaxy.yml.sample b/config/galaxy.yml.sample index f772fb368a9..3ee67f45475 100644 --- a/config/galaxy.yml.sample +++ b/config/galaxy.yml.sample @@ -23,9 +23,10 @@ uwsgi: # ':8080' to listen on all available network interfaces. http: 127.0.0.1:8080 - # By default uWSGI allocates a very small buffer (4096 bytes) for the headers - # of each request. If you start receiving "invalid request block size" in - # your logs, it could mean you need a bigger buffer. Increase it up to 65535. + # By default uWSGI allocates a very small buffer (4096 bytes) for the + # headers of each request. If you start receiving "invalid request + # block size" in your logs, it could mean you need a bigger buffer. + # Increase it up to 65535. buffer-size: 4096 buffer-size: 4096 # Number of web server (worker) processes to fork after the diff --git a/config/reports.yml.sample b/config/reports.yml.sample index 438d9b14b46..f8708fdc119 100644 --- a/config/reports.yml.sample +++ b/config/reports.yml.sample @@ -5,6 +5,12 @@ uwsgi: # ':9001' to listen on all available network interfaces. http: 127.0.0.1:9001 + # By default uWSGI allocates a very small buffer (4096 bytes) for the + # headers of each request. If you start receiving "invalid request + # block size" in your logs, it could mean you need a bigger buffer. + # Increase it up to 65535. buffer-size: 4096 + buffer-size: 4096 + # Number of web server (worker) processes to fork after the # application has loaded. processes: 1 diff --git a/config/tool_shed.yml.sample b/config/tool_shed.yml.sample index 824f1134279..865d92d0b87 100644 --- a/config/tool_shed.yml.sample +++ b/config/tool_shed.yml.sample @@ -5,6 +5,12 @@ uwsgi: # ':9009' to listen on all available network interfaces. http: 127.0.0.1:9009 + # By default uWSGI allocates a very small buffer (4096 bytes) for the + # headers of each request. If you start receiving "invalid request + # block size" in your logs, it could mean you need a bigger buffer. + # Increase it up to 65535. buffer-size: 4096 + buffer-size: 4096 + # Number of web server (worker) processes to fork after the # application has loaded. processes: 1 diff --git a/lib/galaxy/webapps/config_manage.py b/lib/galaxy/webapps/config_manage.py index 714d4628544..2516e215860 100644 --- a/lib/galaxy/webapps/config_manage.py +++ b/lib/galaxy/webapps/config_manage.py @@ -54,6 +54,11 @@ UWSGI_OPTIONS = OrderedDict([ 'default': '127.0.0.1:$default_port', 'type': 'str', }), + ('buffer-size', { + 'desc': """By default uWSGI allocates a very small buffer (4096 bytes) for the headers of each request. If you start receiving "invalid request block size" in your logs, it could mean you need a bigger buffer. Increase it up to 65535. buffer-size: 4096""", + 'default': '4096', + 'type': 'int', + }), ('processes', { 'desc': """Number of web server (worker) processes to fork after the application has loaded.""", 'default': '1', From df718aee172edc5387c4c91c317ebc478cb37bc0 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Wed, 7 Mar 2018 13:31:28 -0500 Subject: [PATCH 4/4] typo --- config/galaxy.yml.sample | 2 +- config/reports.yml.sample | 2 +- config/tool_shed.yml.sample | 2 +- lib/galaxy/webapps/config_manage.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/galaxy.yml.sample b/config/galaxy.yml.sample index 3ee67f45475..2e89b2ac146 100644 --- a/config/galaxy.yml.sample +++ b/config/galaxy.yml.sample @@ -26,7 +26,7 @@ uwsgi: # By default uWSGI allocates a very small buffer (4096 bytes) for the # headers of each request. If you start receiving "invalid request # block size" in your logs, it could mean you need a bigger buffer. - # Increase it up to 65535. buffer-size: 4096 + # Increase it up to 65535. buffer-size: 4096 # Number of web server (worker) processes to fork after the diff --git a/config/reports.yml.sample b/config/reports.yml.sample index f8708fdc119..9139904172f 100644 --- a/config/reports.yml.sample +++ b/config/reports.yml.sample @@ -8,7 +8,7 @@ uwsgi: # By default uWSGI allocates a very small buffer (4096 bytes) for the # headers of each request. If you start receiving "invalid request # block size" in your logs, it could mean you need a bigger buffer. - # Increase it up to 65535. buffer-size: 4096 + # Increase it up to 65535. buffer-size: 4096 # Number of web server (worker) processes to fork after the diff --git a/config/tool_shed.yml.sample b/config/tool_shed.yml.sample index 865d92d0b87..b7d125f9a9d 100644 --- a/config/tool_shed.yml.sample +++ b/config/tool_shed.yml.sample @@ -8,7 +8,7 @@ uwsgi: # By default uWSGI allocates a very small buffer (4096 bytes) for the # headers of each request. If you start receiving "invalid request # block size" in your logs, it could mean you need a bigger buffer. - # Increase it up to 65535. buffer-size: 4096 + # Increase it up to 65535. buffer-size: 4096 # Number of web server (worker) processes to fork after the diff --git a/lib/galaxy/webapps/config_manage.py b/lib/galaxy/webapps/config_manage.py index 2516e215860..1a9d600fe2f 100644 --- a/lib/galaxy/webapps/config_manage.py +++ b/lib/galaxy/webapps/config_manage.py @@ -55,7 +55,7 @@ UWSGI_OPTIONS = OrderedDict([ 'type': 'str', }), ('buffer-size', { - 'desc': """By default uWSGI allocates a very small buffer (4096 bytes) for the headers of each request. If you start receiving "invalid request block size" in your logs, it could mean you need a bigger buffer. Increase it up to 65535. buffer-size: 4096""", + 'desc': """By default uWSGI allocates a very small buffer (4096 bytes) for the headers of each request. If you start receiving "invalid request block size" in your logs, it could mean you need a bigger buffer. Increase it up to 65535.""", 'default': '4096', 'type': 'int', }),