umicat is a L4 reverse proxy load balance server. umicat can provide load balancing service for TCP/UDP network services in the form of reverse proxy.
make
sudo make install
round_robin
: Round-robin load balance policy.ip_hash
: IP-hash load balance policy.least_conn
: Least-connection load balance policy.random
: Random load balance policy.
Please configure /etc/umicat/umicat.conf
before you start using it:
{
"mode": "tcp",
"localport": 10201,
"policy": "round_robin",
"upstream": [
{
"upstream_ip": "127.0.0.1",
"upstream_port": 80,
"weight": 2
},
{
"upstream_ip": "127.0.0.1",
"upstream_port": 81,
"weight": 2
}
],
"workers": "auto",
"log_level": "info",
"log_file": "/var/log/umicat/umicat.log"
}
Then, you can enjoy it:
sudo umicat -c /etc/umicat/umicat.conf -l /var/log/umicat/umicat.log
docker run -P -it --rm sunbk201/umicat