There is now a file download server of HTTP, which has currently limited the download speed of single thread. The speed is 200kb/s but if the user uses multi-threading to download, such as Thunder. You can break through the limitations and achieve double the effect. May I ask how centos can limit the speed above?
You can use nginx’s limit_conn_module to limit the number of client IP connections.
The following is a simplified configuration:
limit_conn_zone
Define a bucket that limits connections;$binary_remote_addr
means to calculate the number of connections based on the client IP as the key;zone=addr
Declare the name of this bucket;limit_conn
executes a limit on the number of connections, and the followingaddr
is to call the previously configured bucket.