Study notes (52): Nginx optimize performance under high concurrency real - Nginx configuration limiting high concurrency (a)

Learning immediately: https://edu.csdn.net/course/play/27216/358413?utm_source=blogtoedu

Nginx limiting in three ways: limit_conn_zone, limit_req_zone, nginx_http_upstream_module.

Before hou two are for the client limit, recommend the second, the last one is against a background service limiting.

Stress testing tool: Ab Tools (httpd-tools)

 

 limit_conn_zone method:

http{
limit_conn_zone $binary_remote_addr zone=one:10m;
server
{
......
limit_conn one 10;
......
}
}

 

Published 75 original articles · won praise 34 · views 270 000 +

Guess you like

Origin blog.csdn.net/huanggang982/article/details/105378563