3 ms·
You mention 5KB...is there some chance that it exceeds 8KB? There's a setting called client_body_buffersize. (http://nginx.org/en/docs/http/ngx_http_core_modul
by tyingq 9y ago
You mention 5KB...is there some chance that it exceeds 8KB?
There's a setting called client_body_buffersize. (http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size http://nginx.org/en/docs/http/ngx_http_core_module.html#clie...) It defaults to 8k on x86-64.
If you exceed that setting, it writes the body to a temporary file, which slows things down.
Maybe try bumping that up to 16k?
Also see the other related settings on that page.
Edit: Maybe also test out switching from urlencoded to multipart for the post? For some types of data, urlencoded can bloat the size quite a lot.