Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A stupidly simple load balancer.

tofu-tigre/sslb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Stupidly Simple Load Balancer (SSLB)

Created by Jaeden Quintana

A simple load balancer which handles incoming HTTP requests and redirects their traffic to a registered endpoint.

How to Use

The executable reads a TOML file named "sslb.toml" which contains the configuration for the load balancer. Below is an example of how the config file should be formatted.

[config]
addr = "1.2.3.4:80" # The IP addr of the server and the port to run on.
policy = "random" # The chosen policy to run the load balancer with (see below for available policies).
endpoints = [ # The IP addr of the endpoints and their ports.
  "1.2.3.5:80",
  "1.2.7.8:80", 
  ...
]

Supported Policies

Below is a list of supported policies for the load balancer. To use them in the config file, just use their string counterparts (listed to the right).

  • Round Robin / "round-robin"
  • Random / "random"
  • Hashed IP / "hashed-ip"

About

A stupidly simple load balancer.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages