Copy online real traffic , Without affecting the real business , Using replication traffic to do fault analysis 、 Performance positioning 、 Migration assessment and other functions . Specific functions include ： To support or prohibit post Request replication , Record copying ( Mirror image ) journal
Mainly in the nginx1.13.4 In and after ngx_http_mirror_module modular , The main reason is that the module provides mirror copy function . You can configure multiple copies of the same image , In the flow amplification function . In normal configuration ,mirror The request does not affect the origin request and response , Origin station nginx-server Copy traffic to mirror Post station , There is no longer any intersection between the two .
Access the specified port of the server ,nginx It can act as a port forwarding to direct traffic to another server , At the same time, the returned data of the target server is obtained and returned to the requester .nginx Of TCP Agent function is similar to nginx The difference is that ： All traffic that requests this port is forwarded to the target server , In reverse proxy, we can refine which requests are distributed to which servers ; Another difference ,nginx do TCP Agency is not limited to WEB Of URL request , You can also forward it like memcached、MySQL Wait for point-to-point requests .
Nginx Three modules for configuration , And confirm their functional characteristics ：
（1）limit_conn_zone modular - Limit the same IP Address concurrent connections ;
（2）limit_request modular - Limit the same IP The number of visits over a period of time ;
（3）core Module supply - limit_rate Limit the same IP Traffic .
stay Nginx in With LIMIT At the beginning Configuration item , All is done. Limit function , The above three functions are Nginx There are some functions after compiling , It belongs to the built-in module .