A multi-threaded load-balancer written in Rust.
- Type down your workers IPs with
:3424port in the.envfile insideload-balancercrate
For example:
111.111.111.111:3424
222.222.222.222:3424
...
- Run the worker crates in your respective devices using the command
cargo run. - Finally, boot up the load balancer by running the command
cargo runagain. The load balancer crate will automatically identify how many workers will be there and create a threadpool of that size to interact with the workers.
Note
If you just want to do a health-check on all your worker nodes, just run the command cargo run -- -h or cargo run -- --health-checker