hw-cookbooks/graphite — pull request #194 by lamont (2014-09-15 23:44:55+00:00)
Title: Extending uwsgi buffer size to prevent invalid request block size

During our load tests today, we noticed large queries were generating the following error:

2014-09-15_20:34:48.84950 invalid request block size: 4148 (max 4096)...skip
2014-09-15_20:34:48.84957 [uwsgi-http key: our_host client_addr: 127.0.0.1 client_port: 65475] hr_instance_read(): Connection reset by peer [plugins/http/http.c line 614]

Adding the --buffer-size 8192 parameter to the uwsgi runit run script fixed the issue. As there was no way to do that via a wrapper cookbook (the template resource for that file is dynamically created and thus I can't use chef-rewind to manipulate it) I'm suggesting this fix to your lovely graphite cookbook.