Skip to content

Using TCP Brutal congestion control algorithm in NGINX

Notifications You must be signed in to change notification settings

xtccc/brutal-nginx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

中文

Brutal Nginx

The VPS needs to have TCP Brutal installed first.

Nginx Configuration

The tcp_brutal directive is supported in the http ,server block.

The tcp_brutal_rate directive is supported in http, server, and location blocks.

http {

# Enable tcp brutal
  tcp_brutal on;
  tcp_brutal_rate 1048576;

server {
  listen 8080;

  root /var/www/html;
  tcp_brutal_rate 1048576;
  
  location / {
    # Send rate in bytes per second
    tcp_brutal_rate 1048576;
  }
}
server {
  listen 8099;
  tcp_brutal off; # not brutal
  ... 
}

}

Installing Nginx

The binary is available on GitHub Actions.

log

The error_log will have log messages at the info level.

2024/12/18 08:44:12 [info] 7763#7763: *1 Brutal TCP flow control is enabled for request from a.b.c.d with rate 1048576 bytes/s, client: a.b.c.d, server: localhost, request: "GET / HTTP/1.1", host: "a.b.c.d:8099"

About

Using TCP Brutal congestion control algorithm in NGINX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%