回答
收藏
分享
举报
limit_req_zone 问题
提问于2020-12-01 09:45

浏览 3.7k

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

已修改于2023-03-09 02:11



写下您的回答
发表回答
全部回答(2)

按点赞数排序

按时间排序

如果多个请求(包括匹配到不同的location)你配置的key相同,且都使用了同一个zone,那么是共享的

赞同

0

回复举报

回答于2020-12-01 11:02



回复陶辉
回复
Rockets回复了

感谢陶老师

0

回复举报

回答于2020-12-01 08:38



回复Rockets
回复

"使用以上两个指令"???

赞同

0

回复举报

回答于2020-12-01 10:33



回复陶辉
回复
Rockets回复了

多谢陶老师,修改一下:

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

0

回复举报

回答于2020-12-01 02:52



回复Rockets
回复
提问者
Rockets
这家伙很懒还未留下介绍~
0
文章
10
问答
1
粉丝
相关问答

最简单的办法,你可以把include文件的后缀名,比如a.conf(我猜你是用.conf结尾的)改为a.nginx,include语句也相应修改下,就可以了。

你试试看。

当然,直接修改nginx.conf中vim的探测规则也可以,这稍微有点复杂。

点赞 0
浏览 4.2k

第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.”

点赞 0
浏览 3.3k