当前位置:网站首页>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
边栏推荐
- 2020:MUTANT: A Training Paradigm for Out-of-Distribution Generalizationin Visual Question Answering
- 2019LXMERT:Learning Cross-Modality Encoder Representations from Transformers
- Human soberness: bottom logic and top cognition
- Kotlin Compose 隐式传参 CompositionLocalProvider
- 面对AI人才培养的“产学研”鸿沟,昇腾AI如何做厚产业人才黑土地?
- PAT甲级 1021 Deepest Root
- Quickly master asp Net authentication framework identity - reset password by mail
- Anaconda3安裝過程及安裝後缺失大量文件,沒有scripts等目錄
- Kotlin compose implicitly passes the parameter compositionlocalprovider
- 2021:Beyond Question-Based Biases:Assessing Multimodal Shortcut Learning in Visual Question Answeri
猜你喜欢

Nacos调用微服务两个问题:1.Load balancer does not contain an instance for the service 2.Connection refused

Products change the world

Argo workflows - getting started with kubernetes' workflow engine

resnet152 辣椒病虫害图像识别1.0

Fplan powerplan instance

2021:Graphhopper: Multi-Hop Scene Graph Reasoning for Visual Question Answering

CVPR2021:Separating Skills and Concepts for Novel Visual Question Answering将技巧与概念分开的新视觉问答

面对AI人才培养的“产学研”鸿沟,昇腾AI如何做厚产业人才黑土地?

Pat grade a 1026 table tennis

iOS开发:对于动态库共享缓存(dyld)的了解
随机推荐
Description of replacement with STM32 or gd32
Fplan power planning
Anaconda3 is missing a large number of files during and after installation, and there are no scripts and other directories
卷积神经网络(CNN)网络结构及模型原理介绍
How to make ef core 6 support dateonly type
PostgreSQL基础命令教程:创建新用户admin来访问PostgreSQL
ERP demand and sales management Kingdee
办公室VR黄片,骚操作!微软HoloLens之父辞职!
苹果手机证书构体知识
Pat grade a 1018 public bike management
MobileNet系列(4):MobileNetv3网络详解
Interview-01
2021:AdaVQA: Overcoming Language Priors with Adapted Margin Cosine Loss∗自适应的边缘余弦损失解决语言先验
There are two problems when Nacos calls microservices: 1 Load balancer does not contain an instance for the service 2. Connection refused
PAT甲级 1019 General Palindromic Number
Further exploration of handler (I) (the most complete analysis of the core principle of handler)
Kotlin compose implicitly passes the parameter compositionlocalprovider
Quicksand painting simulator source code
fplan-布局
2021:adavqa: overlapping language priors with adapted margin cosine loss *