当前位置:网站首页>Nignx configuring single IP current limiting
Nignx configuring single IP current limiting
2022-06-27 03:50:00 【hshshshshs1】
1.http The configuration inside
limit_req_zone $binary_remote_addr zone=rateLimit:10m rate=2r/s;

1.$binary_remote_addr Is the set order ip, Not the total concurrency
2.rateLimit Is a variable with server Just like what is written in it , Some recognize humps , It can be changed to ratelimit etc.
3.2r/s It's for the same ip Limit per second 2 Requests
3.limit_req_zone Must be combined with limit_req To take effect
2.server The configuration inside
location ~ \.php$ {
limit_req zone=rateLimit burst=5 nodelay;
……
}

1.burst It's the concept of a barrel , It can be understood as a queue ,
2. if rate=2r/s,burst =1, When all requests are not released , front 2 Requests for normal access , The first 3 Requests are queued , The first 4 When a request is made, it will be reported 503
3. During the test, you can refresh quickly
3 . error
I'm a local laradock, Just add it directly , But there are some differences in the configuration of the pagoda
1. Configuration on the pagoda ,http Inside limit_req_zone $binary_remote_addr zone=rateLimit:10m rate=2r/s; It's the same
2.server The configuration inside 
Note first , Just change to the following code
The code inside is from enable-php-73.conf It's stuck inside
边栏推荐
- 使用promise的基本功能【四、Promise源码】
- [Shangshui Shuo series] day 6
- TP5 spreadsheet excel table export
- Static timing analysis OCV and time derive
- 2021:passage retrieval for outside knowledgevisual question answering
- 电商产品如何在知乎上进行推广和打广告?
- How to make ef core 6 support dateonly type
- ESP8266
- PAT甲级 1026 Table Tennis
- Pat grade a 1021 deep root
猜你喜欢
![Basic functions of promise [IV. promise source code]](/img/a0/8f28ec8951088b8e66e7079432f326.png)
Basic functions of promise [IV. promise source code]

Window 加密壳实现

2019LXMERT:Learning Cross-Modality Encoder Representations from Transformers

iOS开发:对于动态库共享缓存(dyld)的了解

jmeter分布式压测

Implementation of window encryption shell

ERP需求和销售管理 金蝶

2021:Passage Retrieval for Outside-KnowledgeVisual Question Answering通道检索的外部知识视觉问答

ERP demand and sales management Kingdee

JMeter takes the result of the previous request as the parameter of the next request
随机推荐
Pat grade a 1021 deep root
LDR6028 手机设备一边充电一边OTG传输数据方案
Facing the "industry, University and research" gap in AI talent training, how can shengteng AI enrich the black land of industrial talents?
2016Analyzing the Behavior of Visual Question Answering Models
I found a JSON visualization tool artifact. I love it!
Kotlin compose custom compositionlocalprovider compositionlocal
733. image rendering
MATLAB | 基于分块图布局的三纵坐标图绘制
servlet与JSP期末复习考点梳理 42问42答
Stack overflow vulnerability
Games101 job 7 improvement - implementation process of micro surface material
发现一款 JSON 可视化工具神器,太爱了!
Usage knowledge of mobile phones in new fields
ESP8266
电商产品如何在知乎上进行推广和打广告?
Kotlin Compose 自定义 CompositionLocalProvider CompositionLocal
Cvpr2021:separating skills and concepts for new visual question answering
苹果唯一图谱架构常识
JMeter distributed pressure measurement
Overview of Tsinghua & Huawei | semantic communication: Principles and challenges