作者回复: 8K或者16K。参见官网说明:
In case the request body is larger than the buffer, the whole body or only its part is written to a temporary file. By default, buffer size is equal to two memory pages. This is 8K on x86, other 32-bit platforms, and x86-64. It is usually 16K on other 64-bit platforms.
作者回复: 1、对。
2、“会根据proxy_request_buffering指令来决定是将数据保存进proxy_buffers中还是直接转发给上游”这句错了,是决定先接收到完整的body(只能保存进临时文件),还是直接边接收边转发给上游
作者回复: 日PC量无法定的。
如果你的上游与nginx间是内网,网速快,上游应用也不是类似GO语言实现的并发能力强的服务,通常都会把body存放到文件中。