Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 

TLB

TCP load balancer with least response time and max network speed load balancing strategy

Goal

This project can work with v2ray and ssr to select best node with least response time or best network speed.

Features

  • get upstream servers from subscription
  • filter out failure upstream server
  • select best backend server with least time for first byte
  • select best backend server with highest speed
  • retry failed server

Setup

docker build -t tlb .
cat > .env <<EOF
PANEL_HOST=example.com # subscription url
PANEL_TYPE=v2ray # use ss for ss
EOF
docker-compose up -d

Config

app/config.app

local _M = {
    -- load balancing strategy
    lb_method = "max_speed",
    -- time for retry failed server
    lb_retry_time = 300,
}

return _M

Monitoring

soocat - tcp:localhost:445 | jq

or

nc localhost 445 | jq

Enjoy!

About

TCP load balancer with least response time and max speed load balancing strategy

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published