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;
......
}
}