set to 128k, which I thought would buffer up to 128k of data in memory
before writing it to disk.
You should configure proxy_buffer_size / proxy_buffers large enough
instead.
Directive proxy_temp_file_write_size basically tells nginx how
many data it can flush to disk at once when writing temporary
file. It may be used to prevent nginx worker process from blocking
for too long in io path.
Which I’m guessing has 256k of buffering capacity, is that correct?
With this settings nginx should be able to buffer up to 260k (4k +
8*32k) of upstream response in memory. This number includes length
of headers returned by upstream.
Maxim D.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.