浏览 3.7k
请问,使用以上两个指令定义了连接速率共享zone,如果多个location同时使用这个定义的连接速录总,请问是这多个location的的连接速率的总和受这个zone定义的数量的限制,还是每一个location的连接速率单独受这个连接速率zone的限制?

按点赞数排序
按时间排序
最简单的办法,你可以把include文件的后缀名,比如a.conf(我猜你是用.conf结尾的)改为a.nginx,include语句也相应修改下,就可以了。
你试试看。
当然,直接修改nginx.conf中vim的探测规则也可以,这稍微有点复杂。
第1种。参考官方文档:
“When buffering is enabled, nginx receives a response from the proxied server as soon as possible, saving it into the buffers set by the proxy_buffer_size and proxy_buffers directives. If the whole response does not fit into memory, a part of it can be saved to a temporary file on the disk. Writing to temporary files is controlled by the proxy_max_temp_file_size and proxy_temp_file_write_size directives.
When buffering is disabled, the response is passed to a client synchronously, immediately as it is received. nginx will not try to read the whole response from the proxied server. The maximum size of the data that nginx can receive from the server at a time is set by the proxy_buffer_size directive.”
微信公众号
加入微信群