I have a node app running through nginx as an upstream and doing file uploads up to 2GB.
In nginx, I have client_max_body_size
set to 2G
and increased client_body_buffer_size
to 2mb
.
I find that when uploading large files (eg, 1gb), it will hang in nginx for a really long time (30 seconds +) until it makes it to node (which actually handles the upload).
I have logs in nginx for [warn] 9624#0: *586 a client request body is buffered to a temporary file /usr/share/nginx/client_body_temp/0000000032
Any ideas why it's not passing to node right away or how I can optimize this?
自从提出这个问题以来已经proxy_request_buffer
,但是 nginx 有可以设置为关闭的proxy_request_buffer
(默认情况下是打开的)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.